[Pogamut-list] Spectating Game using different ports

michal.bida pogamut-forum at artemis.ms.mff.cuni.cz
Sun Mar 15 00:16:00 CET 2009


Re: Re: Spectating Game using different ports

Author: michal.bida

Oh. I guess I understand now! The problem is that the ports set for the bots differ from the ports that the human players use for connecting to the server through UT game. I guess it will work as you stated - all the UT servers will listen on the same port for human players. The bots can enter without problems, because they have their ports set. The humans can enter just the server created first (all the servers listen on the same port for UT game connections). 

The solution is to set for each server also ?port variable to set different port for human connections. More about ucc command line parameters here:

http://wiki.unrealadmin.org/Commandline_Parameters_(UT2004)

Hope this helps.

Best,
michal

> Do you mind if i tell you what i did to see if something is wrong or missing?
> 
> I launch the server using ecc and I pass as parameters also the two ports: 
> 
> ^ucc server ...?BotServerPort=3002?ControlServerPort=3003^
> 
> Then, I create my bot, let's say a the sample Hunter, and I use the commands:
> 
> ^Agent bot = new Hunter();
> bot.bindLocalParser(new URI("ut://127.0.0.1:3002"));
> bot.startAgent();^
> 
> If I do that, almost everything is fine. The bot gets into the game and starts playing. If I set different ports, the bot can't enter. And, of course, I can use more servers at the same time having bot playing in them... using the ports to chose which one to get in.
> 
> What I don't understand is:
> 
> 1. Even if I can actually spectate the game by simply clicking on the LAN Server List, inside UT I read it's using the port 7777.
> Trying in several ways I found out that in UT I automatically see in the list only one of the many running servers. It's always the first been launched... no matter which port it uses.
> 
> 2. I set two ports (bot and control) but I give to the bot only one of them. Shouldn't I need to set also the control port somewhere?
> 
> Sorry for all these doubts, but I'd like to know all this stuff better before starting developing for real.
> 
> Thank you!





More information about the Pogamut-list mailing list