Poker-AI.org Poker AI and Botting Discussion Forum 2014-03-09T02:35:57+00:00 http://poker-ai.org/phpbb/feed.php?f=22&t=2691 2014-03-09T02:35:57+00:00 2014-03-09T02:35:57+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5815#p5815 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]> Statistics: Posted by ibot — Sun Mar 09, 2014 2:35 am


]]>
2014-03-08T11:12:30+00:00 2014-03-08T11:12:30+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5809#p5809 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]> Statistics: Posted by Seikez — Sat Mar 08, 2014 11:12 am


]]>
2014-03-08T00:36:25+00:00 2014-03-08T00:36:25+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5807#p5807 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]>
The post spears was referring to was possibly this one:
http://poker-ai.org/archive/www.pokerai.org/pf3/viewtopicc02a-3.html?f=3&t=2942

However, as expected it doesn't seem to work out the box so will need a little tweaking. I'm going to have a go although i'm a newbie to Autoit, looks like it should just be some small changes to x,y locations..?

Statistics: Posted by ibot — Sat Mar 08, 2014 12:36 am


]]>
2014-01-27T16:52:35+00:00 2014-01-27T16:52:35+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5657#p5657 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]> Statistics: Posted by spears — Mon Jan 27, 2014 4:52 pm


]]>
2014-01-27T16:14:14+00:00 2014-01-27T16:14:14+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5655#p5655 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]> Quote:

Use AutoIt to reset bankroll

I have considered that, and it is an attractive solution if I look at only the testbed. But that would mean I have to develop two parallel ways to control programs running on a VM. One for my testbed where AutoIt can run on the VM and control PokerAcademy. And another way for my online play where I need a high stealth method to control the poker client.

As far a I understand it, AutoIt has to run on the same machine as the program it controls in order to find buttons, textboxes and so on. If AutoIt runs on the same VM as the poker client, the client would discover it and yell BOT! Unless of course there is a secure way that I don't know of to hide AutoIt from the poker client and still have it control the client. Is there such a way?

Statistics: Posted by Seikez — Mon Jan 27, 2014 4:14 pm


]]>
2014-01-27T11:03:13+00:00 2014-01-27T11:03:13+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5650#p5650 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]> Quote:

control PA running in a VM from my C# app running on the host
Use AutoIt to reset bankroll

Statistics: Posted by spears — Mon Jan 27, 2014 11:03 am


]]>
2014-01-27T10:30:20+00:00 2014-01-27T10:30:20+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5649#p5649 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]>
I have now looked at the contents of the meerkat-api.jar file in API versions 1.5.1 and 2.0 and the 'poker' namespace is there as indicated by documentation in the 'index-all.html'. This namespace is not present in the 2.5 .jar. So it seems API version 2.5 is radically different from the earlier versions and that there is no way to set player bankroll programmatically via the API for PA 2.5. What a pity they made that change!

I don't know yet how I am going to solve this. Open Testbed is one option I might have a look at. Or maybe I will just grab the bull by it's horns and implement some remote control thingy that allows me to control PA running in a VM from my C# app running on the host. Something like this will have to be done sooner or later anyway when I start playing on the poker sites.

It's interesting (and a little scary) how one thing tends to lead to at least one more thing when developing a bot. I realize now that developing a bot that can successfully play online will take years, not months.

Statistics: Posted by Seikez — Mon Jan 27, 2014 10:30 am


]]>
2014-01-26T22:18:01+00:00 2014-01-26T22:18:01+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5648#p5648 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]> Seikez wrote:

Is it at all possible to set a players bankroll via Meerkat in PokerAcademy 2.5 ?


I don't have PA handy at the moment so I can't be 100% sure about what I'm saying. I seem to remember Marc Ponsen asking how to do this and I suggested using Autoit. It's an ugly solution and I wouldn't have suggested it if there was a straightforward way. As I remember he was quite happy.

The unresolved method error message is quite interesting though. I think that can only occur at compilation time or if you are using reflection.

I've attached some older versions of the meerkat api that might or might not be useful

Maybe you could use Open Meerkat TestBed

Statistics: Posted by spears — Sun Jan 26, 2014 10:18 pm


]]>
2014-01-26T21:28:37+00:00 2014-01-26T21:28:37+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5647#p5647 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]>
If I open the file allclasses-frame.html, I get documentation for namespace com.biotools.meerkat where there are no setXXXX methods at all. This documentation corresponds to what I see in the eclipse package explorer.

I am beginning to suspect that all the handy setXXXX methods I found in index-all.html belong to some older version of the Meerkat API and version 2.5 (which I believe I have) has been changed to become almost exclusively read-only and that there is no way to set values such as bankroll from a bot. I really hope I am wrong, because that would mean big trouble for me. :shock:

Is it at all possible to set a players bankroll via Meerkat in PokerAcademy 2.5 ?

If not, what should I do? Maybe downgrade to a previous version of PA? Where do I find such a version, and what bugs does it have? Any other ideas?

Statistics: Posted by Seikez — Sun Jan 26, 2014 9:28 pm


]]>
2014-01-26T19:59:43+00:00 2014-01-26T19:59:43+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5646#p5646 <![CDATA[Re: Setting player bankroll from PokerAcademy Meerkat API]]>
I did some simulations against PokerAcademy many years ago.

It was so long ago (about 10 years!) that my info may be totally out of date.

However - I have some ancient source I was using at the time - and it looks like I was using an alternative method setBankRollAndSave eg :

PlayerInfo p = gi.getPlayerInfo(i); // gi is the GameInfo
p.setBankRollAndSave(100.0*sizeofbb);

Maybe it stayed the same?

Good luck.

PeppaPig

Statistics: Posted by PeppaPig — Sun Jan 26, 2014 7:59 pm


]]>
2014-01-26T12:31:53+00:00 2014-01-26T12:31:53+00:00 http://poker-ai.org/phpbb/viewtopic.php?t=2691&p=5644#p5644 <![CDATA[Setting player bankroll from PokerAcademy Meerkat API]]>
In Meerkat documentation it says that in class PlayerInfo there is a method setBankRoll(double br), which seems to be just what I need. But when I try to use that method in the Java combot, the method is not found. I am not really a Java programmer, so I might be doing something wrong.

This is how I tried to use setBankRoll() in the gameStartEvent of the combot:
Code:
   public void gameStartEvent(GameInfo gInfo) {
      this.gi = gInfo;
      String s = new String("");
      s = String.format("01;%d;%4.2f;%d;%d;%d;\n",BotId,gi.getBigBlindSize(),gi.getNumPlayers(),gi.getButtonSeat(),gi.getGameID());
      ComSend(s);
      for (int seat = 0;seat < 10; seat++) {
         if (gi.inGame(seat)) {
            s = String.format("02;%d;%d;%s;%4.2f;\n",BotId,seat,gi.getPlayer(seat).getName(),gi.getPlayer(seat).getBankRoll());
            PlayerInfo pi = gi.getPlayer(seat);
            pi.setBankRoll(100.0);   // Can not resolve method!!!
            ComSend(s);
         }
      }
   }



How can I set the bankroll for players?

Statistics: Posted by Seikez — Sun Jan 26, 2014 12:31 pm


]]>