PDA

View Full Version : some questions on dom2 text game server


liga
December 1st, 2003, 09:09 PM
OK, i want try to run a dom2 linux server ... still I have only the demo ... but I want to start a game ...

there is a way to tell the server how many open slot for human and tell him to run some AI and at which difficulty level ?

tnkx
Liga

Gandalf Parker
December 1st, 2003, 09:25 PM
All of the command line switches are in a text file in the doc directory of the demo.

You cant actually specify those things on the command line. You can do it by making a copy of the .map file you plan to use, then editing it in. Its just a text file.

Such as, add this to the end of the file to put AI's in for T’ien Chi, R’lyeh, and Atlantis with hard AI settings.
#computerplayer 15 4
#computerplayer 1 4
#computerplayer 13 4
#allies 13 15
#allies 13 1
#allies 15 13
#allies 15 1

The allies thing you can leave off. Its from one of my games. It makes the AIs not attack each other.

AI difficulty runs 1-4

The nation numbers are...
0 Abysia
1 Atlantis
2 Pythium
3 Man
4 Ulm
5 Ctis
6 Arcoscephale
7 Caelum
8 Ermor
9 Marignon
10 Pangaea
11 Vanheim
12 Jotun
13 R’lyeh
14 Mictlan
15 T’ien Chi
16 Machaka

[ December 01, 2003, 19:28: Message edited by: Gandalf Parker ]

liga
December 1st, 2003, 09:48 PM
Is important where to put the different directives, i.e. I have to put the #computerplayers before or after the --Province section ...

I suppose that -- are comment ...

Is the structure of this file explained somewhere on the manual ... if taht is true I'll wait my original CDs

What I really want is to find an easy way to run, on a linux machine, one or two games for 3-4 players (and 3-4 AI controlled computer) ... I need to run the server in text mode becouse I can't export the DISPLAY ...

I have ssen that in the dominions2demo folder (on Linux) there is a maps foldere with the 2 maps (eye.map and aran.map) ... I have tried to add new maps but I'm not able to seen (I suppose is a limit of the demo Version).

Can I copy eye.map in eye1.map and run from command line using --mapfile eye1.map ?

Finally, when does the game start ? as soon as all the open slot are taken by players and all teh players have done the turn ?

thk ... if most/all of this questions have answers in the manual I really can wait for it.

good luck
Liga

Gandalf Parker
December 1st, 2003, 11:37 PM
Originally posted by liga:
Is important where to put the different directives, i.e. I have to put the #computerplayers before or after the --Province section ...<font size="2" face="sans-serif, arial, verdana">No you can put them anywhere. I just put them at the end.

I suppose that -- are comment ...<font size="2" face="sans-serif, arial, verdana">Actually I think that anything not starting with a # is a comment but we all started using -- early on.

Is the structure of this file explained somewhere on the manual ... if taht is true I'll wait my original CDs<font size="2" face="sans-serif, arial, verdana">the #commands are in a PDF file called mapedit that comes with the full game.

What I really want is to find an easy way to run, on a linux machine, one or two games for 3-4 players (and 3-4 AI controlled computer) ... I need to run the server in text mode becouse I can't export the DISPLAY ...<font size="2" face="sans-serif, arial, verdana">Me too. In fact I was one of the loudest requestors (possibly the only one) for a text-only host mode. http://forum.shrapnelgames.com/images/icons/icon7.gif

Here are the scripts I use. One to create the game and one to switch to a hosting mode.
nohup dom2 -ST --port 7011 -g FunGame --indepstr 7 --mapfile Pangaea.map >/dev/null 2>fungame.err &
nohup dom2 -ST -q --nonationsel --port 7011 -g FunGame >/dev/null 2>fungame.err &

By the way, the 2>game.err thing doesnt work right now but it will in the patch.

I have ssen that in the dominions2demo folder (on Linux) there is a maps foldere with the 2 maps (eye.map and aran.map) ... I have tried to add new maps but I'm not able to seen (I suppose is a limit of the demo Version). <font size="2" face="sans-serif, arial, verdana">Hmmm not that I know of. Im pretty sure I added maps to the demo when I was using it.

Can I copy eye.map in eye1.map and run from command line using --mapfile eye1.map ?<font size="2" face="sans-serif, arial, verdana">Yes I think so.

Finally, when does the game start ? as soon as all the open slot are taken by players and all teh players have done the turn ?<font size="2" face="sans-serif, arial, verdana">The players screen has an option to start the game where they are choosing their nations.

If you wanted info on starting a game using uploaded files, let me know.