AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   In what order are configs executed? (https://forums.alliedmods.net/showthread.php?t=299543)

BluTF2 07-18-2017 03:45

In what order are configs executed?
 
I have tf_medieval 0 in cfg/server.cfg and tf_medieval 1 in cfg/sourcemod/map-cfg/cp_degroot.cfg but for some reason tf_medieval was still enabled after my server switched maps from degrootkeep to different one. So basically I was wondering if I should actually be putting tf_medieval 0 (and other commands that I want to be applied by default to every map) in server.cfg or if it should go somewhere else.

Thanks, any help is appreciated.

ketakevin 07-18-2017 09:54

Re: In what order are configs executed?
 
I guess you are using Map configs with prefix support 1.3?

For example.
server.cfg in /cfg
and
ba_.cfg, ba_yard_.cfg, ba_yard_v2.cfg in cfg/sourcemod/map-cfg

If the map ba_yard_v2 is started, the server will execute server.cfg, then ba_.cfg, then ba_yard_.cfg, then ba_yard_v2.cfg etc. So map specific configuration will overwrite for example a ba_.cfg which is valid for all ba_*.maps

BluTF2 07-18-2017 12:29

Re: In what order are configs executed?
 
Quote:

Originally Posted by ketakevin (Post 2536119)
I guess you are using Map configs with prefix support 1.3?

For example.
server.cfg in /cfg
and
ba_.cfg, ba_yard_.cfg, ba_yard_v2.cfg in cfg/sourcemod/map-cfg

If the map ba_yard_v2 is started, the server will execute server.cfg, then ba_.cfg, then ba_yard_.cfg, then ba_yard_v2.cfg etc. So map specific configuration will overwrite for example a ba_.cfg which is valid for all ba_*.maps

Alright thanks, I still don't understand why tf_medieval wouldn't be set to 0 when I switched map though since i had tf_medieval 0 in server.cfg. Oh well, I'll just have to wait and see if this problems shows up again.

ketakevin 07-18-2017 12:43

Re: In what order are configs executed?
 
You can set tf_medieval 0 in '.cfg' so it will be executed on any map.


All times are GMT -4. The time now is 04:29.

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