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

Help With Server Cvars


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TigerXN
Junior Member
Join Date: Apr 2020
Old 02-01-2021 , 22:24   Help With Server Cvars
Reply With Quote #1

I have a dedicated server on my PC to play DM/Retakes/Scrims with friends, and am suddenly having trouble changing cvars using the console.

When I run the server to play dm, I always use "exec gamemode_custom" to change the round times and player limits. Now all of a sudden, even though the file executes, and I see the cvars changing in game chat, they don't change when I use "mp_restartgame 1".

Any help would be greatly appreciated.
TigerXN is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-01-2021 , 23:30   Re: Help With Server Cvars
Reply With Quote #2

If game is CS:GO,
the game modes works how you set these settings, game_type, game_mode
- When change game mode and type, you need change level to avoid glitch and bugs.

By default, game_type 0; game_mode 0, it will run casual,
and executing cfg file gamemode_casual.cfg every map change.
To override any setting inside gamemode_casual.cfg -> create and add own settings in override file called gamemode_casual_server.cfg



Here little demonstration with different game mode and type settings. Which config files start working.
- And these are working with default, untouched, gamemodes.txt

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 

Command mp_restartgame only restart match, doesn't execute any config file.
But there may have few cvars, which change value when round restart.
Bacardi is offline
TigerXN
Junior Member
Join Date: Apr 2020
Old 02-02-2021 , 01:15   Re: Help With Server Cvars
Reply With Quote #3

I have already configured game_type and game_mode, the commands were working for months up until recently. No matter if I restart the server, reload the map, or restart using the command, nothing changes.
TigerXN is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 02-02-2021 , 07:14   Re: Help With Server Cvars
Reply With Quote #4

If you want to switch between game modes I would recommend to store the cvar for each game mode in in their respective gamemode_X_server.cfg file and use map Name GameMode to change.

Example
Code:
map de_dust2 deathmatch
Code:
//gamemode_deathmatch_server.cfg
mp_warmuptime 5
mp_freezetime 0
mp_roundtime 30
mp_teammates_are_enemies 1

Last edited by TomL.; 02-02-2021 at 07:16.
TomL. is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-02-2021 , 07:43   Re: Help With Server Cvars
Reply With Quote #5

Can you record video, what exactly you are doing ?
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 18:25.


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