I can confirm "MadMakz" issue.
The option currently called
Code:
"%max_players%"
needs to be changed to
Code:
%max_slots%
NOTE: Also the " " have to be removed!.
Otherwise the cod4 gameserver tries to use the string "_max_players_" as a value for "ui_maxclients", which results in an error message like this:
########################################################
dedicated is read only.
Opening IP socket: 188.xxxxxxx:289xx
Hostname: Debian-50-lenny-64-minimal
IP: 188.xxxxxxxx
dedicated is read only.
'0' is not a valid value for dvar 'ui_maxclients'
Domain is any integer from 1 to 64end $init 191 ms
Loading fastfile code_post_gfx_mp
Loading fastfile localized_code_post_gfx_mp
Loading fastfile ui_mp
Loading fastfile common_mp
Loading fastfile localized_common_mp
Loaded zone 'code_post_gfx_mp'
Loaded zone 'localized_code_post_gfx_mp'
Loaded zone 'ui_mp'
Loaded zone 'common_mp'
Loaded zone 'localized_common_mp'
--- Common Initialization Complete ---
dedicated is read only.
'0' is not a valid value for dvar 'ui_maxclients'
Domain is any integer from 1 to 64execing server.cfg from disk
dedicated is read only.
Build 13620 Thu Oct 04 00:43:04 2007
logfile opened on Tue May 4 16:45:28 2010
sv_cheats is write protected.
g_gametype will be changed upon restarting.
Error: Unable to initialize punkbuster. Punkbuster is disabled
Huffman Took 0 Milliseconds
Hitch warning: 2152 msec frame time
##########################################################
And than it stops there!
What i also noticed:
The "Startup Map: " option where you can put a startup map (your default map for cod4 is mp_strike) doenst seem to be given to the server.
The map mp_strike is not loaded by the server nor does he recieve any "map" command.
I am wondering what the commandline option for the "Startup Map: " field is? (so I can add it manually)
I tried %startup_map%, %start_map%, %startupmap% and %startmap% but they dont work and are passed as string to the cod4 server.
To currently make the cod4 server load a map after a restart one has to manually add to the command line options:
Code:
+map_rotate %opt5%
Then at least the first map specified in the server.cfg gets loaded if the user of the server has set "+map_rotate" to "On", if its set to "Off" no map will be loaded eventhough a startup map is specified!
This needs so be fixed somehow. Maybe you just forgot to add the command line option for the startup map option ????