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

In what order are configs executed?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BluTF2
Junior Member
Join Date: Jun 2017
Old 07-18-2017 , 03:45   In what order are configs executed?
Reply With Quote #1

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.
BluTF2 is offline
ketakevin
Junior Member
Join Date: Jul 2017
Location: Berlin, Germany
Old 07-18-2017 , 09:54   Re: In what order are configs executed?
Reply With Quote #2

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
ketakevin is offline
BluTF2
Junior Member
Join Date: Jun 2017
Old 07-18-2017 , 12:29   Re: In what order are configs executed?
Reply With Quote #3

Quote:
Originally Posted by ketakevin View Post
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.
BluTF2 is offline
ketakevin
Junior Member
Join Date: Jul 2017
Location: Berlin, Germany
Old 07-18-2017 , 12:43   Re: In what order are configs executed?
Reply With Quote #4

You can set tf_medieval 0 in '.cfg' so it will be executed on any map.
ketakevin is offline
Reply


Thread Tools
Display Modes

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 04:29.


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