Raised This Month: $51 Target: $400
 12% 

CSGO server cfg file hierarchy


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CranberryPie
Junior Member
Join Date: May 2020
Old 05-14-2020 , 19:02   CSGO server cfg file hierarchy
Reply With Quote #1

Hey folks,

I am hosting a CSGO server and have come across some information regarding the files below, that it overrides gamemodes_server.txt?

gamemode_custom.cfg

gamemode_custom_server.cfg

gamemode_casual.cfg

gamemode_casual_server.cfg



Do I only need to edit gamemodes_server.txt? Currently I have my mapgroups/map list/cvars in gamemodes_server.txt.


My question is, what is the purpose of gamemodes_server.txt? The documentation says to edit gamemodes_server.txt with my custom maps and cvars. It also states that gamemode_casual_server.cfg for example will override my settings in gamemodes_server.txt.

Is it best to add cvars to the gamemode_custom_server.cfg then?
CranberryPie is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-14-2020 , 19:49   Re: CSGO server cfg file hierarchy
Reply With Quote #2

In other games, server.cfg was only configure file what get executed on map start/change.
Then there are some games with working map config...


In CSGO game, it execute "game mode" configure file, AFTER server.cfg file. Keep this in your mind.
- This will take over some cvars, what you have changed inside server.cfg. This is reason why people complain when "nothing" work on server.
List of CS:GO Cvars may not work from server.cfg

- It depends, what game_type and game_mode you are running on server, then specific game mode configure files get executed.
For example, game mode CUSTOM not use game mode configure files.( game_type 3 ; game_mode 0 )
And game mode CASUAL, use gamemode_casual.cfg. ( game_type 0 ; game_mode 0 )
You see all these from inside gamemodes.txt

- These gamemode_*.cfg files, what I called are "Valve's" own files, what I mean,
if you edit those files, those will be updated back to default when you update your server with SteamCMD.

To "override" Valve's own game mode settings, you create and use:
gamemodes_server.txt
gamemode_*_server.cfg





When need gamemodes_server.txt ?
- For add your own custom list of maps, map group.
- Maybe change game mode armrace weapons order or points, I have not tested.




I tried made "picture", in which order in in which game mode/type cfg files get executed. Below.
https://forums.alliedmods.net/showpo...29&postcount=8
Quote:
Originally Posted by Bacardi View Post
Here is 'picture', or 'map', what are CS:GO default game types and game modes inside gamemodes.txt

- Bottom *.cfg file will be executed as last, this one usually is "override" config file. To override Valve's game mode settings.
You need create that file, it not exist. Example: gamemode_casual_server.cfg

- Game types such as "custom" and "skirmish" not execute own game mode config files, server.cfg should work.
(But I don't know how "skirmish" work.)



PHP Code:

// classic
// classic - casual
game_type 0 game_mode 0
        gamemode_casual
.cfg
        gamemode_casual_server
.cfg

// classic - competitive
game_type 0 game_mode 1
        gamemode_competitive
.cfg
        gamemode_competitive_server
.cfg

// classic - scrimcomp2v2
game_type 0 game_mode 2
        gamemode_competitive2v2
.cfg
        gamemode_competitive2v2_server
.cfg

// classic - scrimcomp5v5
game_type 0 game_mode 3
        gamemode_competitive
.cfg
        op08_weapons_expert
.cfg
        gamemode_competitive_server
.cfg





// gungame
// gungame - gungameprogressive
game_type 1 game_mode 0
        gamemode_armsrace
.cfg
        gamemode_armsrace_server
.cfg

// gungame - gungametrbomb
game_type 1 game_mode 1
        gamemode_demolition
.cfg
        gamemode_demolition_server
.cfg

// gungame - deathmatch
game_type 1 game_mode 2
        gamemode_deathmatch
.cfg
        gamemode_deathmatch_server
.cfg






// training
// training - training
game_type 2 game_mode 0
        gamemode_training
.cfg
        gamemode_training_server
.cfg





// custom
// custom - custom
game_type 3 game_mode 0
        
//gamemode_custom.cfg    // This line is disabled from gamemodes.txt





// cooperative
// cooperative - cooperative
game_type 4 game_mode 0
        gamemode_competitive
.cfg 
        gamemode_cooperative
.cfg
        gamemode_cooperative_server
.cfg
        
// cooperative - coopmission
        
gamemode_competitive.cfg 
        gamemode_coopmission
.cfg
        gamemode_coopmission_server
.cfg



//skirmish
//skirmish - skirmish
game_type 5 game_mode 0
        
// None, configs specific to each skirmish game mode are executed





// freeforall
// freeforall - freeforall
game_type 6 game_mode 0
        gamemode_survival
.cfg 
        gamemode_survival_server
.cfg


// 
__________________
Do not Private Message @me

Last edited by Bacardi; 03-09-2021 at 13:02.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-14-2020 , 19:56   Re: CSGO server cfg file hierarchy
Reply With Quote #3

sry douple post.

You can try run server with
game_type 3
game_mode 0

and use server.cfg


But if you are not happy with that game mode, change to another game mode. And use specific gamemode_*_server.cfg
__________________
Do not Private Message @me
Bacardi is offline
CranberryPie
Junior Member
Join Date: May 2020
Old 05-14-2020 , 22:41   Re: CSGO server cfg file hierarchy
Reply With Quote #4

Ok, since I am running a custom server, game_type 3 and game_mode 0. I need to put my cvars in gamemode_custom_server.cfg or in server.cfg? Why is there a gamemode_custom_server.cfg then??

And I keep my map groups and maps in gamemodes_server.txt? Not cvars? The documentation said you can put cvars in gamemodes_server.txt.
CranberryPie is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-15-2020 , 06:15   Re: CSGO server cfg file hierarchy
Reply With Quote #5

Quote:
Originally Posted by CranberryPie View Post
The documentation said you can put cvars in gamemodes_server.txt.
Can you show or point, where is that documentation ?

Quote:
Originally Posted by CranberryPie View Post
Ok, since I am running a custom server, game_type 3 and game_mode 0. I need to put my cvars in gamemode_custom_server.cfg or in server.cfg? Why is there a gamemode_custom_server.cfg then??
gamemode_custom_server.cfg file doesn't exist when install CSGO dedicated server.
Someone or something have created that file.

You add cvars in server.cfg
This file also not exist by default while installing CSGO dedicated server, you need create it.

You could show your gamemodes_server.txt, so I don't need guess, how your server is working.
Quote:
Originally Posted by CranberryPie View Post
And I keep my map groups and maps in gamemodes_server.txt? Not cvars?
*edit
To avoid confusion on later, better keep all cvars in CFG files. This way you can find your problems easier and not hassle with too many files.

If you want use CSGO game own map cycle system, yes, use map groups.
You find default map groups from gamemodes.txt.
You create own custom map groups in gamemodes_server.txt
(You can use workshop map collection from Steam)


Other games and SourceMod look and follow normal map cycle system:
mapcyclefile mapcycle.txt.
...more at https://forums.alliedmods.net/showth...46#post2691846
__________________
Do not Private Message @me

Last edited by Bacardi; 05-15-2020 at 06:18.
Bacardi is offline
CranberryPie
Junior Member
Join Date: May 2020
Old 05-17-2020 , 22:25   Re: CSGO server cfg file hierarchy
Reply With Quote #6

Quote:
Originally Posted by Bacardi View Post
Can you show or point, where is that documentation ?
https://developer.valvesoftware.com/...des_server.txt

It says you can add cvars to gamemodes_server.txt, but these may be overridden by settings in cfg/gamemode_XXX.cfg and cfg/gamemode_XXX_server.cfg.

Also ConfigCreator has an option to put in cvars: https://beta.configcreator.com/creat...des_server.txt

But after some testing, I found cvars don't work in gamemodes_server.txt


https://developer.valvesoftware.com/...rom_server.cfg

When I did "mp_maxrounds 5" (no quotes) in gamemode_custom_server.cfg it didn't change the rounds. When I put it in server.cfg and 1v1 plugin config it did!


Quote:
Other games and SourceMod look and follow normal map cycle system:
mapcyclefile mapcycle.txt.
...more at https://forums.alliedmods.net/showth...46#post2691846
If I use Steam workshop map collection I still need to put map names in gamemodes_server.txt with a new mapgroup?
CranberryPie is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-18-2020 , 05:11   Re: CSGO server cfg file hierarchy
Reply With Quote #7

Quote:
Originally Posted by CranberryPie View Post
https://developer.valvesoftware.com/...des_server.txt

It says you can add cvars to gamemodes_server.txt, but these may be overridden by settings in cfg/gamemode_XXX.cfg and cfg/gamemode_XXX_server.cfg.
I'm not sure, how cvars work from gamemodes_server.txt or does those work at all.
It maybe old or faulty information, anyone can edit and update Wiki pages.
Again, I don't know. I maybe try it later.

However, if it work, why bother. You just making things more difficult.
Now you need simplify your server configurations, to avoid headache in future. Right ?

So, forget ConVars inside gamemodes_server.txt
...
out of topic, Today, I learned that, cvars inside bspconvar_whitelist.txt will be also reset to default every map change. But before server.cfg and others config files.
Not happen most (or any) of other games.

Quote:
Originally Posted by CranberryPie View Post
Also ConfigCreator has an option to put in cvars: https://beta.configcreator.com/creat...des_server.txt

But after some testing, I found cvars don't work in gamemodes_server.txt
ConfigCreator.com - Powered by NFOServers.com

Doesn't read Valve. Anyone can create "tool" web pages. Don't rely 110%

Quote:
Originally Posted by CranberryPie View Post
https://developer.valvesoftware.com/...rom_server.cfg

When I did "mp_maxrounds 5" (no quotes) in gamemode_custom_server.cfg it didn't change the rounds. When I put it in server.cfg and 1v1 plugin config it did!

I tried to told you in previous post

For the last time.
Game mode custom not use gamemode_custom.cfg or gamemode_custom_server.cfg files, by default.
- Unless, you have edit and configured gamemodes_server.txt to use those files.

Use server.cfg
Quote:
Originally Posted by CranberryPie View Post
If I use Steam workshop map collection I still need to put map names in gamemodes_server.txt with a new mapgroup?
Not really. Your workshop collection work as like map group.
You can arrange maps order in that workshop page.


You may need use gamemodes_server.txt and mapgroup, when you try mix CSGO basic maps and workshop maps, in map cycle.

Last edited by Bacardi; 05-18-2020 at 05:13.
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode