[Pogamut-list] Run bot from command line

cazub pogamut-forum at artemis.ms.mff.cuni.cz
Sat Oct 25 21:50:16 CEST 2008


Re: Re: Re: Run bot from command line
**EDIT**

Schrum2 , I've recoded a couple things and now the batch of bots is working! 
So before you had the code , and i'll add one more bot so you can see how

bot mybot = new bot();
// the 'true' in the constructor is needed no matter what it seems
AgentLauncher? launcher = new AgentLauncher(mybot, gameBots, true);
launcher.launch(); // launches bot
launcher.getAgent().getBody().configureName(str); //sets name of bot

bot mybot2 = new bot();
AgenLauncher launcher2 = new AgentLauncher(mybot2, gameBots, true);
launcher2.launch();
launcher2.getAgent().getBody().configureName(str+"2");

... and so on, This was not working before for me but now it is, not sure whats changed but i now execute .bat file with a single command and can run 4 bots at once.

----

Reply Link: <http://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=6&comments_reply_threadId=335&comments_parentId=207&post_reply=1#form>





More information about the Pogamut-list mailing list