Author

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

newbie
Activity: 4
Merit: 0
The bot seems to be hanging every few minutes for me on 999 dice. Any probable reason why?
legendary
Activity: 1717
Merit: 1125

   Serious problem on the B10 programmer mode stuff.

     I was trying to do a withdrawl on PRC.  Here is an example of the code.

target = 0.02

function dobet()
   if (win) then
      nextbet = balance / 1024
      withdraw("BTC adddy",target)
   else
      nextbet = previousbet * 2
   end
end   

    For some reason the withdraw function call is not correct.  But the really bad part is nextbet in the win path is not updated.  I got lucky on this and won a little more then expected, but it could have gone the other way and I would have lost a lot. 

I loaded this into b9 and get an "invalid call to function arguments" and betting stops.

My code is a little more involved then this, so it took a bit to narrow this down.         

   Another question, does withdraw work on PRC.  I think you answered this a little back so I will check. 
I tried withdraw("addy".variable)
          withdraw('addy',variable)
          withdraw(variable,variable)
          withdraw variable,constant)

Nothing seemed to work. 

                     Thanks

The lua methods work the same regardless of which site you're betting on. On PRC, the site blocks withdrawals if you make them within 30 seconds of your last bet (or atleast it used to, I think dean removed that), so I added a delay to withdrawals at PRC. This means that the bot stops betting for 31 seconds, do the withdrawal and then continues betting.

I didn't even notice that.... In the method box, I have the parameters switched around. It is actually withdraw(amount:double, address:string)
So just swap them around and it should work

A tip for future reference, before starting the bot, just run nextbet= in the console before restarting betting. Otherwise it will just about resume where it left off
legendary
Activity: 1007
Merit: 1000

   Serious problem on the B10 programmer mode stuff.

     I was trying to do a withdrawl on PRC.  Here is an example of the code.

target = 0.02

function dobet()
   if (win) then
      nextbet = balance / 1024
      withdraw("BTC adddy",target)
   else
      nextbet = previousbet * 2
   end
end   

    For some reason the withdraw function call is not correct.  But the really bad part is nextbet in the win path is not updated.  I got lucky on this and won a little more then expected, but it could have gone the other way and I would have lost a lot. 

I loaded this into b9 and get an "invalid call to function arguments" and betting stops.

My code is a little more involved then this, so it took a bit to narrow this down.         

   Another question, does withdraw work on PRC.  I think you answered this a little back so I will check. 
I tried withdraw("addy".variable)
          withdraw('addy',variable)
          withdraw(variable,variable)
          withdraw variable,constant)

Nothing seemed to work. 

                     Thanks
legendary
Activity: 1717
Merit: 1125
   I'm guessing the hangs are a JD problem.  I ran the b10 version against PRC and it ran for several hours with no hangs.  JD is still hanging up, but not as often now.  maybe once an hour or so.  And now it could be due to tipping. 

    The balance is only neg in LUA.  Is the field to small? 

I think stopping the bot when switching modes would be best.  If you pause the betting when you show the warning that could work too. 

The console flash is more of an annoyance then anything.   

   I'll look into the last bet stuff.  Very useful I think.

A few other things.  The stat window doesn't have a way to close it from the window.  You have to close it from the windows task bar. 

    Also, I'm not sure I know how to explain this one.  When you logon it acts a little funky.  I was trying to logon to PRC but the bot was pointing at JD, the logon hung for awhile, and then popped up a window, but the window was hidden, while hidden the bot main body is unresponsive, so it looked like it hung.  Once I found the window and clicked ok everything was fine.  Changed the site, and away I went.  So I guess the real problem was the login failed pop-up was not brought to the foreground.

      And as always, thanks for the great bot.   

           

It's probably something to do with jdcapi.

Yes it's an overflow problem, but I'm not sure how to fix it, it gets sent through as a decimal, which is the largest native data type for numbers. If LUA can't handle 2digits with 8 decimals, it's just one of those things. I'll dig around though, there should be a fix.

just click the hide stats button in the top right. Sorry, I forgot to add the control box to the form after i removed it to test something.

JD's login is very slow when logging in with incorrect details, people usually switch to another program first, so when the message gets displayed that there was a problem, it's moved to the background. Not so much i can do about it other than to preach to people about patience and to look at the open windows in the task bar.
legendary
Activity: 1007
Merit: 1000
  The new build seems to be losing a lot of responses for JD.  I hang at least every 30 mins.  Sometimes much sooner.  B9 ran for over 48 hours without a problem.  I can see the results of the roll on JD, but it's not showing in the bot.  A few times it was because of tips. but not the majority of the time.   

The lost responses might not be a bot problem.  I started up the hung bot tonight and within 5 mins it hung again.  Restart hung again, 3 bets hung.  I switched back to B9 and it hung after  5 mins.   It's running now, but for how long I don't know.  I was almost tempted to break out wire shark and run a sniffer to see what the network traffic looked like.  Almost.....   Smiley

The new build really moves fast on the bets.  Load and open working great.

Problems:  Balance is negative when it's really over 21.42  or something close to that. 

The program gets screwed up when you switch to advanced mode and back to programmer mode.
   It's somehow picking up the bet from the advanced mode.  Maybe even the chance.  Things were flying so fast I didn't have time to
see what was really going on, I needed to stop it before I was broke. 

   
Annoyances:  Screen scroll sometimes flashes back to the first lines in the console.   It's almost like your writing to the console so fast when it tries to refresh is moves back to the beginning of it's data for a brief time.  It's only less then a second, but if you don't realize what is happening you can think something is very wrong...     

   
   Still looking for the result being returned.  Haven't looked very hard, but didn't see anything new in the onscreen help stuff. 

I'll let you know if I see anything else in the programmer area...    And thanks again for a great bot... 


If it hung on build9 as well, it probably was due to something else, But I'll take a look never the less. Wireshark isn't going to do much, it's all https so you won't be able to sniff anything useful from the packets.

Is the balance only negative in LUA or in the whole bot?

Yes when you switch from programmer mode to advanced mode while running, the betting will immediately switch to the settings in advanced mode. Will add something to make the bot stop betting, or show a warning when switching between modes.

The console flashes because when it reaches 500 lines, I remove the top 50. When I do this, it flashes a bit. Will see If I can somehow do that a bit smoother.

You'll see a new variable in the box at the top called lastBet, of type Bet. This is an object with all of the latest bets' information. Here's a very very badly drawn UML of the class:


you're probably looking for lastBet.Roll



   I'm guessing the hangs are a JD problem.  I ran the b10 version against PRC and it ran for several hours with no hangs.  JD is still hanging up, but not as often now.  maybe once an hour or so.  And now it could be due to tipping. 

    The balance is only neg in LUA.  Is the field to small? 

I think stopping the bot when switching modes would be best.  If you pause the betting when you show the warning that could work too. 

The console flash is more of an annoyance then anything.   

   I'll look into the last bet stuff.  Very useful I think.

A few other things.  The stat window doesn't have a way to close it from the window.  You have to close it from the windows task bar. 

    Also, I'm not sure I know how to explain this one.  When you logon it acts a little funky.  I was trying to logon to PRC but the bot was pointing at JD, the logon hung for awhile, and then popped up a window, but the window was hidden, while hidden the bot main body is unresponsive, so it looked like it hung.  Once I found the window and clicked ok everything was fine.  Changed the site, and away I went.  So I guess the real problem was the login failed pop-up was not brought to the foreground.

      And as always, thanks for the great bot.   

           
legendary
Activity: 1717
Merit: 1125
The new version is very good... Smiley
I have not reset stats Sad

Thanks.
Huh?

Hi some version for Linux?

No linux version untill .NET goes cross platform. Should be sometime this year.

  The new build seems to be losing a lot of responses for JD.  I hang at least every 30 mins.  Sometimes much sooner.  B9 ran for over 48 hours without a problem.  I can see the results of the roll on JD, but it's not showing in the bot.  A few times it was because of tips. but not the majority of the time.   

The lost responses might not be a bot problem.  I started up the hung bot tonight and within 5 mins it hung again.  Restart hung again, 3 bets hung.  I switched back to B9 and it hung after  5 mins.   It's running now, but for how long I don't know.  I was almost tempted to break out wire shark and run a sniffer to see what the network traffic looked like.  Almost.....   Smiley

The new build really moves fast on the bets.  Load and open working great.

Problems:  Balance is negative when it's really over 21.42  or something close to that. 

The program gets screwed up when you switch to advanced mode and back to programmer mode.
   It's somehow picking up the bet from the advanced mode.  Maybe even the chance.  Things were flying so fast I didn't have time to
see what was really going on, I needed to stop it before I was broke. 

   
Annoyances:  Screen scroll sometimes flashes back to the first lines in the console.   It's almost like your writing to the console so fast when it tries to refresh is moves back to the beginning of it's data for a brief time.  It's only less then a second, but if you don't realize what is happening you can think something is very wrong...     

   
   Still looking for the result being returned.  Haven't looked very hard, but didn't see anything new in the onscreen help stuff. 

I'll let you know if I see anything else in the programmer area...    And thanks again for a great bot... 


If it hung on build9 as well, it probably was due to something else, But I'll take a look never the less. Wireshark isn't going to do much, it's all https so you won't be able to sniff anything useful from the packets.

Is the balance only negative in LUA or in the whole bot?

Yes when you switch from programmer mode to advanced mode while running, the betting will immediately switch to the settings in advanced mode. Will add something to make the bot stop betting, or show a warning when switching between modes.

The console flashes because when it reaches 500 lines, I remove the top 50. When I do this, it flashes a bit. Will see If I can somehow do that a bit smoother.

You'll see a new variable in the box at the top called lastBet, of type Bet. This is an object with all of the latest bets' information. Here's a very very badly drawn UML of the class:


you're probably looking for lastBet.Roll

legendary
Activity: 1007
Merit: 1000
  The new build seems to be losing a lot of responses for JD.  I hang at least every 30 mins.  Sometimes much sooner.  B9 ran for over 48 hours without a problem.  I can see the results of the roll on JD, but it's not showing in the bot.  A few times it was because of tips. but not the majority of the time.    

The lost responses might not be a bot problem.  I started up the hung bot tonight and within 5 mins it hung again.  Restart hung again, 3 bets hung.  I switched back to B9 and it hung after  5 mins.   It's running now, but for how long I don't know.  I was almost tempted to break out wire shark and run a sniffer to see what the network traffic looked like.  Almost.....   Smiley

The new build really moves fast on the bets.  Load and open working great.

Problems:  Balance is negative when it's really over 21.42  or something close to that.  

The program gets screwed up when you switch to advanced mode and back to programmer mode.
   It's somehow picking up the bet from the advanced mode.  Maybe even the chance.  Things were flying so fast I didn't have time to
see what was really going on, I needed to stop it before I was broke.  

  
Annoyances:  Screen scroll sometimes flashes back to the first lines in the console.   It's almost like your writing to the console so fast when it tries to refresh is moves back to the beginning of it's data for a brief time.  It's only less then a second, but if you don't realize what is happening you can think something is very wrong...    

    
   Still looking for the result being returned.  Haven't looked very hard, but didn't see anything new in the onscreen help stuff.  

I'll let you know if I see anything else in the programmer area...    And thanks again for a great bot...  
legendary
Activity: 966
Merit: 1000
newbie
Activity: 57
Merit: 0
The new version is very good... Smiley
I have not reset stats Sad
legendary
Activity: 1007
Merit: 1000

    A couple more things to add to your list.  Chance doesn't seem to work, or at least I can't seem to make it work.  Also current streak is only good for a current WIN streak.  it's always zero on the lose side.  Thats not a big deal as it's easy enough to code around if it's more then something simple to fix. 

   Also sometimes, before dobet() is executed balance is not valid.  IE it's a nil value.  I know my balance isn't much but it's not nil... Smiley  I think this is the first time I start the bot, once it's primed it's fine. 

   got your JD ID, so once I get a better balance I'll send you a tip.  Or if I can get a good strategy going  I'll put it in the code. 
 
          Thanks again... 
   

I know of the chance and the balance thing. Got that sorted already for the next build. Did not know about the losing streak thing. Thanks for pointing that out.

    Seuntjie,

    Another problem with the balance.  If your balance is over 21.48 it becomes negative.    Tipping from the code, seems to be working fine...   Smiley  I played around with the resetseed, but I don't really know how to tell if it worked or not.  I believe I should have seen the nonce change, but didn't notice it.  

    All in all I'm really liking the programmer mode.  I can use the balance to place bets to maximize my winnings (or loses).  I'm using the math.random function built into LUA to select hi/lo bets and also when to change up bets.  That keeps my bet patterns random too.    

    Can't wait to test out the next build.  Thanks for all of your hard work....  
legendary
Activity: 1717
Merit: 1125
Build 10 of the alpha is released, Please check it out and let me know of any bugs. Next release will likely finally be a stable release of v3 depending on the feedback Smiley

Alpha version (build 10) of Seuntjies Dicebot is available at http://seuntjie.com/dicebot/dicebot-v3-alpha-b10.zip
Update log: http://seuntjie.com/dicebot/b10updates.txt
legendary
Activity: 1717
Merit: 1125

    A couple more things to add to your list.  Chance doesn't seem to work, or at least I can't seem to make it work.  Also current streak is only good for a current WIN streak.  it's always zero on the lose side.  Thats not a big deal as it's easy enough to code around if it's more then something simple to fix. 

   Also sometimes, before dobet() is executed balance is not valid.  IE it's a nil value.  I know my balance isn't much but it's not nil... Smiley  I think this is the first time I start the bot, once it's primed it's fine. 

   got your JD ID, so once I get a better balance I'll send you a tip.  Or if I can get a good strategy going  I'll put it in the code. 
 
          Thanks again... 
   

I know of the chance and the balance thing. Got that sorted already for the next build. Did not know about the losing streak thing. Thanks for pointing that out.
legendary
Activity: 1007
Merit: 1000

     Seuntjie,

    The programmer mode is the bomb...  It is so easy to try all kinds of new losing systems...  Cheesy  A few observations. 

 Did you mention returning the results of the roll....  Not just win or lose but the actual result.  I believe that was the only thing I wanted to use but it was not available. 

Man, once you get the hang of this, there is very little you can't do. 

  Also the invest/withdraw function.  Is that just for JD.  I know the invest and tip work on JD.  ( I probably drove Doog crazy with the invest function... Smiley ). 

You should set up the tip function with a default userid of you own.  Just an easy way to send you a tip...   When I'm rolling well I aways mean to send you a tip, but then I lose it all and can't...


   I don't know if it's something about my screen settings, but the programmer panels are just a little too big.  I have to scroll up/down to do almost anything.  go the the code panel, scroll down change the code, scroll back up, select console panel, scroll back down to enter a command.  rinse/ repeat.... 

Also when I get a script running I have to shrink the chart by about 3 pixels to get the full width on the console. 


Lua is soooo easy.  Almost like BASIC but without the line numbers.  I still have a hard time making changes to the code, and then just running it.  I always want to hit save somewhere... 

   All in all way to go.  I don't know if there is enough interest but may having a sub topic for using the programmer mode.  Examples, and help with doing various things. 

 


 
 


Hi, Thanks for the response. I haven't had a lot of people using the programmer mode so it's still very buggy and needs some new features. I've been working on bettering it and the next build (which could possibly finally be a stable release) will have a much better programmer mode.

Currently only the win/loss is returned as you noted, but I already implemented returning an object of a bet result that will have more details on the roll available for the user to use, such as the client seed, roll number, lucky number, chance, profit, etc etc. The invest function works at JD, PRC and safedice. the tip function works at JD, PRC and PD. Build 9 has a donate button that details to which account to tip depending on which site you're on.

I know of the scroll bar thing. It shows the bottom scroll bar because the side scroll bar is visible and it shows the side scroll bar because the bottom scroll bar is visible. I'll make a few adjustments there and get it to look a bit better.


I'm planning on adding a save button so the code is saved to a file, but in the mean time you can work in a text file and use only the following in the code box. Just make sure you have a dobet() method/function defined in the file as that method is called to determine the next bet.

Remove everything from the code box and add only
Code:
dofile("textfilename.txt")

Now when you start the bot, the code in your text file will be executed and the method/function will be loaded from the file. All declarations and assignments done outside of a method in the file will be executed once and all methods will be loaded when start() is called.


    A couple more things to add to your list.  Chance doesn't seem to work, or at least I can't seem to make it work.  Also current streak is only good for a current WIN streak.  it's always zero on the lose side.  Thats not a big deal as it's easy enough to code around if it's more then something simple to fix. 

   Also sometimes, before dobet() is executed balance is not valid.  IE it's a nil value.  I know my balance isn't much but it's not nil... Smiley  I think this is the first time I start the bot, once it's primed it's fine. 

   got your JD ID, so once I get a better balance I'll send you a tip.  Or if I can get a good strategy going  I'll put it in the code. 
 
          Thanks again... 
   
newbie
Activity: 56
Merit: 0
can't get this to work on Ubuntu are there any dependency I need to install
Yeah, dotNet. It's written for windows, it wouldn't work on unix.

You can try compiling it with mono, but you will need to compile every dll file with mono as well.

Yeah i couldn't get it to work on mono, nor wine. Sucks big time to be a non windows user
legendary
Activity: 1717
Merit: 1125
Hello seuntji..

how to make bet like this..

for every x roll loss increase by multiplier ..in example for every 100 loss increase by 100%

base bet 100 loss till 100th, then next bet 200..if it loss again on 100x rolls then next will be 400 bet...

thanks

Use the preset list and make a list of the bets you want it to make, or write a lua script to do it

how to do that? i need to browse preset list which is i dont have it..can you give me some example?

thanks

Type the bets in a text file, 1 per line with nothing else in the file. then browse for that file you made.
legendary
Activity: 1717
Merit: 1125

     Seuntjie,

    The programmer mode is the bomb...  It is so easy to try all kinds of new losing systems...  Cheesy  A few observations. 

 Did you mention returning the results of the roll....  Not just win or lose but the actual result.  I believe that was the only thing I wanted to use but it was not available. 

Man, once you get the hang of this, there is very little you can't do. 

  Also the invest/withdraw function.  Is that just for JD.  I know the invest and tip work on JD.  ( I probably drove Doog crazy with the invest function... Smiley ). 

You should set up the tip function with a default userid of you own.  Just an easy way to send you a tip...   When I'm rolling well I aways mean to send you a tip, but then I lose it all and can't...


   I don't know if it's something about my screen settings, but the programmer panels are just a little too big.  I have to scroll up/down to do almost anything.  go the the code panel, scroll down change the code, scroll back up, select console panel, scroll back down to enter a command.  rinse/ repeat.... 

Also when I get a script running I have to shrink the chart by about 3 pixels to get the full width on the console. 


Lua is soooo easy.  Almost like BASIC but without the line numbers.  I still have a hard time making changes to the code, and then just running it.  I always want to hit save somewhere... 

   All in all way to go.  I don't know if there is enough interest but may having a sub topic for using the programmer mode.  Examples, and help with doing various things. 

 


 
 


Hi, Thanks for the response. I haven't had a lot of people using the programmer mode so it's still very buggy and needs some new features. I've been working on bettering it and the next build (which could possibly finally be a stable release) will have a much better programmer mode.

Currently only the win/loss is returned as you noted, but I already implemented returning an object of a bet result that will have more details on the roll available for the user to use, such as the client seed, roll number, lucky number, chance, profit, etc etc. The invest function works at JD, PRC and safedice. the tip function works at JD, PRC and PD. Build 9 has a donate button that details to which account to tip depending on which site you're on.

I know of the scroll bar thing. It shows the bottom scroll bar because the side scroll bar is visible and it shows the side scroll bar because the bottom scroll bar is visible. I'll make a few adjustments there and get it to look a bit better.


I'm planning on adding a save button so the code is saved to a file, but in the mean time you can work in a text file and use only the following in the code box. Just make sure you have a dobet() method/function defined in the file as that method is called to determine the next bet.

Remove everything from the code box and add only
Code:
dofile("textfilename.txt")

Now when you start the bot, the code in your text file will be executed and the method/function will be loaded from the file. All declarations and assignments done outside of a method in the file will be executed once and all methods will be loaded when start() is called.
legendary
Activity: 1007
Merit: 1000

     Seuntjie,

    The programmer mode is the bomb...  It is so easy to try all kinds of new losing systems...  Cheesy  A few observations. 

 Did you mention returning the results of the roll....  Not just win or lose but the actual result.  I believe that was the only thing I wanted to use but it was not available. 

Man, once you get the hang of this, there is very little you can't do. 

  Also the invest/withdraw function.  Is that just for JD.  I know the invest and tip work on JD.  ( I probably drove Doog crazy with the invest function... Smiley ). 

You should set up the tip function with a default userid of you own.  Just an easy way to send you a tip...   When I'm rolling well I aways mean to send you a tip, but then I lose it all and can't...


   I don't know if it's something about my screen settings, but the programmer panels are just a little too big.  I have to scroll up/down to do almost anything.  go the the code panel, scroll down change the code, scroll back up, select console panel, scroll back down to enter a command.  rinse/ repeat.... 

Also when I get a script running I have to shrink the chart by about 3 pixels to get the full width on the console. 


Lua is soooo easy.  Almost like BASIC but without the line numbers.  I still have a hard time making changes to the code, and then just running it.  I always want to hit save somewhere... 

   All in all way to go.  I don't know if there is enough interest but may having a sub topic for using the programmer mode.  Examples, and help with doing various things. 

 


 
 
hero member
Activity: 602
Merit: 500
Hello seuntji..

how to make bet like this..

for every x roll loss increase by multiplier ..in example for every 100 loss increase by 100%

base bet 100 loss till 100th, then next bet 200..if it loss again on 100x rolls then next will be 400 bet...

thanks

Use the preset list and make a list of the bets you want it to make, or write a lua script to do it

how to do that? i need to browse preset list which is i dont have it..can you give me some example?

thanks
legendary
Activity: 1717
Merit: 1125
Hello seuntji..

how to make bet like this..

for every x roll loss increase by multiplier ..in example for every 100 loss increase by 100%

base bet 100 loss till 100th, then next bet 200..if it loss again on 100x rolls then next will be 400 bet...

thanks

Use the preset list and make a list of the bets you want it to make, or write a lua script to do it
hero member
Activity: 602
Merit: 500
Hello seuntji..

how to make bet like this..

for every x roll loss increase by multiplier ..in example for every 100 loss increase by 100%

base bet 100 loss till 100th, then next bet 200..if it loss again on 100x rolls then next will be 400 bet...

thanks
Jump to: