Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Seuntjie

Pages: [1] 2 3 ... 24
1
Bugs and Suggestions / Re: Not log in bitsler on dicebot
« on: December 09, 2019, 08:14:31 am »
This is a network error, not something specific to the bot, which explains why it happens on more than 1 site. Are you behind a proxy, using a VPN or TOR?

2
DiceBot General Discussion / Re: New site gigabet.com
« on: December 08, 2019, 10:10:45 pm »
I will not be adding them to the bot.

3
Well there's your problem. Update your bot, I do updates for a reason.

4
I modified your script a bit to be more readable for me and ran a simulation of 100 000 bets. here's the script and the result:

Code: [Select]
resetstats()
nextbet  = 0.00000001
bethigh  = true
enablezz = false
chance   = 0.1
zacasna  = 0

function dobet()
    if lastBet.Roll == 99.89 then
        wintext = '';
        if (win) then
            wintext = 'win'
        else
            wintext = 'lose'
        end
        print('Rolled: '..lastBet.Roll..'. Result:'..wintext)
    end
zacasna =math.floor(lastBet.roll * 100)

if currentprofit > 0 or win then    --only when simulation think is won
if zacasna < 9990 then
print("wrong!! won but lost in real life")
print(zacasna/100)
stop()
end
end
 

end



As you can see, I simulated 11 99.89 rolls which you say is seen as a win, but the bot still sees them as a loss using either the built in logic from the bot or your own using the profits.
Are you using an older version of DiceBot?

5
Can you post an example of this happening in a simulation?

6
The simulations use the exact same code for logic and decisions as when it's running normally. The decisions that the bot makes is no different in a simulation than it is when it's placing bets. The visual error you see has no effect on simulations because simulated bets are never shown in the bet log.

The simulations also uses the sites provably fair RNG to generate the random numbers for the bets.

7
Bugs and Suggestions / Re: Not log in bitsler on dicebot
« on: December 06, 2019, 11:52:19 am »
Did you select the correct site from the menu?
You need to use, all at once, your username, password, API key and 2fa.

If you are doing this, does it show an error at the bottom of the screen? or does it log an error in the dicebotlog.txt file? can you send me the error if it does?

8
The program should be written in a way if > 99.89 then won, of course if chance is 0.1 and bethigh = true, for bethigh = false, if if <0.1 (take two decimals), i... Then there will be no mistakes.  The winning number is 99.9 or higher, or 0.09 or lower.
Thank you,
Regards
Don't you think that if everything was as simple as that, all of the bugs in the program would be fixed already?

You need to understand that the bot uses sites other than primedice, and these other sites use more or fewer decimals and higher or lower edges. I can't hardcode the bot to 2 decimals and 1% edge because then most of the other sites won't work correctly. The code the bot uses to determine whether a bet is a win or a loss is:

if {high and Roll>( [maximum roll]-chance) } OR {low and (Roll < chance)}

It already does what you're suggesting, just more generic.

The problem you're highlighting here is purely a visual thing and does not affect the bots' decisions/logic.


This is a note to myself regarding which lines to change to fix this error:
https://github.com/Seuntjie900/DiceBot/blob/master/DiceBot/cDiceBot.cs#L5118
Code: [Select]
if (
                                        (decimal)_Bet.Roll <= (decimal)CurrentSite.maxRoll - (decimal)(_Bet.Chance) &&
                                        (decimal)_Bet.Roll >= (decimal)(_Bet.Chance))

9
Programmer Mode / Re: How increase multiplier 2/2.10/2.20?
« on: November 27, 2019, 07:42:47 am »
Please have a look at the programmer mode tutorials on https://forum.seuntjie.com/index.php?topic=2.0

10
Programmer Mode / Re: Can't append external File
« on: November 20, 2019, 02:58:10 pm »
Before addressing the append issue, why do you want to save it to a file?

Are you aware that all of your bets are stored in a sqlite database called dicebot.db? You can browse and query the database using a program like sqlitebrowser.

11
Programmer Mode / Re: random error on array
« on: November 19, 2019, 06:33:26 pm »
This isn't a bug in DiceBot, it's a result of how LUA (and scripting languages in general) handle variables.

Because LUA is a scripting language, it is not strongly typed and allows redefining and mixing variables (which I'm not particularly fond of).

When you take the roll and multiply it with 100, you expect to get an integer value, which in some cases you do. But in other cases you end up with a floats variable with no decimal places, so it looks like an int to the eye but it's not. (I don't know why this might happen. Possibly a precision issue far enough down the decimal places that luas floats can't show it but still picks up it can't be an int)

LUAs arrays are also extremely flexible in terms of indexing. Infact, LUAs arrays are more like dictionaries than indexed arrays.

You can for example create an array with letters as indexes instead of ints.


Code: [Select]
var = {}
var['a']='hello'
print(var['a'])

The issue with the arrays is that it seems the index is data type aware, thus if you created an array with index (int)1234 but try to access with with(string)'1234' or (float)1234, you're going to get a nil result because that cell isn't created yet.

The easiest way I can think of fixing this problem is by ensuring that the result you get is always an int. LUA doesn't allow you to declare a variable with a type, so using a method like math.floor should do the trick:
Code: [Select]
zacasna =math.floor(lastBet.roll * 100)

12
Programmer Mode / Re: 1-3-2-4 Script Help
« on: November 19, 2019, 04:26:48 pm »
You can use an array to hold your sequence of multipliers and then use your currentstreak variable with a modulus operator to get an index for which of your multipliers need to be used.

If you haven't already, be sure to review the programmer mode tutorials on https://forum.seuntjie.com/index.php?topic=2.0

13
Programmer Mode / Re: random error on array
« on: November 19, 2019, 04:20:54 pm »
This isn't a bug in the bot, it's a problem with your code. You will need to post the rest of your code as it's impossible to tell when this function is being called and what else can affect your array.

Be sure to take a look at the programming tutorials linked in https://forum.seuntjie.com/index.php?topic=2.0  specifically the steemit tutorial 02: Process

14
Bugs and Suggestions / MOVED: random error on array
« on: November 19, 2019, 04:19:00 pm »

15
Programmer Mode / Re: please help to make a script
« on: November 13, 2019, 07:30:08 am »
You haven't addressed the problem in your script from my previous post. That is still the problem.

Pages: [1] 2 3 ... 24