Bitcoin Forum

Economy => Gambling => Topic started by: daCoops on October 23, 2014, 10:24:25 PM



Title: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on October 23, 2014, 10:24:25 PM
Hi All,

Yes yet another betting bot for Prime Dice, but just thought that I would share it with the community as some people might benefit. I prefer Java as a language, and I couldn't find any bots for PD in Java, and so I created this.

It's no frills to be perfectly honest - but it has a few advantages:

  • Speed: As fast as I can get it and as fast as PD allows (at the moment). I got frustrated by how slow the PrimeDice website Auto Bet was, and so I tried to make a bot that was faster. PD's website averaged ~80 bets per minute for my tests. My java bot averages ~110. From what I can gather, The PrimeDice website and/or Cloudflare rate limits requests coming into their website. I think that they must do this based on the Access Token used for the request, and possibly tracking IPs. It seems to be limited to roughly a request every 280 to 320 milliseconds. Sending too many bet requests results in an HTTP 429 response (Too Many Requests). My bot script tweaks the delay between each request, and gradually attempts to get faster as successful HTTP requests are processed, and pulls back the delay if too much.
  • Easy To Mod: I've just coded this as simple as problem to use the Martingale style strategy with a tweakable Multiplier. Nice and easy, but perfect for strategies that require high throughput of bets. The code is nicely laid out (I'm no expert coder and I knocked this up in a day.
  • No Browser / timeout errors: Again problems with auto bet where it freezes after a few hours. This doesn't do that.

Here's a screenshot:
https://i.imgur.com/Ho02CbT.png?1

The source code is posted here free. There's been a lot of scams and scares over bots and mystery scripts stealing bitcoins. This doesn't do that as you can read through the source code.

If it helps other people create betting bots and use it as a "boiler plate" for complex strategies then I'll be happy. I've tested it quite a bit and not many bugs so far. I've posted here both the runnable jar and the source code.

If you'd like to donate and show appreciation then be my guest! Bit Coin Address is:
1Gj9AtrqAKmqKUYzuc27dmiGpro4Bk7BEe

And/or you can affiliate me by
https://primedice.com/?ref=Cunter

Link to source code:
https://github.com/daCoops/PrimeDiceBot

Or you can PM me and I'll send it to you direct via email, along with the Eclipse project etc.

Let me know what people think.
Thanks


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: DarkPirate2 on October 23, 2014, 11:15:46 PM
Didn't even launch for me? :(


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on October 23, 2014, 11:18:22 PM
Didn't even launch for me? :(

Did you run the jar file using the command line in the pic?

java -jar PrimeBot.jar

Any error message?


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: bigasic on October 23, 2014, 11:21:26 PM
Is there a strategy to make it go faster? To me, I would think  you would just lost your money that much quicker. So, is it better to bet as fast as you can? Id like to know if there is an advantage.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on October 23, 2014, 11:25:39 PM
Is there a strategy to make it go faster? To me, I would think  you would just lost your money that much quicker. So, is it better to bet as fast as you can? Id like to know if there is an advantage.

Well my strategy was that with Martingale, you rely upon the odds to get you back in the Black after a loss and a big Bank. If you betting very low, e.g. 0.00000001 - then with a bank of say 0.01 or 0.1 etc, it would take 18 - 22 bad throws in a row at 51% win chance to bust you. VERY unlikely (although still possible). Obviously this wont make you rich if the betting is slow. The faster the betting with this strategy, the more money!

Even a gain of say 20 - 30 bets a minute will give you a lot of benefit over a few hours to a day...

That's how I've been using it. It's not foolproof, but there is no "Winning" strategy to any dice game that is purely statistics...


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: il_minatore on November 06, 2014, 02:54:01 PM
I tried to compile but reports errors with json

"error: package org.json.simple does not exist"


(I'm a newbie...)

thanks


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: il_minatore on November 06, 2014, 05:51:28 PM


Or you can PM me and I'll send it to you direct via email, along with the Eclipse project etc.

Let me know what people think.
Thanks


You had PM


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on November 07, 2014, 01:08:19 PM


Or you can PM me and I'll send it to you direct via email, along with the Eclipse project etc.

Let me know what people think.
Thanks


You had PM

Sorry - didn't check the thread in a while..

Eclipse Project sent.

Looks like the error you had means that it hasn't found the JSON jar file that it needs. It's within the zip I sent you. If it still brings up the error then you need to make sure that the Jar is included in the build path for the project within Eclipse.

Email / PM me direct if you still get problems...


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 06, 2015, 03:01:12 PM
Hey All,

I know that a few people have contacted me about the bot for the source code - and I have sent it. I think that maybe the original links are not working anymore. Although I'm not actively coding this, it would be interesting to know if people have made any good mods or improvements to it etc

If there's still interest in it then I can maybe find a better place for the source code to host it...


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: vishesh on January 06, 2015, 03:21:29 PM
it  shows  me  error  :(


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: CrackedLogic on January 06, 2015, 03:35:48 PM
Will you be adding a GUI? It seems pretty difficult to use for non-savvy users.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: sickhouse on January 06, 2015, 03:48:18 PM
Will you be adding a GUI? It seems pretty difficult to use for non-savvy users.
Or just simply post a guide on how to use this. That would satisfy the people who have no idea what to do with this.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: sethminer14 on January 06, 2015, 03:55:02 PM
GUI would be super helpful. I guess im not as tech savvy as I though... ??? ??? ???


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: CrackedLogic on January 06, 2015, 03:57:01 PM
Will you be adding a GUI? It seems pretty difficult to use for non-savvy users.
Or just simply post a guide on how to use this. That would satisfy the people who have no idea what to do with this.

Or that too, lets of some stress on you  ;) .


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 06, 2015, 05:26:11 PM
Will you be adding a GUI? It seems pretty difficult to use for non-savvy users.
Or just simply post a guide on how to use this. That would satisfy the people who have no idea what to do with this.

Or that too, lets of some stress on you  ;) .


A GUI... will take a look into it but can't promise anything - mainly because I've never coded a GUI in Java before... won't be a fast turnaround - but why not, I'll give it a try


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: baristor on January 06, 2015, 06:08:35 PM
nice bot works well. but profit dno.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: fixmod on January 08, 2015, 10:33:17 AM
love the bot . thanks for making such a nice bot.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 08, 2015, 10:34:32 AM
love the bot . thanks for making such a nice bot.


Many thanks!


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Mitchell on January 08, 2015, 10:35:35 AM
Why don't you upload the source to Github? That way people can make adjustments and comments. Also checking out a source would be a lot easier if it was on Github or any Git related website for that matter.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 08, 2015, 10:56:29 AM
Why don't you upload the source to Github? That way people can make adjustments and comments. Also checking out a source would be a lot easier if it was on Github or any Git related website for that matter.

Yep - just did that. Originally uploaded it to BitBucket, but then not as User friendly as GitHub for non registered people to browse, so it's now on GitHub..

https://github.com/daCoops/PrimeDiceBot


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: fixmod on January 08, 2015, 11:11:20 AM
if someone can add a preroll option that would be perfect.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 08, 2015, 11:08:42 PM
I've uploaded the jar file to the repo now as well. I know it's not the correct thing to do for a code repo, but I'm getting a few PMs about people not being able to run this. More info is on the Readme.md on GitHub now. Hopefully people can at least get it running now  :)


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: myohmy81 on January 08, 2015, 11:13:01 PM

I'll make another bot to analyze your bot source

Thanks man you greate :D




Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Mitchell on January 08, 2015, 11:15:04 PM
I've uploaded the jar file to the repo now as well. I know it's not the correct thing to do for a code repo, but I'm getting a few PMs about people not being able to run this. More info is on the Readme.md on GitHub now. Hopefully people can at least get it running now  :)
You should use release for that (which is the clean and correct way). You can create releases (and upload Jar's to it) here (https://github.com/daCoops/PrimeDiceBot/releases).


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Olaf on January 08, 2015, 11:41:33 PM
its a dumb question, but im not savy with stuff like this but does this work on macs?


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: fixmod on January 09, 2015, 07:43:27 AM
its a dumb question, but im not savy with stuff like this but does this work on macs?
yes will work


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 09, 2015, 10:25:27 AM
I've uploaded the jar file to the repo now as well. I know it's not the correct thing to do for a code repo, but I'm getting a few PMs about people not being able to run this. More info is on the Readme.md on GitHub now. Hopefully people can at least get it running now  :)
You should use release for that (which is the clean and correct way). You can create releases (and upload Jar's to it) here (https://github.com/daCoops/PrimeDiceBot/releases).

Many thanks - I'll take a look at doing that. I'm new to Git & GitHub. Usually use SVN offline myself, but trying to learn Git is....well a git.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Josef27 on January 09, 2015, 11:44:48 AM
I'm new with (real) bot things, but would PrimeDice let the users to use external bot? I don't want getting kicked :P


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 09, 2015, 04:10:00 PM
I'm new with (real) bot things, but would PrimeDice let the users to use external bot? I don't want getting kicked :P

There shouldn't be a problem - all the code that I use here was taken from their API. If they didn't want people to automate the betting, then they shouldn't publish an API on their site.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Mitchell on January 09, 2015, 04:13:20 PM
If you need help with creating a release, just tell me and I will write you a nice how-to. ;)


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 09, 2015, 04:28:58 PM
If you need help with creating a release, just tell me and I will write you a nice how-to. ;)

Hey - that would be much appreciated if you could! Many thanks


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Mitchell on January 09, 2015, 09:57:08 PM
Hey - that would be much appreciated if you could! Many thanks
How-to has been sent! Enjoy and good luck. ;)


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: zinjo on January 10, 2015, 01:48:14 AM
hmm???
http://prntscr.com/5ql5ry


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Mitchell on January 10, 2015, 11:11:31 AM
hmm???
http://prntscr.com/5ql5ry
Sounds like the file isn't in Desktop :P


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Josef27 on January 11, 2015, 04:39:05 AM
There shouldn't be a problem - all the code that I use here was taken from their API. If they didn't want people to automate the betting, then they shouldn't publish an API on their site.
I get it. Thanks!
Gonna try it soon


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Anonymoose33 on January 12, 2015, 01:28:05 AM
Bot works nice.  Thank you!  8)

A tip for Windows users to get this running because there is not much of a howto.

First you need to make sure you have Java installed:

Click Start -> type cmd to open the Command Prompt
Then type java -version

If it can't find anything, you need to download and install it from the Java website. https://java.com/en/download/ (https://java.com/en/download/)

Once that is done, extract the .zip file from GitHub to your desktop (can be anywhere but put it here for the tutorial)

In your command prompt window you need to make sure it is reading from the proper directory, by default it will be on:
C:\Users\YourComputerName>
So to point it to the proper folder type:
C:\Users\YourComputerName>cd Desktop\PrimeDiceBot-master

NOW you can type:
C:\Users\YourComputerName\Desktop\PrimeDiceBot-master>java -jar PrimeBot.jar

And the rest of the instructions will appear on the screen.  If you have any troubles feel free to PM me.

Thanks again daCoops for the bot!


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Anonymoose33 on January 12, 2015, 02:09:38 AM
This section can pose some serious problems if you are using a multiplier other than 2x:
Code:
			if (currentBet != null)
{
successHTTP = successHTTP + 1;
meStats.updateProfitSession(currentBet.getDouble("profit"));
if (!currentBet.getBoolean("win"))
{
//System.out.println("Lost Bet");
nextBetAmount = Math.round(nextBetAmount * increaseOnLossMultiplier);
//System.out.println("Next Bet Is = " + nextBetAmount);
lostCount = lostCount + 1;
if (lostCount == 5)
{
if (direction.equals(LESS))
{
direction = BIG;
}
else
{
direction = LESS;
}
}
}
else
{
nextBetAmount = baseBet;
lostCount = 0;
}

If you are running say a 1.5x multiplier @ <66, losing 5x in a row will change to >66 resulting in a 2.9x multiplier until you get another 5x loss in a row changing it back to <66 1.5x multiplier.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on January 12, 2015, 10:45:11 AM
This section can pose some serious problems if you are using a multiplier other than 2x:
Code:
			if (currentBet != null)
{
successHTTP = successHTTP + 1;
meStats.updateProfitSession(currentBet.getDouble("profit"));
if (!currentBet.getBoolean("win"))
{
//System.out.println("Lost Bet");
nextBetAmount = Math.round(nextBetAmount * increaseOnLossMultiplier);
//System.out.println("Next Bet Is = " + nextBetAmount);
lostCount = lostCount + 1;
if (lostCount == 5)
{
if (direction.equals(LESS))
{
direction = BIG;
}
else
{
direction = LESS;
}
}
}
else
{
nextBetAmount = baseBet;
lostCount = 0;
}

If you are running say a 1.5x multiplier @ <66, losing 5x in a row will change to >66 resulting in a 2.9x multiplier until you get another 5x loss in a row changing it back to <66 1.5x multiplier.

Hi Anonymoose - thanks for taking a look at it. I'm still a little confused as to how the multiplier changes within this code? The multiplier for raising the next bet amount after a loss doesn't change.

Or... are you referring to the part that if I'm betting at say <66, then flipping the sign to >66 will change the betting odds for that bet? If this is the case, then it probably should be (1-BetChance) when flipping from greater to lesser etc?


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Anonymoose33 on January 12, 2015, 09:34:37 PM
This section can pose some serious problems if you are using a multiplier other than 2x:
Code:
			if (currentBet != null)
{
successHTTP = successHTTP + 1;
meStats.updateProfitSession(currentBet.getDouble("profit"));
if (!currentBet.getBoolean("win"))
{
//System.out.println("Lost Bet");
nextBetAmount = Math.round(nextBetAmount * increaseOnLossMultiplier);
//System.out.println("Next Bet Is = " + nextBetAmount);
lostCount = lostCount + 1;
if (lostCount == 5)
{
if (direction.equals(LESS))
{
direction = BIG;
}
else
{
direction = LESS;
}
}
}
else
{
nextBetAmount = baseBet;
lostCount = 0;
}

If you are running say a 1.5x multiplier @ <66, losing 5x in a row will change to >66 resulting in a 2.9x multiplier until you get another 5x loss in a row changing it back to <66 1.5x multiplier.

Hi Anonymoose - thanks for taking a look at it. I'm still a little confused as to how the multiplier changes within this code? The multiplier for raising the next bet amount after a loss doesn't change.

Or... are you referring to the part that if I'm betting at say <66, then flipping the sign to >66 will change the betting odds for that bet? If this is the case, then it probably should be (1-BetChance) when flipping from greater to lesser etc?

Or... are you referring to the part that if I'm betting at say <66, then flipping the sign to >66 will change the betting odds for that bet? If this is the case, then it probably should be (1-BetChance) when flipping from greater to lesser etc?

This.

Flipping the sign but keeping the number the same.  So if you are running at a 1.5x multiplier <66 flipping the sign should actually result in >33 to keep it @ 1.5x.  Just using 1.5x @ <66 as an example but applies to any multiplier other than 2x.

Hope this helps.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: birdcat90 on February 26, 2015, 12:30:27 AM
crimsonnoble of primedice made a bot being sold for 0.06 that works on primedice, it is faster than this, mainly meant for 9900x, TheTiger has made alot of 9900x in a couple hours, http://satoshibox.com/54ee51124c347bdee90083a4
well this is what i need..just like 99dice that has instant autbobet..

i just need fast roll not slow but it will save my time...


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on March 18, 2015, 12:23:04 AM
crimsonnoble of primedice made a bot being sold for 0.06 that works on primedice, it is faster than this, mainly meant for 9900x, TheTiger has made alot of 9900x in a couple hours, http://satoshibox.com/54ee51124c347bdee90083a4

Thanks for the hijack of this thread pointing to a link that no longer works...

If there is a bot that works faster than the one I've written that I think it would be good for the author to share info on how it's done. Otherwise I'm shouting FAKE and SCAM by yourself rkade.

I've searched for crimsonnoble, and have found a good post by them about botting on PrimeDice via a script in Javascript. The thread posts there have people saying they are getting an HTTP 429 response which is the code for "Too Many Requests" - i.e. the server can't handle the load, with recommendations to drop down to a speed of 1 second a bet.

Since I created this thread, I'd warn everyone that has to PAY to get a betting bot before a trial is probably getting scammed.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 04, 2015, 08:47:25 AM
Hi,

Thanks for creating such a lightweight and straightforward bot. So far, this is is one of my favorites.

If it's not too much to ask, may I request a bit of help on getting  a modification compiled?

Here's what I was trying to make happen:

I need to be able to set a percentage in place of the base bet in the string arguments so that as the balance increases, so will the base bet in proportion to the balance.

Ex. My bankroll is .01BTC so the percent I would set is 0.00152590218966964% setting my base bet to 0.00000153 approx and giving me around 16 maximum bets in the martingale (x2) strategy.

I looked through the code and it seems simple enough. I was thinking that a baseBetPercent variable (in place of the original baseBet) could store this percent value i was referring to and the nextBetAmount could be set to something like nextBetAmount = (CurrentBalance * baseBetPercent); or something to that extent.

I have a little background in programming so I thought id try to recompile it myself however I am unfamiliar with the eclipse compiler as well as the primedice variable for the users current balance.

I'm afraid I really need to ask your help on either doing a quick rewrite and recompile, or pointing me in the right direction so I could try it myself. I'm thinking however, that it might actually be easier for you to do the first suggestion as opposed to teaching me what to do. Regardless, whatever you are comfortable doing, I'd really appreciate it.

Again, great program as is, I hope I'm not asking too much.

Respectfully,
Blayzer


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 04, 2015, 10:26:37 AM
Hi,

Thanks for creating such a lightweight and straightforward bot. So far, this is is one of my favorites.

If it's not too much to ask, may I request a bit of help on getting  a modification compiled?

Here's what I was trying to make happen:

I need to be able to set a percentage in place of the base bet in the string arguments so that as the balance increases, so will the base bet in proportion to the balance.

Ex. My bankroll is .01BTC so the percent I would set is 0.00152590218966964% setting my base bet to 0.00000153 approx and giving me around 16 maximum bets in the martingale (x2) strategy.

I looked through the code and it seems simple enough. I was thinking that a baseBetPercent variable (in place of the original baseBet) could store this percent value i was referring to and the nextBetAmount could be set to something like nextBetAmount = (CurrentBalance * baseBetPercent); or something to that extent.

I have a little background in programming so I thought id try to recompile it myself however I am unfamiliar with the eclipse compiler as well as the primedice variable for the users current balance.

I'm afraid I really need to ask your help on either doing a quick rewrite and recompile, or pointing me in the right direction so I could try it myself. I'm thinking however, that it might actually be easier for you to do the first suggestion as opposed to teaching me what to do. Regardless, whatever you are comfortable doing, I'd really appreciate it.

Again, great program as is, I hope I'm not asking too much.

Respectfully,
Blayzer


I think I managed a crude way to do it. Here's what I did.

I added

startBal = userStats.getDouble("balance");

after the line

meStats.parseStats(userStats);

and I changed the original nextBetAmount to nextBetAmount = Math.round(startBal * baseBet);

then I changed baseBet from int to double and used that variable as the multiplier I wanted. In this case 0.0000152590218966964
I exported to an executable jar and named it primebot2.jar and to run, I type in:

java -jar primebot2.jar myuser mypass 0.0000152590218966964 49.5 2.0 99999999

so far it seems to be working fine although I'm not sure if the variable startBal will update after every bet. I have a feeling it will only set it when it logs on...

perhaps there is a way to do it so that the variable updates after every bet? I'm hoping it doesnt slow down the bot significantly because speed is the beatu of this one.

Let me know how I can improve it please.

Thanks!


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 05, 2015, 08:52:28 AM
Hi,

Thanks for creating such a lightweight and straightforward bot. So far, this is is one of my favorites.

If it's not too much to ask, may I request a bit of help on getting  a modification compiled?

Here's what I was trying to make happen:

I need to be able to set a percentage in place of the base bet in the string arguments so that as the balance increases, so will the base bet in proportion to the balance.

Ex. My bankroll is .01BTC so the percent I would set is 0.00152590218966964% setting my base bet to 0.00000153 approx and giving me around 16 maximum bets in the martingale (x2) strategy.

I looked through the code and it seems simple enough. I was thinking that a baseBetPercent variable (in place of the original baseBet) could store this percent value i was referring to and the nextBetAmount could be set to something like nextBetAmount = (CurrentBalance * baseBetPercent); or something to that extent.

I have a little background in programming so I thought id try to recompile it myself however I am unfamiliar with the eclipse compiler as well as the primedice variable for the users current balance.

I'm afraid I really need to ask your help on either doing a quick rewrite and recompile, or pointing me in the right direction so I could try it myself. I'm thinking however, that it might actually be easier for you to do the first suggestion as opposed to teaching me what to do. Regardless, whatever you are comfortable doing, I'd really appreciate it.

Again, great program as is, I hope I'm not asking too much.

Respectfully,
Blayzer


I think I managed a crude way to do it. Here's what I did.

I added

startBal = userStats.getDouble("balance");

after the line

meStats.parseStats(userStats);

and I changed the original nextBetAmount to nextBetAmount = Math.round(startBal * baseBet);

then I changed baseBet from int to double and used that variable as the multiplier I wanted. In this case 0.0000152590218966964
I exported to an executable jar and named it primebot2.jar and to run, I type in:

java -jar primebot2.jar myuser mypass 0.0000152590218966964 49.5 2.0 99999999

so far it seems to be working fine although I'm not sure if the variable startBal will update after every bet. I have a feeling it will only set it when it logs on...

perhaps there is a way to do it so that the variable updates after every bet? I'm hoping it doesnt slow down the bot significantly because speed is the beatu of this one.

Let me know how I can improve it please.

Thanks!

So after staring at the code for a few hours, I think I finally understand it a bit more. I've managed to do the mods that I needed. I'm not sure if they were done in the best coding practices but nonetheless they work.

No further help required at the moment. I just wanted to thank you for unselfishly releasing this code for the benefit of others. You are right, there are a lot of bots out there that may have malicious code. I myself have been a victim of such tricks so I'm glad to be able to compile from source thanks to you.

Cheers!
Blayzer


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 06, 2015, 02:24:06 AM
This section can pose some serious problems if you are using a multiplier other than 2x:
Code:
			if (currentBet != null)
{
successHTTP = successHTTP + 1;
meStats.updateProfitSession(currentBet.getDouble("profit"));
if (!currentBet.getBoolean("win"))
{
//System.out.println("Lost Bet");
nextBetAmount = Math.round(nextBetAmount * increaseOnLossMultiplier);
//System.out.println("Next Bet Is = " + nextBetAmount);
lostCount = lostCount + 1;
if (lostCount == 5)
{
if (direction.equals(LESS))
{
direction = BIG;
}
else
{
direction = LESS;
}
}
}
else
{
nextBetAmount = baseBet;
lostCount = 0;
}

If you are running say a 1.5x multiplier @ <66, losing 5x in a row will change to >66 resulting in a 2.9x multiplier until you get another 5x loss in a row changing it back to <66 1.5x multiplier.

Hi Anonymoose - thanks for taking a look at it. I'm still a little confused as to how the multiplier changes within this code? The multiplier for raising the next bet amount after a loss doesn't change.

Or... are you referring to the part that if I'm betting at say <66, then flipping the sign to >66 will change the betting odds for that bet? If this is the case, then it probably should be (1-BetChance) when flipping from greater to lesser etc?

Or... are you referring to the part that if I'm betting at say <66, then flipping the sign to >66 will change the betting odds for that bet? If this is the case, then it probably should be (1-BetChance) when flipping from greater to lesser etc?

This.

Flipping the sign but keeping the number the same.  So if you are running at a 1.5x multiplier <66 flipping the sign should actually result in >33 to keep it @ 1.5x.  Just using 1.5x @ <66 as an example but applies to any multiplier other than 2x.

Hope this helps.


I found that this fixes it:

Code:

if (direction.equals(LESS))
{
direction = BIG;
target = (100 - target);
}
else
{
direction = LESS;
target = (100 - target);
}



Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on April 07, 2015, 09:31:06 AM

So after staring at the code for a few hours, I think I finally understand it a bit more. I've managed to do the mods that I needed. I'm not sure if they were done in the best coding practices but nonetheless they work.

No further help required at the moment. I just wanted to thank you for unselfishly releasing this code for the benefit of others. You are right, there are a lot of bots out there that may have malicious code. I myself have been a victim of such tricks so I'm glad to be able to compile from source thanks to you.

Cheers!
Blayzer

Hi Blayzer - I'm really glad that you found my bot, and that you can understand the code and recompile/mod it in a way that suits you. That was my main aim in coding it. I wanted to lay the code out and write code so it was as easy to follow as possible. Also, having it opensource ensures that there are no scams hidden away in there as you mention there are many out there.

My time is increasingly being taken up by hundreds of other things too - another reason why I wanted this version's source code to be released so that others can support it and modify it for themselves without having me as a bottleneck to their own progress.

If you win big using it then consider donating a little! ;)

Edit: - Actually I think you did just donate - if that was your transaction on 1st April - if so - Many thanks!


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 07, 2015, 03:25:17 PM
This section can pose some serious problems if you are using a multiplier other than 2x:
Code:
			if (currentBet != null)
{
successHTTP = successHTTP + 1;
meStats.updateProfitSession(currentBet.getDouble("profit"));
if (!currentBet.getBoolean("win"))
{
//System.out.println("Lost Bet");
nextBetAmount = Math.round(nextBetAmount * increaseOnLossMultiplier);
//System.out.println("Next Bet Is = " + nextBetAmount);
lostCount = lostCount + 1;
if (lostCount == 5)
{
if (direction.equals(LESS))
{
direction = BIG;
}
else
{
direction = LESS;
}
}
}
else
{
nextBetAmount = baseBet;
lostCount = 0;
}

If you are running say a 1.5x multiplier @ <66, losing 5x in a row will change to >66 resulting in a 2.9x multiplier until you get another 5x loss in a row changing it back to <66 1.5x multiplier.

Actually it will shift direction after the first 5 losses and will continue until a win. It will only change direction again after a win and 5 losses again.
if you start low and have a loosing streak of 12, it will change to hi after the first 5 losses and continue 7 more times + the wins after that + the next losses after.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 07, 2015, 03:42:01 PM

So after staring at the code for a few hours, I think I finally understand it a bit more. I've managed to do the mods that I needed. I'm not sure if they were done in the best coding practices but nonetheless they work.

No further help required at the moment. I just wanted to thank you for unselfishly releasing this code for the benefit of others. You are right, there are a lot of bots out there that may have malicious code. I myself have been a victim of such tricks so I'm glad to be able to compile from source thanks to you.

Cheers!
Blayzer

Hi Blayzer - I'm really glad that you found my bot, and that you can understand the code and recompile/mod it in a way that suits you. That was my main aim in coding it. I wanted to lay the code out and write code so it was as easy to follow as possible. Also, having it opensource ensures that there are no scams hidden away in there as you mention there are many out there.

My time is increasingly being taken up by hundreds of other things too - another reason why I wanted this version's source code to be released so that others can support it and modify it for themselves without having me as a bottleneck to their own progress.

If you win big using it then consider donating a little! ;)

Edit: - Actually I think you did just donate - if that was your transaction on 1st April - if so - Many thanks!


Hey thanks for the reply. I was beginning to think I was all alone on this thread.... hahaha

I will indeed donate when I get more BTC... unfortunately that wasn't mine.

cheers!


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 09, 2015, 06:52:08 AM
Finally got the features I wanted in... took a while as I have never programmed in Java but i guess it works... take a look
https://bitcointalk.org/index.php?topic=1018417.0

also sent you a tiny bit. Will send more soon.

Thanks again.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: pulluphf on April 11, 2015, 11:55:30 PM
This is not working for me when I put the first [target] @ 10, it worked fine for a bit, then when I check, it was changing to a 90% win rate after 5 losses? I'm sooo confused  ??? Also, it works perfectly with: 5 51.5 2.1 100000000, but when I try to edit it, it fucks up bad...  :'(
https://i.imgur.com/s1UIpr6.png


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on April 12, 2015, 03:32:06 AM
This is not working for me when I put the first [target] @ 10, it worked fine for a bit, then when I check, it was changing to a 90% win rate after 5 losses? I'm sooo confused  ??? Also, it works perfectly with: 5 51.5 2.1 100000000, but when I try to edit it, it fucks up bad...  :'(
https://i.imgur.com/s1UIpr6.png

you need to find this part of the code:

Code:
if (direction.equals(LESS))
{
        direction = BIG;
}
else
{
        direction = LESS;
}

and change to

Code:
if (direction.equals(LESS))
{
direction = BIG;
target = (100 - target);
}
else
{
direction = LESS;
target = (100 - target);
}

Then recreate the jar file

I've created the jar file with the mentioned fix just in case you wanted to test it right away. All code is untouched except for the change I mentioned above.
http://www28.zippyshare.com/v/EQPtMShx/file.html


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: pulluphf on April 16, 2015, 09:26:08 PM
This is not working for me when I put the first [target] @ 10, it worked fine for a bit, then when I check, it was changing to a 90% win rate after 5 losses? I'm sooo confused  ??? Also, it works perfectly with: 5 51.5 2.1 100000000, but when I try to edit it, it fucks up bad...  :'(
https://i.imgur.com/s1UIpr6.png

you need to find this part of the code:

Code:
if (direction.equals(LESS))
{
        direction = BIG;
}
else
{
        direction = LESS;
}

and change to

Code:
if (direction.equals(LESS))
{
direction = BIG;
target = (100 - target);
}
else
{
direction = LESS;
target = (100 - target);
}

Then recreate the jar file

I've created the jar file with the mentioned fix just in case you wanted to test it right away. All code is untouched except for the change I mentioned above.
http://www28.zippyshare.com/v/EQPtMShx/file.html
Thank's bb <3  :-*


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Gaxaro90 on May 18, 2015, 02:02:24 AM
Hmm.. I'm getting a strange error from it. It worked fine before but now it suddendly just starts giving me errors.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on May 19, 2015, 09:59:10 AM
Hi - Does it throw out any error/debug messages to the command prompt?

I haven't used it for a long time, but I check this thread regularly - I'm just wondering whether PrimeDice have changed their API slightly? Looking at their API page it seems to be the same though... Not sure..


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Nauro on May 19, 2015, 01:26:32 PM
Its giving me errors for now :(


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: PesiHUN on May 28, 2015, 10:18:28 AM
Hi i cant start, no error, nothing appears. :/ what can i do?


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: ronimacarroni on June 04, 2015, 12:00:09 AM
K guys I fixed it
https://drive.google.com/open?id=0BxEW9g68wMH4NzBselFLbG1qQVk&authuser=0
Turns the whole withdraw thing was causing all the problems.
Tip pls 1MAZoX324kTVqt3XcU5k4EvvfSdeodZwp7


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: Ingatqhvq on June 04, 2015, 04:28:09 AM
Is the bot officially or just personal's work?
I do believe the site should provide a bot.


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: ahumanbeingx on June 04, 2015, 05:38:00 AM
Anyone making any cheese off this one? Looks like it could be a winner but is it?


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: daCoops on June 04, 2015, 03:45:35 PM
Is the bot officially or just personal's work?
I do believe the site should provide a bot.

It was my personal work. I developed it as I found the official PrimeDice auto roll very slow and flaky, so I coded my own Java bot one - and decided to release it open source for everyone!

Unfortunately, I don't use it anymore but obviously check out the thread now and again. Instead, I've moved onto my PocketRocketsCasino Javascript Dice Bot which is amazingly fast compared to this - just under 10 bets a second!


Title: Re: Yet Another PrimeDice Bot - Java (Faster than AutoBet!)
Post by: blayzer on July 03, 2015, 01:23:09 PM
Is the bot officially or just personal's work?
I do believe the site should provide a bot.

It was my personal work. I developed it as I found the official PrimeDice auto roll very slow and flaky, so I coded my own Java bot one - and decided to release it open source for everyone!

Unfortunately, I don't use it anymore but obviously check out the thread now and again. Instead, I've moved onto my PocketRocketsCasino Javascript Dice Bot which is amazingly fast compared to this - just under 10 bets a second!

Could you share the bot for PRC please?