PDA

View Full Version : Help with changing gametype


Chingaman
11-09-2003, 02:35 PM
Hello,
Can someone tell me how to change gametypes in call of duty like you can in mohaa? I have a generic dedicated.cfg file containing host name and stuff like that. At the end of the .cfg i have exec tdm.cfg which it does and all is good...server is running and correct gametype. I have 4 other config files for each gametype sd,bel,dm,re. If i go into rcon and type exec bel.cfg the map will change but the gametype stays tdm even though in the bel.cfg file i have the command set g_gametype bel What can i be doing wrong? Here is my server start-up line:

"C:\Program Files\Call of Duty\CoDMP.exe" +set dedicated 2 +exec dedicated.cfg +map_rotate

Here is the dedicated.cfg file:

// Server specific settings.
set sv_hostname "|-ERS-| Elite Rifle Squad...Rifle/Sniper Only"
set sv_keywords ""
set rconPassword "******"
set scr_motd "Welcome to |-ERS-| Temp C.O.D Server"
set net_port "28960"

// Password to join (unrelated to privateclients)
//set g_password ""


// Set Logging
set g_log "games_mp.log" // Filename to log to
set g_logsync "1" // 0 = Buffered Writes, 1 = Write Immediately


// Team Icons
set scr_drawfriend "0" // Draw team icon over team mates


//Forced Respawning
set scr_forcerespawn "1" // Force respawning in DM & TDM


//Friendly Fire (0 = Off, 1 = On, 2 = Reflect Damage)
set scr_friendlyfire "2" // Setting for friendly fire action.


// Allow Voting (Set both the same!)
set scr_allow_vote "0" // Allow Voting
set g_allowvote "0" // Allow Voting


// Private Clients
set sv_privateClients "0" // Number of private slots (taken from maxclients)
set sv_privatePassword "" // Password required for private slots.


// Client settings
set sv_allowAnonymous "0" // Can user be anonymous?
set sv_maxclients "8" // Maximum Clients
set sv_maxPing "0" // Maximum Ping
set sv_maxRate "5000" // Maximum Rate
set sv_minPing "0" // Minimum Ping


// Pure Clients
set sv_pure "1" // Only pure clients may connect

exec tdm.cfg


Next is the tdm.cfg:

// Server specific settings.
set sv_hostname "|-ERS-| Elite Rifle Squad...Rifle/Sniper Only"
set sv_keywords ""
set rconPassword "*****"
set scr_motd "Welcome to |-ERS-| Temp C.O.D Server"
set net_port "28960"

// Password to join (unrelated to privateclients)
//set g_password ""


// Set Logging
set g_log "games_mp.log" // Filename to log to
set g_logsync "1" // 0 = Buffered Writes, 1 = Write Immediately
// Team Icons
set scr_drawfriend "0" // Draw team icon over team mates


//Forced Respawning
set scr_forcerespawn "1" // Force respawning in DM & TDM


//Friendly Fire (0 = Off, 1 = On, 2 = Reflect Damage)
set scr_friendlyfire "2" // Setting for friendly fire action.


// Allow Voting (Set both the same!)
set scr_allow_vote "0" // Allow Voting
set g_allowvote "0" // Allow Voting


// Private Clients
set sv_privateClients "0" // Number of private slots (taken from maxclients)
set sv_privatePassword "" // Password required for private slots.


// Client settings
set sv_allowAnonymous "0" // Can user be anonymous?
set sv_maxclients "8" // Maximum Clients
set sv_maxPing "0" // Maximum Ping
set sv_maxRate "5000" // Maximum Rate
set sv_minPing "0" // Minimum Ping


// Pure Clients
set sv_pure "1" // Only pure clients may connect
// Weapons allowed ( 0 = Disallowed, 1 = Allowed)
set scr_allow_bar "0" // BAR Automatic Rifle
set scr_allow_bren "0" // Bren Light Machine Gun
set scr_allow_enfield "1" // Lee Enfield Rifle
set scr_allow_fg42 "1" // FG42 Scoped Machine Gun
set scr_allow_kar98k "1" // KAR98K Rifle
set scr_allow_kar98ksniper "1" // KAR98K Sniper Rifle
set scr_allow_m1carbine "1" // M1 Carbine Rifle
set scr_allow_m1garand "1" // M1 Garand Rifle
set scr_allow_mp40 "0" // MP40 Sub Machine Gun
set scr_allow_mp44 "0" // MP44 (STG44) Machine Gun
set scr_allow_nagant "1" // Mosin Nagant Rifle
set scr_allow_nagantsniper "1" // Mosin Nagant Sniper Rifle
set scr_allow_panzerfaust "0" // Panzerfaust Anti-Tank Rocket
set scr_allow_ppsh "0" // PPsH Sub Machine Gun
set scr_allow_springfield "1" // Springfield 03 Sniper Rifle
set scr_allow_sten "0" // Sten Sub Machine Gun
set scr_allow_thompson "0" // Thompson Sub Machine Gun
// Team Deathmatch Settings
set scr_tdm_scorelimit "75" // Max kills before map change
set scr_tdm_timelimit "25" // Max time to remain on map

set g_gametype tdm
map_rotate

// Map Rotation (Gametype can be set per map)
//--------------------------------------------------------------------------
// *NB* MP_CHATEAU, MP_POWCAMP & MP_SHIP DON'T WORK IN SEARCH & DESTROY *NB*
//--------------------------------------------------------------------------
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"


// Allow Map Download
set sv_allowDownload "1" // Allow downloading from server, it works too


// Permit IW included cheats?
set sv_cheats "0" // Don't know if this works


// Flood Protection
set sv_floodProtect "1"


// Server FPS
set sv_fps "20"


// Miscellaneous unused commands
// set sv_onlyVisibleClients "0"
// set sv_padPackets "0"
// set sv_paused "0" // Pauses the server?
// set sv_reconnectlimit "3"
// set sv_running "1"
// set sv_serverid "22"
// set sv_serverRestarting "0"
// set sv_showAverageBPS "0"
// set sv_showCommands "0"
// set sv_showloss "0"
// set sv_timeout "240" // Amount of time before kicking a pinged player
// set sv_zombietime "2"
// set set scr_roundcam "0" // Gives a replay of entire round in a small window?

Now the bel.cfg:

// Server specific settings.
set sv_hostname "|-ERS-| Elite Rifle Squad...Rifle/Sniper Only"
set sv_keywords ""
set rconPassword "*******"
set scr_motd "Welcome to |-ERS-| Temp C.O.D Server"
set net_port "28960"

// Password to join (unrelated to privateclients)
//set g_password ""


// Set Logging
set g_log "games_mp.log" // Filename to log to
set g_logsync "1" // 0 = Buffered Writes, 1 = Write Immediately
// Team Icons
set scr_drawfriend "0" // Draw team icon over team mates


//Forced Respawning
set scr_forcerespawn "1" // Force respawning in DM & TDM


//Friendly Fire (0 = Off, 1 = On, 2 = Reflect Damage)
set scr_friendlyfire "2" // Setting for friendly fire action.


// Allow Voting (Set both the same!)
set scr_allow_vote "0" // Allow Voting
set g_allowvote "0" // Allow Voting


// Private Clients
set sv_privateClients "0" // Number of private slots (taken from maxclients)
set sv_privatePassword "" // Password required for private slots.


// Client settings
set sv_allowAnonymous "0" // Can user be anonymous?
set sv_maxclients "8" // Maximum Clients
set sv_maxPing "0" // Maximum Ping
set sv_maxRate "5000" // Maximum Rate
set sv_minPing "0" // Minimum Ping
set ham_sd_bombplant "1"
set ham_sd_bombdefuse "1"
set ham_sd_bombtimer "25"

// Pure Clients
set sv_pure "1" // Only pure clients may connect// Weapons allowed ( 0 = Disallowed, 1 = Allowed)
set scr_allow_bar "0" // BAR Automatic Rifle
set scr_allow_bren "0" // Bren Light Machine Gun
set scr_allow_enfield "1" // Lee Enfield Rifle
set scr_allow_fg42 "1" // FG42 Scoped Machine Gun
set scr_allow_kar98k "1" // KAR98K Rifle
set scr_allow_kar98ksniper "1" // KAR98K Sniper Rifle
set scr_allow_m1carbine "1" // M1 Carbine Rifle
set scr_allow_m1garand "1" // M1 Garand Rifle
set scr_allow_mp40 "0" // MP40 Sub Machine Gun
set scr_allow_mp44 "0" // MP44 (STG44) Machine Gun
set scr_allow_nagant "1" // Mosin Nagant Rifle
set scr_allow_nagantsniper "1" // Mosin Nagant Sniper Rifle
set scr_allow_panzerfaust "0" // Panzerfaust Anti-Tank Rocket
set scr_allow_ppsh "0" // PPsH Sub Machine Gun
set scr_allow_springfield "1" // Springfield 03 Sniper Rifle
set scr_allow_sten "0" // Sten Sub Machine Gun
set scr_allow_thompson "0" // Thompson Sub Machine Gun

// Behind Enemy Lines Settings
set scr_bel_alivepointtime "10" // Number of seconds before gaining 1 point as allied
set scr_bel_scorelimit "50" // Maximum score achievable as allied soldier
set scr_bel_timelimit "10" // Max time to remain on map


set g_gametype bel
map_rotate



// Map Rotation (Gametype can be set per map)
//--------------------------------------------------------------------------
// *NB* MP_CHATEAU, MP_POWCAMP & MP_SHIP DON'T WORK IN SEARCH & DESTROY *NB*
//--------------------------------------------------------------------------
set sv_mapRotation "gametype bel map mp_brecourt gametype bel map mp_carentan gametype bel map mp_chateau gametype bel map mp_dawnville gametype bel map mp_depot gametype bel map mp_harbor gametype bel map mp_hurtgen gametype bel map mp_pavlov gametype bel map mp_powcamp gametype bel map mp_railyard gametype bel map mp_rocket gametype bel map mp_ship"


// Allow Map Download
set sv_allowDownload "1" // Allow downloading from server, it works too


// Permit IW included cheats?
set sv_cheats "0" // Don't know if this works


// Flood Protection
set sv_floodProtect "1"


// Server FPS
set sv_fps "20"


// Miscellaneous unused commands
// set sv_onlyVisibleClients "0"
// set sv_padPackets "0"
// set sv_paused "0" // Pauses the server?
// set sv_reconnectlimit "3"
// set sv_running "1"
// set sv_serverid "22"
// set sv_serverRestarting "0"
// set sv_showAverageBPS "0"
// set sv_showCommands "0"
// set sv_showloss "0"
// set sv_timeout "240" // Amount of time before kicking a pinged player
// set sv_zombietime "2"
// set set scr_roundcam "0" // Gives a replay of entire round in a small


Sorry for the long post but i wanted to give you as much info as i could.

http://www.legionsofchaos.com/ers/themes/AOM/images/logo.jpg

SyntheticVisions
11-10-2003, 05:26 PM
Uh yeah this is a big issue for me as well..

The only way I've been able to do it, is I have separate CFG's for all the gametypes, I'll completely stop the server, and reload it with the CFG for the gametype I want.

How can I change the gametype via RCON in game!?!?

Chingaman
11-10-2003, 06:08 PM
I figured out how to do it after much trial and error. I noticed in console that it would say sv_maprotation and then it would show sv_maprotationcurrent. I figured out that you have to clear out the current rotation after you exec the .cfg or it just goes to next map and keeps the current game_type and rotation.
So...in each .cfg you have for the different gametypes...at the end of the .cfg...put in sv_maprotationcurrent"" and then map_rotate.
Works great!! It now changes game type and goes to the first map of the new rotation.

http://www.legionsofchaos.com/ers/themes/AOM/images/logo.jpg

imported_DesuMacchi
11-10-2003, 06:09 PM
Uh yeah this is a big issue for me as well..

The only way I've been able to do it, is I have separate CFG's for all the gametypes, I'll completely stop the server, and reload it with the CFG for the gametype I want.

How can I change the gametype via RCON in game!?!?

for you to do this in the console would be to

/rcon g_gametype tdm
/rcon g_gametype dm
/rcon g_gametype sd
/rcon g_gametype re
/rcon g_gametype bel

Hope that helps you out.

imported_DesuMacchi
11-10-2003, 06:12 PM
Here is my .cfg that bounces back and forth through gametypes

// Hostname and Message of the Day
set sv_hostname "| House Of Pain | SD and RE gametypes"
set scr_motd "Welcome to the House Of Pain. Map rotation includes Search and Destroy TDM and Retrieval."

// Maximum Clients
set sv_maxclients "14"
set sv_privateclients "4"
set sv_privatepassword "*****"
set sv_maxping "195"

// Team Icons
set scr_drawfriend "1"

// Forced Respawn
set scr_forcerespawn "0"

// Friendly Fire
set scr_friendlyfire "0"

// Allow Voting
set scr_allow_vote "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"
set scr_allow_fg42 "1"

// Search and Destroy Settings
set scr_sd_graceperiod "20"
set scr_sd_roundlength "12"
set scr_sd_roundlimit "7"
set scr_sd_scorelimit "6"
set scr_sd_timelimit "0"

// Behind Enemy Lines Settings
set scr_bel_alivepointtime "10"
set scr_bel_scorelimit "65"
set scr_bel_timelimit "35"

// Retrieval Settings
set scr_re_graceperiod "20"
set scr_re_roundlength "12"
set scr_re_roundlimit "7"
set scr_re_scorelimit "6"
set scr_re_showcarrier "1"
set scr_re_timelimit "0"

// Team Deathmatch
set scr_tdm_scorelimit "75"
set scr_tdm_timelimit "25"

// Deathmatch
set scr_dm_scorelimit "50"
set scr_dm_timelimit "20"

// The rotation.
set sv_mapRotation "gametype sd map mp_brecourt gametype re map mp_carentan gametype tdm map mp_chateau gametype re map mp_dawnville gametype sd map mp_depot gametype re map mp_harbor gametype sd map mp_hurtgen gametype re map mp_pavlov gametype tdm map mp_powcamp gametype re map mp_railyard gametype sd map mp_rocket gametype dm map mp_ship"

I hope that helps you out in maybe setting up yours this way.

Is this a dedicated server you are running?

Lestat
11-12-2003, 02:56 AM
you can either place this info into the q3plugin parameters section like this

+set monkeytoy 0 +set com_introplayed 1 +set rconAddress 69.36.138.??? +set rconpassword xxxxxx


or for your icon on desktop(shortcut)
right click on shortcut and goto properties and in the target window you will see something like this

"C:\Call of Duty\CoDMP.exe" +set monkeytoy 0 +set com_introplayed 1 +set rconAddress 69.36.138.??? +set rconpassword xxxxxx


Just replace the info above with your server settings.



You goto console and make sure you have your rconpassword activated first before you go about entering these commands.

/rconpassword xxxxx [enter key]
/g_gametype tdm (examples:dm,tdm,sd,bel,re) [enter key]
/map_restart [enter key]
now you have change the current map to tdm gametype.

you may or may not need rcon in front but if this way doesn't work try it with /rcon in front of it.