PDA

View Full Version : starting a server in batch mode


lebarjack
February 15th, 2008, 04:20 PM
I try to start a dom3 server in batch mode but it stops and ask for the ip address:
<font class="small">Code:</font><hr /><pre>
lebarjack@lebarjack-desktop ~/servdom $ dom3 -STddd --port 12345 --era 2 --mapfile aran.map testgame

-------------------------
----- DOMINIONS ---------
-------------------------

Version version 3.14 (314)dbglevel 3 pc_endian
datapath='/usr/local/games/dominions3'
confpath='/home/lebarjack/dominions3'
savepath='/home/lebarjack/dominions3/savedgames'
modpath='/home/lebarjack/dominions3/mods'
mappath='/usr/local/games/dominions3/maps'
localmappath='/home/lebarjack/dominions3/maps'
temppath='/tmp/dominions3_44531'
-- general_init --
host_bugcheck
-- start --
get ipadr
Enter the IP address of this computer:
</pre><hr />

I cannot find an option to force it on an ip address on the command line.
--ipadr seems only useful for client connecting to a server.

Any idea to start "automated" games?

thejeff
February 15th, 2008, 04:38 PM
Your command line works for me.

It looks like there's a get ipadr check that's failing.

I get :
(after things)
-- start --
get ipadr
0 192.168.133.2
done (192.168.133.2)
-- Waiting for participants to connect --


Do you have your hostname and address set properly?
Does 'hostname -i' give you the right ip?

lebarjack
February 15th, 2008, 05:42 PM
thanks, 'hostname -i' dont give me the good ip.
That must be the source of the problem.

lebarjack
February 15th, 2008, 05:53 PM
I tried to launch a game on the real server and it worked ok.
You were right, my local ip configuration (dhcp + NAT) was preventing the server to launch correctly.
Thank you