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

How to make map specific config files.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FlyingMongoose
Veteran Member
Join Date: Mar 2004
Old 10-18-2007 , 11:49   How to make map specific config files.
Reply With Quote #1

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).
__________________
Please do NOT PM for support.

Only ask for support in plugin threads.

TunedChaos.com - Precision Tuned Game Servers
FlyingMongoose is offline
Mosalar
Senior Member
Join Date: Jul 2004
Location: Tampa Fl
Old 10-19-2007 , 14:29   Re: How to make map specific config files.
Reply With Quote #2

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.
Mosalar is offline
lassizci
Junior Member
Join Date: Oct 2007
Old 10-23-2007 , 13:12   Re: How to make map specific config files.
Reply With Quote #3

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.
lassizci is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 10-23-2007 , 13:16   Re: How to make map specific config files.
Reply With Quote #4

/path/to/tf2/orangebox/tf/maps/cp_gravelpit.cfg

Should be

path/to/tf2/orangebox/tf/maps/cfg/cp_gravelpit.cfg
__________________
I'm a blast from the past!
ferret is offline
lassizci
Junior Member
Join Date: Oct 2007
Old 10-23-2007 , 13:23   Re: How to make map specific config files.
Reply With Quote #5

Quote:
Originally Posted by ferret View Post
/path/to/tf2/orangebox/tf/maps/cp_gravelpit.cfg

Should be

path/to/tf2/orangebox/tf/maps/cfg/cp_gravelpit.cfg
Quote:
Originally Posted by lassizci
tried to put cp_gravelpit.cfg to /path/to/tf2/orangebox/tf/maps/cfg/cp_gravelpit.cfg
and
lassizci is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 10-23-2007 , 14:00   Re: How to make map specific config files.
Reply With Quote #6

whoops missed that first one
__________________
I'm a blast from the past!
ferret is offline
Kaishi
Junior Member
Join Date: Nov 2007
Old 11-05-2007 , 22:48   Re: How to make map specific config files.
Reply With Quote #7

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.
Kaishi is offline
K2
Member
Join Date: Oct 2004
Location: HELL
Old 11-06-2007 , 00:29   Re: How to make map specific config files.
Reply With Quote #8

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.
__________________
- http://www.hardfought.org
- IRC: #hardfought on gamesurge.net
K2 is offline
pRED*
Join Date: Dec 2006
Old 11-06-2007 , 02:21   Re: How to make map specific config files.
Reply With Quote #9

Quote:
Originally Posted by K2 View Post
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.
Save wearing your keyboard out and bang your head into a brick wall instead. This method is also scientifically proven to be 3x more effective than the emailing valve way.
pRED* is offline
Filibuster
New Member
Join Date: Nov 2007
Old 11-08-2007 , 02:45   Re: How to make map specific config files.
Reply With Quote #10

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)
Filibuster 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 02:24.


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