Forum Home
PC World Chat
 
Thread ID: 110420 2010-06-16 09:43:00 COD4 Server Config The Error Guy (14052) PC World Chat
Post ID Timestamp Content User
1110784 2010-06-16 09:43:00 Does anyone know how to make a COD4 Server config file? Ill be using custom maps using the ACE1 . 7 mod . I have A nicely made server config that I sped a while editing to suit our LAN server but It always loads backlot (non custom map) in the team deathmach game type despite the . cfg telling it to load mp_offices_v2 free for all . can anyone see what i'm doing wrong?

Main server load . cfg

/************************************************** ****************************
// Public Information
//************************************************** ****************************
sets sv_hostname "Breakdance 246"
sets _Admin "admin"
sets _Email ""
sets _Website "http://longsword . co . cc"
sets _Location "NZ"
//sets _Irc ""
//sets _Mod "Ace17"
//sets _ModVer "v1 . 7"
//sets _ModUpdate "3Right Now"
sets _Maps "Custom Vasr"
set scr_motd "Shoot To Kill . . . . Really!!"

//************************************************** ****************************
// Common Server Settings
//************************************************** ****************************
// Log Settings
set g_logsync "2" // 0=no log, 1=buffered, 2=continuous, 3=append
set logfile "1" // 0 = NO log, 1 = log file enabled
set g_log "games_mp . log" // Name of log file, default is games_mp . log
set sv_log_damage "1"

// Network options
//set net_ip "" // Set your servers IP address Set in the Commandline
//set net_port "28960" // Set your port number Set in the Commandline
set com_hunkMegs "512"
set net_noipx "1" // Allow ONLY tcp/ip protocol, player/server communications

// Server Network Mode
set dedicated "0" // 0 = Listen, 1 = LAN, 2 = Internet

// Master servers
set sv_gamespy "1"

// Password Settings
//set rcon_password "somepass" // RCON must supply pw to use
set sv_privatePassword "" // Private slots, non-public slots

// Player slots setup
set sv_maxclients "32" // MAX server player slots, this is TOTAL player slots
set sv_privateclients "" // Number of private player slots, maxclients - privateclients = public slots

// The following can be used to lock out the server so that only those
// players that have been provide the password can connect . Good for
// matches, practices, etc .
set g_password ""

// Ping
set sv_minPing "0" // MIN player ping on CONNECT, any lower and player isnt allowed to connect
set sv_maxping "350" // MAX player ping on CONNECT, any higher and player isnt allowed to connect

// Client Download Settings . (0=off/1=on) Used for MODs and custom maps
// See included Quick Setup Guide for instructions .
set sv_allowdownload "1"
seta sv_wwwDownload "1"
seta sv_wwwBaseURL "http://www . freerankedservers . com"
seta sv_wwwDlDisconnected "1"

// Rate
set sv_maxRate "5000"

// FPS
//set sv_fps "125"

// Drop inactive players
set sv_timeout "300"
set sv_zombietime "1"
set g_inactivity "0"
set g_inactivityspectator "0"

// AntiFlooding Settings
set sv_floodProtect "1"
set sv_reconnectlimit "3"

// Anti Cheat Settings
set sv_disableClientConsole "0"
set cl_autocmd "0"
set sv_cheats "0"
set sv_pure "1"
set g_banIPs ""
set g_no_script_spam "1"
set sv_punkbuster "0"

// Temporary Ban duration, in seconds
set sv_kickBanTime "3600"

// In-game voice communication system
//set sv_voice "1"
//set sv_voiceQuality "1"
//set voice_deadChat "1"
//set voice_global "0"
//set voice_localEcho "0"
//set winvoice_mic_mute "1"

//************************************************** ****************************
// Misc
//************************************************** ****************************
//set sv_allowAnonymous "0"
//set g_antilag "0"
//set g_compassShowEnemies "0"
//ui_maxclients 32

//************************************************** ****************************
// Init & Exec CFG Files
//************************************************** ****************************
wait
exec playercontrol . cfg
wait
exec weaponcontrol . cfg
wait
exec gametypes . cfg
wait
exec maprotation . cfg


Contents of maprotation . cfg



/************************************************** ****************************
// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch
//************************************************** ****************************
set g_gametype "dm"

//************************************************** ****************************
// DM -- FREE FOR ALL DEATHMATCH
//************************************************** ****************************
set sv_mapRotation "gametype dm map mp_offices_v2 gametype dm map mp_village gametype dm map mp_backlot_2 gametype dm map mp_bunkermayhem gametype dm map mp_pst_devilslair gametype dm map mp_rubberaim gametype dm map mp_shipment2 gametype dm map mp_ze_spray"

//************************************************** ****************************
// DOM -- DOMINATION
//************************************************** ****************************
//set sv_mapRotation "gametype dom map mp_backlot gametype dom map mp_bloc gametype dom map mp_bog gametype dom map mp_cargoship gametype dom map mp_citystreets gametype dom map mp_convoy gametype dom map mp_countdown gametype dom map mp_crash gametype dom map mp_crossfire gametype dom map mp_farm gametype dom map mp_overgrown gametype dom map mp_pipeline gametype dom map mp_shipment gametype dom map mp_showdown gametype dom map mp_strike gametype dom map mp_vacant"

//************************************************** ****************************
// KOTH -- HEADQUARTERS
//************************************************** ****************************
//set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_bloc gametype koth map mp_bog gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_countdown gametype koth map mp_crash gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_overgrown gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant"

//************************************************** ****************************
// SAB -- SABOTAGE
//************************************************** ****************************
//set sv_mapRotation "gametype sab map mp_backlot gametype sab map mp_bloc gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant"

//************************************************** ****************************
// SD -- SEARCH & DESTROY
//************************************************** ****************************
//set sv_mapRotation "gametype sd map mp_backlot gametype sd map mp_bloc gametype sd map mp_bog gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_convoy gametype sd map mp_countdown gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_pipeline gametype sd map mp_shipment gametype sd map mp_showdown gametype sd map mp_strike gametype sd map mp_vacant"

//************************************************** ****************************
// WAR -- TEAM DEATH MATCH
//************************************************** ****************************
//set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"
The Error Guy (14052)
1110785 2010-06-16 21:54:00 Why not just run COD4 and host your own server from your desktop machine? Chilling_Silence (9)
1110786 2010-06-17 02:54:00 I need the config to set the map rotation for custom maps and the game type. Custom maps need to be set from the console because there is no GUI interface for custom maps (/map mp_backlot_2 is how you would launch the map Backlot 2 from the console) because of this you can't set the game type before you start the server. To change game type you have to start a normal map with your desired game type then load the map, call a vote to change map and game type, load the map then using console in-game set and losd the custom map. after the round finishes you then need to use console to set the next map meaning I have to constantly monitor the server when in use (it's not dedicated because I usually play as well. The Error Guy (14052)
1