PDA

View Full Version : Use Different Gamemodes on the server!


cod4_dbgaming
12-18-2007, 12:12 PM
Hi All!

I wonder if you guys could help me out here.

I want to use all maps & the following Gamemodes.

// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy

This without me changing Gamemodes by Rcon. Is this possible?
I tried to add all the maps and all the modes thru a *.cfg file but the server Chokes.

If I trim the maplist down to aprox 12-15 maps with different gamemodes it works, but like I said I would like to use all the maps with the specified Gamemodes above.


Btw. Im using the cod4config.zip files to run my server.
I also tried to add more gamemodes @

set g_gametype "koth" to set g_gametype "koth,sd"

in the mapconfig.cfg but it didnt help.

Thanks in advanced.

Letalis, Admin @ gaming.datorbutiken.com

Timber
12-18-2007, 12:51 PM
All you have to do is this............ set g_gametype "cfg"

cod4_dbgaming
12-18-2007, 01:45 PM
I tried youre suggestion now but it still stays on KOTH

Heres my mapconfig.

/************************************************** ****************************
// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch
//************************************************** ****************************
set g_gametype "cfg" <- Like this? Or did you mean anything else?

//************************************************** ****************************
// DM -- FREE FOR ALL DEATHMATCH
//************************************************** ****************************
set sv_mapRotation "gametype dm map mp_backlot gametype dm map mp_bloc gametype dm map mp_bog gametype dm map mp_cargoship gametype dm map mp_citystreets gametype dm map mp_convoy gametype dm map mp_countdown gametype dm map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype dm map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant"

//************************************************** ****************************
// 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"

//************************************************** ****************************
// 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"

//************************************************** ****************************
// 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"

wcSki
12-18-2007, 03:27 PM
I think all you should need to do is edit the gametype setting in your map rotation:

You Have this listed above:
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"

Game type for every map is koth.... so each one will play as koth.

Now here is an example of mixed gametypes:
set sv_mapRotation "gametype koth map mp_backlot gametype sab map mp_bloc gametype dom map mp_bog gametype war map mp_cargoship gametype dm map mp_citystreets gametype sd 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"

Notice how I changed the gametype setting that is listed before the map name. You can set each map how you like.

Ski

romeozor
12-18-2007, 03:30 PM
this is because you set the maprotation to a different string each time, the strings dont get added, they are overwritten. the server runs through your config when a map is loaded (or whatever) and it will only use the last maprotation, which is KOTH

wcSki
12-18-2007, 03:34 PM
I run sd, sab and dom on my server. This is the end of the config file that I am using.

//================================================== ===============================
// Gametype Settings
//================================================== ===============================

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

// Deathmatch
set scr_dm_scorelimit 150
set scr_dm_timelimit 10
set scr_dm_roundlimit 1
set scr_dm_numlives 0
set scr_dm_playerrespawndelay -1
set scr_dm_waverespawndelay 0


// Domination
set scr_dom_scorelimit 200
set scr_dom_timelimit 0
set scr_dom_roundlimit 1
set scr_dom_numlives 0
set scr_dom_playerrespawndelay -1
set scr_dom_waverespawndelay 0


// Teamdeath Match
set scr_war_scorelimit 750
set scr_war_timelimit 10
set scr_war_roundlimit 1
set scr_war_numlives 0
set scr_war_playerrespawndelay -1
set scr_war_waverespawndelay 0

// Sabotoge
set scr_sab_scorelimit 3
set scr_sab_timelimit 10
set scr_sab_roundlimit 3
set scr_sab_roundswitch 1
set scr_sab_numlives 0
set scr_sab_bombtimer 30
set scr_sab_planttime 3
set scr_sab_defusetime 3
set scr_sab_hotpotato 0
set scr_sab_playerrespawndelay -1
set scr_sab_waverespawndelay 0

// King of the Hill
set scr_koth_scorelimit 250
set scr_koth_timelimit 15
set scr_koth_roundlimit 1
set scr_koth_roundswitch 1
set scr_koth_numlives 0
set scr_koth_playerrespawndelay -1
set scr_koth_waverespawndelay 0
set koth_autodestroytime 60
set koth_spawntime 0
set koth_kothmode 0
set koth_capturetime 20
set koth_destroytime 10
set koth_delayPlayer 0
set koth_spawnDelay 60

// Search and Destroy
set scr_sd_scorelimit 6
set scr_sd_timelimit 3
set scr_sd_roundlimit 0
set scr_sd_roundswitch 3 // rounds between switching teams
set scr_sd_numlives 1 // elimination
set scr_sd_bombtimer 60
set scr_sd_planttime 7
set scr_sd_defusetime 7
set scr_sd_multibomb 0
set scr_sd_playerrespawndelay -1
set scr_sd_waverespawndelay 0

// Team-Balance and Voting
set scr_teambalance "1"
set g_allowvote "0"

set sv_mapRotation "gametype sd map mp_backlot gametype sab map mp_countdown gametype dom map mp_crash gametype sd map mp_convoy gametype sd map mp_vacant gametype sab map mp_bog gametype dom map mp_showdown gametype sd map mp_pipeline gametype sd map mp_farm gametype sab map mp_crossfire gametype dom map mp_citystreets gametype sd map mp_overgrown gametype sd map mp_strike gametype sd map mp_cargoship"


I set the different game type settings above the map rotation... and then choose the gametype for the map.

cod4_dbgaming
12-18-2007, 06:15 PM
It seems that this is the way to run mixed mode.

I have tried your solution but are only able to use like 15-16 maps more than that chokes the server.

But I want to be able to use all maps and 4 modes.

Its like 16*4 and you cant get the server to run with all those maps.

EDIT*

I found why it wont work :-)
The message i got was:
********************
ERROR: Attempted to overrun string in call to va()
********************

2. There is a character limit of 1028. This was the way it was in COD2 also, and we got around it by not always mentioning "gametype XX" in the rotation.

So, for example, if you wish to use just one gametype (eg. war):

Citat:
set sv_mapRotation "gametype war map mp_countdown map mp_bloc map mp_bog map mp_countdown map mp_cargoship map mp_citystreets map mp_convoy map mp_countdown map mp_crash map mp_crossfire map mp_farm map mp_overgrown map mp_pipeline map mp_shipment map mp_showdown map mp_strike map mp_vacant"


This saves on the number of characters used, and allows you to use them to describe a map instead.

The only time you need to mention "gametype XX" after the first initial instance, is when you are switching gametypes. So, in a mixed rotation for example, you can have something like this:

Citat:
set sv_mapRotation "gametype war map mp_crash map mp_bloc map mp_bog gametype dom map mp_cargoship map mp_citystreets map mp_convoy map mp_countdown gametype koth map mp_crash map mp_crossfire map mp_farm map mp_overgrown gametype sd map mp_pipeline map mp_shipment map mp_showdown gametype sab map mp_strike map mp_vacant"


Group your maps by gametype, and have them in sequence one after the other.


Read more about it here: http://www.infinityward.com/community/forum/index.php?topic=2309.0

Now the question is witch maps that has to go away if I want 4 Gamemodes and the most maps :-/

Thanks anyway for your help.

wcSki
12-19-2007, 09:04 AM
Well I am glad you have it figured out. I do not like your method actually because you have to have all the maps in a row with the same gametype, but to each his own. peace!

Wizz
12-19-2007, 11:15 AM
Hi all

Ok if your server is linux based and it is running the 1.3 hot fix by Ryan then you can have each and every gametype/map in the rotation. I made up the uber rotation with each map and each map has its GT setting. The character count was around 2700 and the server worked great.

This will not work on windows based servers.

JoeyC
12-19-2007, 12:51 PM
I wonder if they are going to fix the character limit in the rotation in the next patch