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

[CS:GO] Gamemodes.txt vs gamemodes_server.txt


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Wizzardoff
Senior Member
Join Date: Dec 2022
Old 12-17-2022 , 16:02   [CS:GO] Gamemodes.txt vs gamemodes_server.txt
Reply With Quote #1

Im new to csgo hosting so i just wanted some clearance . Does file gamemode_server.txt completely replace gamemode.txt when active (it deactivates gamemodes.txt) or just some commands inside gamemode_server.txt which override commands in gamemodes.txt?
I assume just some command overriding as gamemodes.txt had a lost more code inside. Im asking because i just want to make an active mapgroup in gamemodes_server.txt and all the rest leave in gamemodes.txt which probably will be replaced with default gamemodes.txt after server update.
Thanks

Last edited by Wizzardoff; 12-17-2022 at 17:02.
Wizzardoff is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-17-2022 , 19:02   Re: [CS:GO] Gamemodes.txt vs gamemodes_server.txt
Reply With Quote #2

*edit
- Do not edit gamemodes.txt or gamemode_*.cfg files. Those get overwritten after updates.
- Create and use override files, gamemodes_server.txt, gamemode_*_server.cfg
- You not need copy of all settings from base file into override file. Use just those you want change.



Something like this, it merge _server file into base gamemodes file.
Code:
	"block"
	{
		"key"	"value"
	}
_server, override file:
- Not remove keys or blocks.
- It can add new block and key with value.
- It can change value of already exist key, when you travel to right path (blocks). This is why we use it as override file, to change default value.

For quick example:
- If server not start with -maxplayers_override parameter,
you can change maxplayers size in different game modes (example coop vs casual).
It turn maxplayers as dynamic variable.
You can change maxplayers value with _server override file using key "maxplayers" (and for traveling in right gamemodes, gametypes etc. etc. you need mimic path).

- Base file have map group called "mg_de_dust2", it only have one map "de_dust2" "".
Because "de_dust2" "" map name is key, you can't remove it.
If you use override file to place another map into it, you just increase map count.
Code:
mapgroup mg_de_dust2
Setting mapgroup to 'mg_de_dust2'
print_mapgroup_sv
Map group: mg_de_dust2
     de_dust2
     cs_office
- In "mapgroups" section, you can create new map group with given map list, using override file and right path.

This is my opinion what I have test.
Game could do other things, I have not look into it deeper.

Most values inside gamemodes file, are maybe for client side things.
So all things not work from server side.
__________________
Do not Private Message @me

Last edited by Bacardi; 12-17-2022 at 19:15.
Bacardi is offline
Wizzardoff
Senior Member
Join Date: Dec 2022
Old 12-18-2022 , 07:29   Re: [CS:GO] Gamemodes.txt vs gamemodes_server.txt
Reply With Quote #3

So as i assumed,just few commands from gamemodes_server file overrides commands from gamemodes file. Thank you.
Wizzardoff 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 08:20.


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