|
|
|
|
December 1st, 2003, 09:09 PM
|
Second Lieutenant
|
|
Join Date: Apr 2001
Location: Modena, Italy
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
some questions on dom2 text game server
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
|
December 1st, 2003, 09:25 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: some questions on dom2 text game server
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 ]
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
December 1st, 2003, 09:48 PM
|
Second Lieutenant
|
|
Join Date: Apr 2001
Location: Modena, Italy
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: some questions on dom2 text game server
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
|
December 1st, 2003, 11:37 PM
|
|
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
Re: some questions on dom2 text game server
Quote:
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 ...
|
No you can put them anywhere. I just put them at the end.
Quote:
I suppose that -- are comment ...
|
Actually I think that anything not starting with a # is a comment but we all started using -- early on.
Quote:
Is the structure of this file explained somewhere on the manual ... if taht is true I'll wait my original CDs
|
the #commands are in a PDF file called mapedit that comes with the full game.
Quote:
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 ...
|
Me too. In fact I was one of the loudest requestors (possibly the only one) for a text-only host mode.
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.
Quote:
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).
|
Hmmm not that I know of. Im pretty sure I added maps to the demo when I was using it.
Quote:
Can I copy eye.map in eye1.map and run from command line using --mapfile eye1.map ?
|
Yes I think so.
Quote:
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 ?
|
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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|