How to make map specific config files.
This is a feature being requested over and over and over and this feature is completely unnecessary for any plugin, why? Because it's built into the Source Engine (all forms of it, that includes CSS, DoD:S, TF2/OrangeBox,etc). What this means is: No plugins ever are needed to execute .cfg files on specific maps, with a few exceptions based around gameplay modification things, but that's irrelevent here.
In your <mod>/maps/ directory you can create a "cfg" directory, making it: <mod>/maps/cfg/ Within this directory you can create a mapname.cfg file, for example, de_dust2.cfg so now you have a dust2 config file; <mod>/maps/cfg/de_dust2.cfg this file will ex execute every time de_dust2 comes around in you map rotation or when the map is loaded. This was posted for intention of Sticky (I'm getting tired of seeing the requests). |
Re: How to make map specific config files.
I tried this for DoD:S, if they reside in mod/maps/cfg/mapname.cfg it doesn't work. However mod/cfg/mapname.cfg works perfectly.
|
Re: How to make map specific config files.
Are you sure it works with TF2?
I tried to put cp_gravelpit.cfg to /path/to/tf2/orangebox/tf/maps/cfg/cp_gravelpit.cfg and /path/to/tf2/orangebox/tf/maps/cp_gravelpit.cfg and also to /path/to/tf2/orangebox/tf/cfg/cp_gravelpit.cfg The file contained only two things: mp_timelimit 40 echo "cp_gravelpit config loaded" I restarted the server with +map cp_well and changed level from server's console to cp_gravelpit my server.cfg has mp_timelimit commented out so it defaults to 30. There was no change to timelimit after changing map. Neither didn't the server's console echo the line the config suggested. |
Re: How to make map specific config files.
/path/to/tf2/orangebox/tf/maps/cp_gravelpit.cfg
Should be path/to/tf2/orangebox/tf/maps/cfg/cp_gravelpit.cfg |
Re: How to make map specific config files.
Quote:
Quote:
|
Re: How to make map specific config files.
whoops missed that first one
|
Re: How to make map specific config files.
tried all of the above, doesn't work :(
also tried tf/cp_gravelpit.cfg I would love to do this without a mod, if it's possible. |
Re: How to make map specific config files.
Valve pretty much broke map-specific cfgs for TF2. I'd recommend emailing the powers that be at Valve, ask them to re-enable the feature on a future update.
|
Re: How to make map specific config files.
Quote:
|
Re: How to make map specific config files.
Isn't that what this does?
http://forums.alliedmods.net/showthread.php?p=543922 Works for TF2 with latest version. (at least it works on my server) |
All times are GMT -4. The time now is 00:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.