Pages:
Author

Topic: Seuntjies DiceBot -Multi-Site, multi-strategy betting bot for dice. With Charts! - page 40. (Read 274841 times)

legendary
Activity: 1717
Merit: 1125
My rolls aren't being saved in the database anymore. Is this an option which i accidentally turned off?

There seems to be a recurring theme to the most recent questions... I will look into it!
hero member
Activity: 1372
Merit: 512
My rolls aren't being saved in the database anymore. Is this an option which i accidentally turned off?
newbie
Activity: 121
Merit: 0
I've fixed this a problem a few times, but it keeps reoccurring. Sometimes renaming it works, usually it doesn't. The bot will create a new file and then never write to it. I've tried deleting all the settings files and deleting the entire dicebot folder, then unzipping a fresh dicebot. This sometimes fixes it. Not sure what the issue is.

Have you tried running the bot as administrator?

Running more than one bot a time might result in the behavior you're describing as well.
I'm usually running more than one bot. Never used to have this issue though. Any way to avoid it?

Running more than one instance of the bot isn't officially supported.

Unofficially, running each instance from its own folder might help though, because then the bots aren't locking the others out of the db file. If you need to have all of your bets in 1 database, consolidate the databases with a bit of sql in sqlitebrowser.
I always have each instance running from its own folder - want separate db files.  This doesn't seem to help with my issue though.
legendary
Activity: 1717
Merit: 1125
I've fixed this a problem a few times, but it keeps reoccurring. Sometimes renaming it works, usually it doesn't. The bot will create a new file and then never write to it. I've tried deleting all the settings files and deleting the entire dicebot folder, then unzipping a fresh dicebot. This sometimes fixes it. Not sure what the issue is.

Have you tried running the bot as administrator?

Running more than one bot a time might result in the behavior you're describing as well.
I'm usually running more than one bot. Never used to have this issue though. Any way to avoid it?

Running more than one instance of the bot isn't officially supported.

Unofficially, running each instance from its own folder might help though, because then the bots aren't locking the others out of the db file. If you need to have all of your bets in 1 database, consolidate the databases with a bit of sql in sqlitebrowser.
newbie
Activity: 121
Merit: 0
I've fixed this a problem a few times, but it keeps reoccurring. Sometimes renaming it works, usually it doesn't. The bot will create a new file and then never write to it. I've tried deleting all the settings files and deleting the entire dicebot folder, then unzipping a fresh dicebot. This sometimes fixes it. Not sure what the issue is.

Have you tried running the bot as administrator?

Running more than one bot a time might result in the behavior you're describing as well.
I'm usually running more than one bot. Never used to have this issue though. Any way to avoid it?
legendary
Activity: 1717
Merit: 1125
I've fixed this a problem a few times, but it keeps reoccurring. Sometimes renaming it works, usually it doesn't. The bot will create a new file and then never write to it. I've tried deleting all the settings files and deleting the entire dicebot folder, then unzipping a fresh dicebot. This sometimes fixes it. Not sure what the issue is.

Have you tried running the bot as administrator?

Running more than one bot a time might result in the behavior you're describing as well.
newbie
Activity: 121
Merit: 0
Could we get an option to play the alarm sound or something when the bot stops unexpectedly like this?

Also, dicebot has stopped writing to the db file and I'm not sure how to fix this.

That's a good idea but out of the scope of maintenance I am doing on this version of the bot, sorry.

Maybe the database file got corrupt somehow, or it just became too large. Try renaming it and see if the bot creates a new file and writes to it.
I've fixed this a problem a few times, but it keeps reoccurring. Sometimes renaming it works, usually it doesn't. The bot will create a new file and then never write to it. I've tried deleting all the settings files and deleting the entire dicebot folder, then unzipping a fresh dicebot. This sometimes fixes it. Not sure what the issue is.
newbie
Activity: 46
Merit: 0
seuntjie, Hello!

Do you know, what happened with bitvest?
Yesterday suddenly after close and open dicebot I can't anymore to login into the my account on bitvest. But from browser I'm log fine.

Dicebot writing Error:
Failed to log in to your account on Bitvest. Check the status bar for more information if available.

Usually if a site gets attacked (like a ddos or bruteforce attack), they enable some kind of protection, like a captcha or cloudflare protection specifically to prevent bots from logging in. This is likely what happened with Bitvest, the issue will be fixed when the attacks subsides and the protection is disabled.

Omg!  Sad
Thank you for explanation...
legendary
Activity: 1717
Merit: 1125
seuntjie, Hello!

Do you know, what happened with bitvest?
Yesterday suddenly after close and open dicebot I can't anymore to login into the my account on bitvest. But from browser I'm log fine.

Dicebot writing Error:
Failed to log in to your account on Bitvest. Check the status bar for more information if available.

Usually if a site gets attacked (like a ddos or bruteforce attack), they enable some kind of protection, like a captcha or cloudflare protection specifically to prevent bots from logging in. This is likely what happened with Bitvest, the issue will be fixed when the attacks subsides and the protection is disabled.
newbie
Activity: 46
Merit: 0
seuntjie, Hello!

Do you know, what happened with bitvest?
Yesterday suddenly after close and open dicebot I can't anymore to login into the my account on bitvest. But from browser I'm log fine.

Dicebot writing Error:
Failed to log in to your account on Bitvest. Check the status bar for more information if available.
legendary
Activity: 1717
Merit: 1125
Could we get an option to play the alarm sound or something when the bot stops unexpectedly like this?

Also, dicebot has stopped writing to the db file and I'm not sure how to fix this.

That's a good idea but out of the scope of maintenance I am doing on this version of the bot, sorry.

Maybe the database file got corrupt somehow, or it just became too large. Try renaming it and see if the bot creates a new file and writes to it.


Im still unable to connect to yolodice with dicebot. Im still getting error at the bottom "Status/current action: disconnected". Anyway thanks for helping.

I replied to your email, don't know if you never got the response
newbie
Activity: 28
Merit: 0
Thanks for replying.

Yes I have selected the correct site from site menu.
At the bottom the bot say "Status/current action: disconnected".
And when I press the log in button with private key, I received a error message "Failed to log in to your acoount at yolodice".
And I also set the outpound TCP over port 4444.
I have done everything you mentioned but still but log in succesful.

By the way I am using windows 10.

What does it say in the status bar after trying to log in?
If it still says disconnected, can you email ([email protected]) me the contents of the dicebotlog.txt file?

Im still unable to connect to yolodice with dicebot. Im still getting error at the bottom "Status/current action: disconnected". Anyway thanks for helping.
HCP
legendary
Activity: 2086
Merit: 4361

Code:
if currentstreak==-3 then
Thanks for your reply, but that's not what I'm looking for.  That's not enough to solve my issue.

The code below should effectively do what you have asked for... NOTE: I've basically only tested that it "runs"... I haven't tested all possible outcomes etc so USE AT YOUR OWN RISK!


Quote
How can I get it to only martingale on each 4th bet after 3 losses without continuing the martingale on  loss 5, 6, 7, 8, etc?
I think my example with W, L is very clear with what I'm looking for. 
Also, be aware, that this will ONLY bet the 4th bet of a losing streak, regardless of the length of the losing streak. That is to say:

Quote
W
L
L
L - 3 losses, nextbet = 1st martingale (0.000005)
L - martingale lost, increase martingale (0.00001), nextbet = basebet
L - basebet
L - basebet
L - basebet
L - basebet
L - basebet
L - basebet
W
L
L
L - 3 losses, nextbet = 2nd martingale (0.000005)
L - martingale lost, increase martingale (0.00002), nextbet = basebet
L - basebet
L - basebet
L - basebet
L - basebet
L - basebet
L - basebet
W
L
L
L - 3 losses, nextbet = 3rd martingale (0.00002)
W - martingale won, reset martingale (0.000005), nextbet = basebet
L
L
....

Is that correct? Or should it be doing martingale in middle of long loss streaks? like this:
Quote
W
L
L
L - 3 losses, nextbet = martingale
L - martingale loss
L
L
L - 3 losses, nextbet = martingale
L - martingale loss
L
L
L  - 3 losses, nextbet = martingale
W - martingale win, reset martingale
L
L
...


Code:
chance = 50
basebet = 0.0000001
nextbet = 0.0000001
bethigh = true
martingalebasebet = 0.000005
currentmartingalebet = martingalebasebet
multiplier = 2
ismartingale = false

function dobet()

   if (currentstreak == -3) then
      -- we've had 3 losses in a row, martingale time!
      print("Martingale Time!")
      print("currentBet = " .. currentmartingalebet)
      nextbet = currentmartingalebet
      ismartingale = true
   elseif (win and ismartingale) then
      -- martingale bet won, reset
      print("Martingale WIN! - Resetting")
      currentmartingalebet = martingalebasebet
      ismartingale = false
      nextbet = basebet
   elseif (ismartingale) then
      -- martingale bet lost
      currentmartingalebet = currentmartingalebet *  multiplier
      print("Martingale Loss! - Increasing to: " .. currentmartingalebet)
      ismartingale = false
      nextbet = basebet
   else
      nextbet = basebet
   end
 
end
newbie
Activity: 121
Merit: 0
Can somebody explain me, what it's mean in the status dicebot:
Bet result received does not match last bet placed! Stopping for your safety., stopping

And in the console:
Betting Stopped!
Betting Stopped!

Becasue of this I downed to minus profit, the bot stopped bets at the red streaks Sad

I'm used this script:
Quote
basebet=0.00000001
nextbet=basebet
chance=49.5
highestBalance=balance

function dobet()

   if balance > highestBalance then
      nextbet=basebet
      highestBalance=balance
   else
      nextbet=previousbet+basebet
   end

end

It happened 2 times at me.

It literally means that the bet data received does not match the last bet that was placed. Internally, each bet is assigned a GUID by the bot, when the bet result is returned by the site, the bot checks the GUID for 2 things; That it's the most recent bet that was placed and that it's not a duplicate of a result already returned.

Things that can trigger this: Network errors, site errors/delays, starting the bot while it's running, placing a manual bet while the bot is running, placing a bet from the site while the bot is running.

For example, if you experience a network error while the bot is running, after 30 seconds, the bot will retry the bet. If the network reconnects within the timeout period of the previous bet, it could still get the result from the site. This GUID will not match the one of the most recent bet placed (the retry) and betting will stop because it could cause unpredictable and undesirable betting patterns.


Although, I'm wondering if it should be !Last10Guids.Contains(bet.Guid) ? Huh
Nope. It's correct as it is. See the short explanation of the checks above.
Could we get an option to play the alarm sound or something when the bot stops unexpectedly like this?

Also, dicebot has stopped writing to the db file and I'm not sure how to fix this.
legendary
Activity: 1717
Merit: 1125

Code:
if currentstreak==-3 then

I've been working on this for a long time and I'm very close.  Please can you take 1 minute to tell me how to get bet2 to work.  Right now it enters correctly but is repeating bet1.   I don't understand the losecount function properly and i couldn't find any helpful info.


Code:

chance = 50
basebet = .0000001
nextbet = .0000001
bethigh = true
losecount = 0
bet1 = 0.000005
bet2 = 0.000010

function dobet()

if (win) then
   nextbet = basebet
   losecount = 0
else
   nextbet = basebet
if (currentstreak==-3) then
   losecount += 1
end
if currentstreak==-4 then
nextbet = basebet
end

   if (losecount == 1) and (currentstreak==-3) then
      nextbet = bet1
end


if (losecount == 2) and (currentstreak==-3) then
nextbet = bet2
end

end
 end
 
end

You want to martingale only on the 3rd losing bet right? So multiply nextbet with your multiplier (in your case 2) on that bet, and reset your bet if it's higher.

From https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables  (See https://bot.seuntjie.com/programmermode.aspx for links to more tutorials):
Quote
currentstreak, type double. Permission: Read Only. Shows the current winning or losing streak. When positive (>0), it's a winning streak. When negative (<0) it's a losing streak. Can never be 0. Only set after first bet.

so:
Code:
if currentstreak==-3 then
--this is exactly 3 losses is a row, do something here
else
--every bet that is NOT directly after a losing streak of exactly 3 bets will go in here.
end

You're over-complicating the problem with all of the variables and checks you're adding. If you want it to multiply after every 3rd loss, look into the modulus (%) operator.
DCP
member
Activity: 110
Merit: 10

Code:
if currentstreak==-3 then

I've been working on this for a long time and I'm very close.  Please can you take 1 minute to tell me how to get bet2 to work.  Right now it enters correctly but is repeating bet1.   I don't understand the losecount function properly and i couldn't find any helpful info.


Code:

chance = 50
basebet = .0000001
nextbet = .0000001
bethigh = true
losecount = 0
bet1 = 0.000005
bet2 = 0.000010

function dobet()

if (win) then
   nextbet = basebet
   losecount = 0
else
   nextbet = basebet
if (currentstreak==-3) then
   losecount += 1
end
if currentstreak==-4 then
nextbet = basebet
end

   if (losecount == 1) and (currentstreak==-3) then
      nextbet = bet1
end


if (losecount == 2) and (currentstreak==-3) then
nextbet = bet2
end

end
 end
 
end
DCP
member
Activity: 110
Merit: 10

Code:
if currentstreak==-3 then

Thanks for your reply, but that's not what I'm looking for.  That's not enough to solve my issue.

How can I get it to only martingale on each 4th bet after 3 losses without continuing the martingale on  loss 5, 6, 7, 8, etc?

I think my example with W, L is very clear with what I'm looking for.  
legendary
Activity: 1717
Merit: 1125
Hey Guys,

Yolo has been working perfectly for me. One great feature they have besides awesome stability and lightning fast bets is that inside the members dashboard in the stats section you can see the last 100,000 bets, very cool!

Seuntjie or someone else who knows, please can you help me to understand how to code something. I've hacked together about 20 scripts but don't know how to do one part..


Let's use the basic martingale script as an example. I'm hoping you can update it with the function I need.


Code:
chance=49.5
multiplier=2
base=0.00000010  --  this is to be a minimum bet, to bet all the time and wait for an opportunity
realbet=0.0005  -- this is to be the first real bet of martingale
function dobet()
if win then
nextbet=base
else
nextbet=previousbet*multiplier
end
end


I'd like it to minimum bet all the time except each time there are 3 losses in a row, I would like it to take the "4th bet" as part of the martingale.

example to make it very clear

W
L   loss1
W
L   loss1
L   loss2
L   loss3
L *4th loss -   Bets 0.0005   (this is the first bet of martingale with "realbet" size)
L  - here it is back to minimum bet because I only want to bet the "4th bet" after each 3 loss streak
W
L
W
L
L
L
L *4th - Bets 0.0010  (this is the second bet of martingale with "realbet" size)
W
W
W
W
L
L
L
W *4th - Bets 0.0020  (this is the third bet of martingale with "realbet" size, it wins so martingale is over)
L
L
L
W *4th - Bets 0.0005  (this is the first bet of martingale...)


I know there is this function ( losecount +=1 )  but not sure how to implement it in this case.

If someone can show me the code for the basic martingale with this functionality I would appreciate it greatly. I intend to modify it into a more complex script but this would serve to show me how.





Code:
if currentstreak==-3 then
DCP
member
Activity: 110
Merit: 10
Hey Guys,

Yolo has been working perfectly for me. One great feature they have besides awesome stability and lightning fast bets is that inside the members dashboard in the stats section you can see the last 100,000 bets, very cool!

Seuntjie or someone else who knows, please can you help me to understand how to code something. I've hacked together about 20 scripts but don't know how to do one part..


Let's use the basic martingale script as an example. I'm hoping you can update it with the function I need.


Code:
chance=49.5
multiplier=2
base=0.00000010  --  this is to be a minimum bet, to bet all the time and wait for an opportunity
realbet=0.0005  -- this is to be the first real bet of martingale
function dobet()
if win then
nextbet=base
else
nextbet=previousbet*multiplier
end
end


I'd like it to minimum bet all the time except each time there are 3 losses in a row, I would like it to take the "4th bet" as part of the martingale.

example to make it very clear

W
L   loss1
W
L   loss1
L   loss2
L   loss3
L *4th loss -   Bets 0.0005   (this is the first bet of martingale with "realbet" size)
L  - here it is back to minimum bet because I only want to bet the "4th bet" after each 3 loss streak
W
L
W
L
L
L
L *4th - Bets 0.0010  (this is the second bet of martingale with "realbet" size)
W
W
W
W
L
L
L
W *4th - Bets 0.0020  (this is the third bet of martingale with "realbet" size, it wins so martingale is over)
L
L
L
W *4th - Bets 0.0005  (this is the first bet of martingale...)


I know there is this function ( losecount +=1 )  but not sure how to implement it in this case.

If someone can show me the code for the basic martingale with this functionality I would appreciate it greatly. I intend to modify it into a more complex script but this would serve to show me how.



legendary
Activity: 1717
Merit: 1125
Can somebody explain me, what it's mean in the status dicebot:
Bet result received does not match last bet placed! Stopping for your safety., stopping

And in the console:
Betting Stopped!
Betting Stopped!

Becasue of this I downed to minus profit, the bot stopped bets at the red streaks Sad

I'm used this script:
Quote
basebet=0.00000001
nextbet=basebet
chance=49.5
highestBalance=balance

function dobet()

   if balance > highestBalance then
      nextbet=basebet
      highestBalance=balance
   else
      nextbet=previousbet+basebet
   end

end

It happened 2 times at me.

It literally means that the bet data received does not match the last bet that was placed. Internally, each bet is assigned a GUID by the bot, when the bet result is returned by the site, the bot checks the GUID for 2 things; That it's the most recent bet that was placed and that it's not a duplicate of a result already returned.

Things that can trigger this: Network errors, site errors/delays, starting the bot while it's running, placing a manual bet while the bot is running, placing a bet from the site while the bot is running.

For example, if you experience a network error while the bot is running, after 30 seconds, the bot will retry the bet. If the network reconnects within the timeout period of the previous bet, it could still get the result from the site. This GUID will not match the one of the most recent bet placed (the retry) and betting will stop because it could cause unpredictable and undesirable betting patterns.


Although, I'm wondering if it should be !Last10Guids.Contains(bet.Guid) ? Huh
Nope. It's correct as it is. See the short explanation of the checks above.
Pages:
Jump to: