PDA

View Full Version : Linux server-first map doesn't start automatically-Help !


brougham
04-03-2004, 12:54 PM
I have a linux 1.2 server setup. I can start the server with the command, cod_lnxded but the first map doesn't load. I can load the map manually but would like the server to start auto... cfg file:

// Passwords
set rconPassword ""
set g_password ""
set sv_privatePassword ""

// Public Information
set sv_hostname "Proliant-COD"
set scr_motd "Welcome"
sets .Admin "SA"
sets .Email ""
sets .IRC ""
sets .Website ""
sets .Location ""

// General Settings
set scr_friendlyfire "0"
set sv_maxclients "20"
set sv_privateClients "4"
set sv_maxRate "20000"
set sv_pure "1"
set logfile "1"
set g_log "games_mp.log"
set scr_killcam "1"
set scr_freelook "1"
set scr_spectateenemy "1"
set scr_teambalance "0"
set g_allowVote "1"
set scr_allow_vote "1"
set sv_allowAnonymous "0"
set sv_allowDownload "1"
set sv_cheats "0"
set sv_fps "20"
set sv_master1 "codmaster.activision.com"
set sv_master2 ""
set sv_master3 ""
set sv_master4 ""
set sv_master5 ""

// Weapons
set scr_allow_bar "1"
set scr_allow_bren "1"
set scr_allow_enfield "1"
set scr_allow_fg42 "1"
set scr_allow_kar98k "1"
set scr_allow_kar98ksniper "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_mp40 "1"
set scr_allow_mp44 "1"
set scr_allow_nagant "1"
set scr_allow_nagantsniper "1"
set scr_allow_panzerfaust "1"
set scr_allow_ppsh "1"
set scr_allow_springfield "1"
set scr_allow_sten "1"
set scr_allow_thompson "1"

// DM
set scr_dm_scorelimit "50"
set scr_dm_timelimit "15"
set scr_drawfriend "1"
set scr_forcerespawn "0"

// TDM
set scr_tdm_scorelimit "100"
scr_tdm_timelimit "25"

// SD
set scr_sd_graceperiod "15"
set scr_sd_roundlength "4"
set scr_sd_roundlimit "0"
set scr_sd_scorelimit "7"
set scr_sd_timelimit "0"

// BEL
set scr_bel_alivepointtime "10"
set scr_bel_scorelimit "50"
set scr_bel_timelimit "30"

// RE
set scr_re_graceperiod "15"
set scr_re_roundlength "4"
set scr_re_roundlimit "0"
set scr_re_scorelimit "7"
set scr_re_timelimit "0"
set scr_re_showcarrier "0"

// HQ
set scr_hq_scorelimit "0"
set scr_hq_timelimit "0"

// Map Rotation
set sv_mapRotation "gametype dm map mp_brecourt gametype dm map mp_carentan gametype dm map mp_chateau gametype dm map mp_dawnville gametype dm map mp_depot gametype dm map mp_harbor gametype dm map mp_powcamp gametype dm map mp_railyard "
set sv_mapRotationCurrentmap "mp_brecourt"

map mp_brecourt

Anex
04-03-2004, 01:32 PM
set sv_mapRotationCurrentmap "mp_brecourt"

map mp_brecourt

^---- Remove those two lines, it will load properly then.

I'm not sure what the problem is, I used to load our map as you have your cfg (minus sv_maprotationcurrentmap...that's a useless setting/command); but after updating to 1.3, the server wouldn't load the map that way any more. So, I just removed the map command line and just set sv_maprotation and all was well.

Again, don't ask, but it worked.

brougham
04-03-2004, 02:32 PM
Thanks for the suggestion, I tried it but it didn't make a difference.
The first map didn't load.... Below is the dialog when launching the server from ./cod_lnxded....

[root@Mandrake9 COD]# ./cod_lnxded
COD MP 1.2 build linux-i386 Jan 26 2004
----- FS_Startup -----
Current search path:
/root/.callofduty/main
/mnt/drive1/COD/main/pak8.pk3 (235 files)
/mnt/drive1/COD/main/pak6.pk3 (3 files)
/mnt/drive1/COD/main/pak5.pk3 (4858 files)
/mnt/drive1/COD/main/pak4.pk3 (1668 files)
/mnt/drive1/COD/main/pak3.pk3 (1992 files)
/mnt/drive1/COD/main/pak2.pk3 (694 files)
/mnt/drive1/COD/main/pak1.pk3 (2642 files)
/mnt/drive1/COD/main/pak0.pk3 (12816 files)
/mnt/drive1/COD/main
/mnt/drive1/COD/main/localized_english_pak2.pk3 (9 files)
/mnt/drive1/COD/main/localized_english_pak1.pk3 (3736 files)
/mnt/drive1/COD/main/localized_english_pak0.pk3 (1204 files)

File Handles:
----------------------
29857 files in pk3 files
execing default_mp.cfg
couldn't exec language.cfg
execing config_mp_server.cfg
couldn't exec autoexec_mp.cfg
Hunk_Clear: reset the hunk ok
logfile opened on Sat Apr 3 14:34:46 2004

Opening IP socket: localhost:28960
--- Common Initialization Complete ---
Started tty console (use +set ttycon 0 to disable)
Hitch warning: 724 msec frame time

Anex
04-03-2004, 04:46 PM
What are your command line arguments?

What/Where are the config(s) you're loading?

What map is being loaded?

brougham
04-03-2004, 07:03 PM
I only created the one config file calling it default_mp.cfg. It is located in the "main directory along with the pk3 files.

So I have a root directory, COD with cod_lnxded and the localization file and etc and main beneath it.

As stated earlier everything works fine if I start the server with ./cod_lnxded from a terminal session followed by map_xxxxx.
With xxxxx being one of the maps.

Should the server be started by a script ? or additional commands at the end of the config file ?

Any help is appreciated !

Hammer
04-03-2004, 07:58 PM
set sv_mapRotationCurrentmap "mp_brecourt"

map mp_brecourt

Change the last two lines to the following:
set sv_mapRotationCurrentmap "" // Two double-quotes

map_rotate

Anex
04-04-2004, 09:08 AM
Here's an example I found as to how a Linux dedicated server should be started:

./cod_lnxded +set dedicated 2 +set net_port 28962 +set developer 0 +set fs_basepath /opt/cod2 +set fs_homepath /opt/cod2 +exec yourserverconfig.cfg +map_rotate

brougham
04-04-2004, 07:46 PM
Thank you ! and others that responded, as it turns out, I just needed to add +map_rotate...