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
CMCW
Member
Join Date: Nov 2011
Old 11-09-2011 , 15:50   Re: How to make map specific config files.
Reply With Quote #4

So what is currently the best way to config TF2 maps? all i want to do is change their individual map lengths, do i really need a mod just to do that? D:
CMCW is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-09-2011 , 19:35   Re: How to make map specific config files.
Reply With Quote #5

Quote:
Originally Posted by CMCW View Post
So what is currently the best way to config TF2 maps? all i want to do is change their individual map lengths, do i really need a mod just to do that? D:
TF2 still reads cfg/[mapname].cfg (so, say, cfg/cp_dustbowl.cfg), so you can put them there.

Plugins are just required if you want to set settings for all maps of a specific type (except arena, which already have arena_config.cfg)
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 #6

/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 #7

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 #8

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 #9

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 #10

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
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 21:38.


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