[Pogamut-list] How to make a simple double-dodge??????

jakub.gemrot pogamut-forum at diana.ms.mff.cuni.cz
Sun Apr 10 09:22:00 CEST 2011


Re: How to make a simple double-dodge??????

Author: jakub.gemrot

Hi!

Great job ;-) ... using listeners gives you more power for sure.

Regarding the connection, there are a few possibilities how you can make your bot to connect to different server:

1) look up the project directory for PogamutPlatformCustom.properties there are:
pogamut.ut2004.bot.host=localhost
pogamut.ut2004.bot.port=3000

Change them to whatever you want.

2) if you want to do that right from the code, search up main() method,
there is something like:

new UT2004BotRunner(GoalBot.class, "EmptyBot").setMain(true).startAgent();

change it into:

new UT2004BotRunner(GoalBot.class, "GoalBot", "your-new-address", 3000).setMain(true).startAgent();

e.g.

new UT2004BotRunner(GoalBot.class, "EmptyBot", "192.168.0.1", 3000).setMain(true).startAgent(); // if the server is running at 192.168.0.1

or

new UT2004BotRunner(GoalBot.class, "EmptyBot", "my.server.at.univ.com", 3000).setMain(true).startAgent();

Note that 3000 is default port of GameBots2004 but you may even force GameBots2004 to listen at different port (edit UT2004/System/GameBots2004.ini before you start up the server)

Aslo be sure that the firewall does not block GameBots2004 at your remote server.

Hope it helps!

Cheers!
Jimmy

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=621&post_reply=1#form>





More information about the Pogamut-list mailing list