[Pogamut-list] Multiple Servers in 3.2
jakub.gemrot
pogamut-forum at diana.ms.mff.cuni.cz
Fri Apr 22 16:26:24 CEST 2011
Re: Multiple Servers in 3.2
Author: jakub.gemrot
>>Thanks for the help with pom.xml. Maven is new to me, but I'm learning. Version 3.2.2 seems to have fixed the problem with accessing ItemDescriptor fields, so I guess making things synchronized was
>> all that was needed. That makes sense too. I'm dealing with some other issues now, but I'll probably put those in another post, unless I figure them out.
You're welcome!
>> Regarding the UT2004DeathMatch class: How do I configure the ports with this class? In my code, I was modifying the "ucc.exe" ProcessBuilder to add the port configurations as command line options,
>> but in order to do that with UT2004DeathMatch I'd need to mess around with your source code, which I'd prefer not to do. I need to be able to configure the ports if I'm going to launch multiple servers on
>> one machine, even if the game directory is copied. Or does UT2004DeathMatch automatically configure the ports?
There is no need to. UT2004DeathMatch class will launch ucc.exe on its own utilizing UCCWrapper telling GB2004 to start on randomized ports automatically propagating these ports to bots. It will work as long as you won't interfere with the way how UT2004BotRunner is working, i.e., you must not provide your custom ports to bots inside your JAR. That is, we're using java.exe -D switch to propagate pogamut.ut2004.bot.port value right into UT2004BotRunner, of course UT2004DeathMatch class is written that you have to run java.exe with this class on the very same computer as ucc.exe.
If it's still confusing, I'll try to desribe it better, just ask :-)
>> Lastly, does UT2004DeathMatch modify my INI files somehow? Also regarding INI files, could you make it easier to specify the location of the INI file? Currently I get an error unless I move it to a very
>> specific directory within the resources dir of the project.
UT2004DeathMatch writes INI of its own - there is GameBots2004Ini class that takes as default a file from a crude location as you're saying. But basicly you may instantiate GameBots2004Ini class on your own, providing your own details and put it right into the UT2004DeathMatchConfig via its setGb2004Ini method, note that GameBots2004Ini class contains a contructor where you may pass your own GameBots2004.ini as defults and then it allows you to alter it to your liking.
....
Theoretically it should work, never tested though :)
Best,
Jimmy
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=676&post_reply=1#form>
More information about the Pogamut-list
mailing list