I'm having a problem with my maps changing my gamemode settings, for example, I'm using the gamemode casual with my settings I set up in "gamemode_casual.cfg" and they'll work fine for some maps but other maps will change some of the settings and screw up the whole server.
Another example of this is when I have it set to have no warmup but then the map changes it to have a 99-minute warmup and I'm not sure how to fix it.
If someone could help me that would be great and if the post is in the wrong section forgive me I've only posted here once.
gamemode_casual.cfg, and other files similar (gamemode_competitive.cfg, gamemode_deathmatch.cfg, etc.) are default files that come with the game. If you update them, once there is a CS:GO update, those files will get set back to their defaults, meaning your custom settings will get changed back. Also, they are one of the first cfg files that get loaded, so often times other configs will override their settings.
What you want to do is take that gamemode_casual.cfg file, duplicate it, and rename it to gamemode_casual_server.cfg
Once you do that, set all your custom configurations in this new file. When you change from map to map, this will be the last standard config to load and your settings should remain however you've set them. Some maps do have custom settings that will change things, but your gamemode_whatever_server.cfg file *should* override them.
This new file will not get overwritten when CS:GO updates, it will always keep whatever settings you set. You don't need to do anything special for the game to recognize and read this new file, it will automatically do it if you set the name to gamemode_casual_server.cfg and are running the Casual gamemode (game_mode 0, game_type 0 )
Well first for all... in CSGO, you not edit gamemode_casual.cfg file.
First lines inside that file even say so.
// DO NOT MODIFY THIS FILE
// To customize your server, see gamemodes_server.txt.example
Reason for this is, this file will get overwrite back to default when update server with SteamCMD.
To override Valve's game mode config file, you create file gamemode_casual_server.cfg
and add you cvars/settings there.
These config files will execute in this order when map start:
But, this is the way it suppose to do.
If you not have trouble your current settings, then forget above for now.
To your map problem.
Try look file called ...csgo/bspconvar_whitelist.txt
Inside that file, it says:
// This file should include convars which custom bsps are permitted to change via the bsp cfg file
// if a convar doesn't exist in this list, a map is not permitted to change it via the map's cfg file
// all convars in this list will also get set to their default values when a game mode cfg file is executed
So, go and look, do you have map config inside ...csgo/maps/cfg/mapname.cfg
If so, rename it else or delete.
If not, then inside bspconvar_whitelist.txt
try disable cvars with double slash //, then change level :
mp_use_respawn_waves 1 // When set to 1, and that player's team is set to respawn, they will respawn in waves.
//mp_warmup_pausetimer 1 // Set to 1 to stay in warmup indefinitely. Set to 0 to resume the timer.
//mp_warmuptime 1 // How long the warmup period lasts. Changing this value resets warmup.
//mp_warmuptime_all_players_connected 1 // How long the warmup period lasts after all humans have connected.
mp_weapon_self_inflict_amount 1 // Attacking damages you if you miss (can't die from this damage)
If that even not work.
You maybe need use MetaMod: Source plugin called Stripper.
But try above thing first.
I copied the causal gamemode and called it "gamemode_casual_server" in my cfg folder, and it stopped most issues I was having except for a few like changing the time of the rounds and adding warmup and so I went into "csgo/bspconvar_whitelist.txt" and commented out any commands I didn't want maps to change and it worked like a charm.