AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   How to make map specific config files. (https://forums.alliedmods.net/showthread.php?t=62087)

FlyingMongoose 10-18-2007 11:49

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).

Mosalar 10-19-2007 14:29

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.

lassizci 10-23-2007 13:12

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.

ferret 10-23-2007 13:16

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

lassizci 10-23-2007 13:23

Re: How to make map specific config files.
 
Quote:

Originally Posted by ferret (Post 545421)
/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


ferret 10-23-2007 14:00

Re: How to make map specific config files.
 
whoops missed that first one

Kaishi 11-05-2007 22:48

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.

K2 11-06-2007 00:29

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.

pRED* 11-06-2007 02:21

Re: How to make map specific config files.
 
Quote:

Originally Posted by K2 (Post 550010)
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.

Filibuster 11-08-2007 02:45

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.