PDA

View Full Version : Execing a .cfg file


Trinity
11-03-2003, 05:03 PM
I am still haveing a problem with execing the cfg files from inside the game. I open the console, type the password, that goes just fine. Then I type /rcon exec servertdm.cfg , enter, It says execing servertdm.cfg . Nothing happens. We have a cfg file for 4 of the game types with all the correct maps in each. Here is the tdm cfg file:
seta g_log ""

// Hostname and Message of the Day

set sv_hostname "TDR-Px"

set scr_motd "Have fun and please respect all players. Cursing or disrespect will get you kicked."

// Maximum Clients

set sv_maxclients "28"

//Private Slots

set sv_privateclients "4"

//Private Slots Password

set sv_privatepassword "######"

// Team Icons

set scr_drawfriend "1"

// Forces players to only be able to spectate behind their own team.

set g_forceteamspectate "1"

// Forced Respawn

set scr_forcerespawn "0"

// Friendly Fire

set scr_friendlyfire "2"

// Allow Voting

// It is recommended if you have friendly fire on

// that you also enable voting so that players can kick team-killers.

set scr_allow_vote "0"

seta g_allowvote "0"

// Rconpassword

set rconpassword "####"

// Weapons Allowed

set scr_allow_bar "1"

set scr_allow_bren "1"

set scr_allow_enfield "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"

// Search and Destroy Settings

set scr_sd_graceperiod "20"

set scr_sd_roundlength "6"

set scr_sd_roundlimit "6"

set scr_sd_scorelimit "5"

set scr_sd_timelimit "0"

// Behind Enemy Lines Settings

set scr_bel_alivepointtime "10"

set scr_bel_scorelimit "50"

set scr_bel_timelimit "20"

// Retrieval Settings

set scr_re_graceperiod "20"

set scr_re_roundlength "3"

set scr_re_roundlimit "7"

set scr_re_scorelimit "5"

set scr_re_showcarrier "0"

set scr_re_timelimit "0"

// Team Deathmatch

set scr_tdm_scorelimit "150"

set scr_tdm_timelimit "20"

// Deathmatch

set scr_dm_scorelimit "80"

set scr_dm_timelimit "20"

// The rotation.

set sv_mapRotation "gametype tdm map mp_brecourt gametype tdm map mp_carentan gametype tdm map mp_chateau gametype tdm map mp_dawnville gametype tdm map mp_depot gametype tdm map mp_harbor gametype tdm map mp_hurtgen gametype tdm map mp_pavlov gametype tdm map mp_powcamp gametype tdm map mp_railyard gametype tdm map mp_rocket gametype tdm map mp_ship"


We cannot seem to get the gametype to change in game or out.
Is it even possible to exec a cfg in this game? Any help would be greatly appreciated.

HankScorpio
11-03-2003, 05:06 PM
Put the command map_rotate as the last line of your configs and it'll work.

Trinity
11-03-2003, 06:13 PM
Thanks, I will try that ASAP.

AADiC
11-03-2003, 07:39 PM
Put the command map_rotate as the last line of your configs and it'll work.

OK, I put that in our map cfg files and now it wont switch when I exec a different map cfg.

Trinity
11-03-2003, 07:59 PM
Ok I we put that in the cfg files, Still a no go.
Also here are our command line variables:
+set dedicated 2 +set net_ip 64.5.58.40 +exec serversd.cfg +map_rotate

We tried to exec a cfg file, It changed map , but not game type.
Any ideas?? Thanks for the help.

HankScorpio
11-03-2003, 08:11 PM
Try putting the following line just before the map_rotate...

sv_mapRotationCurrent ""

If the server is already up and you're trying to run a config to switch to a different map rotation, you have to clear out sv_mapRotationCurrent. Otherwise, it finishes off what's in there first before it reads what's in sv_mapRotation.

Trinity
11-03-2003, 11:46 PM
That did the trick, Thanks a bunch for the help. :smile: