Hey, Firebird and Kurtz,
I have just updated to 1.12.2 (I skipped 1.12.1 as I was away) and my dedicated server "runs" but has issues. The issue is that it only opens the same campaign. I came to this post to try testing with 1.12.1 to see where the issue was introduced, but see from Kurtz's comments that he too was having issues.
I'm downloading 1.12.1 to testing at the moment, (I have downloaded 1.12.1 and get the same results as 1.12.2) but thought I would note down what is happening for me as well, perhaps to give you some idea of what the issue is?
With 1.12.0: The Dedicated server batch file runs fine.
With 1.12.1:
I'll do some testing and update this post when I have. I have tested 1.12.1 and it has the same issues as 1.12.2. So the issues seem to have arisen in relation to changes that happened as part of 1.12.1 upgrade
With 1.12.2: It seems to be that the batch file runs, (it starts EECH) but it ignores the command line parameters that follow the "cohokum" command.
[This is an example of a line in the dedicate.bat that launches the game]
cohokum /pitod:0900 dedicated:1 game_type:2 gunship_type:2 path:..\common\maps\map1 directory:camp01 filename:thailand.chc
(and just in case you were wondering where the dedicate.bat file came from, it is part of the EECH install, its not something that Kurtz and I made up. :))
So when the batch file launches the game it does not go into dedicated server mode, it just starts in "normal" mode. I can force the game to start in dedicated server mode by editing the eech.ini file and setting the variables for dedicated server mode.
[This is extracted from EECH.ini]
[Dedicated server]
# for more information see
http://www.eechcentral.com/wiki/index.php?title=Dedicated_server dedicated=1 # dedicated server mode (0 = off, 1 = on) (def = 0)
pauseserv=1 # pause server if no clients connected (0 = off, 1 = on) (def = 0)
game_type=2 # available game types (1 = Freeflight, 2 = Campaign, 3 = Skirmish) (def = 0)
gunship_type=8 # available gunship types [NOTE!] dummy value (0 = Apache, 1 = Havoc, 2 = Comanche, 3 = Hokum) (def = 8)
path= # path to map/campaign/skirmish folder
This loads the game in dedicated server mode, but then (I presume because it ignores the command line parameters) it always loads the same map, which is the Standard (Sword in the Sand) campaign Yemen map (..common\maps\map6)
If I hard code the map folder location in the eech.ini file (under the path= varible) then the server does not load. It crashes with the following error: Error opening file for reading:
C:\razorworks\cohokum\common\..\common\maps\map3\camp01\yemen.chc.
This map folder number is whatever number I have hard coded in, and if I hard code the map into 1.12.0 then it works fine. So I suspect that the game has been hard coded to always try and open the yemen.chc map?
I have not tested connecting to the server in version 1.12.2. I will do that right after this post, and edit this post to contain my results. I know I should have tested that first, but I forgot, and well I don't want to have to type this all again. I have tested connections internally and they are working, so people should in theory be able to connect to the server from the outside world as nothing has changed in that respect. So it's just the issue that the commands after the cohokum in the batch file are no longer being read which is preventing the Dedicated server from starting (As far as I can work out at least).
And Finally, Sorry for bumping an old post. This message ended up longer than I thought it was going to be originally.