Map configs with prefix support 1.3
1 Attachment(s)
https://www.bcserv.eu/images/sourcemod/mapconfigs.png with prefix support
Plugin on Github: https://github.com/bcserv/mapconfigs - Forks & Pull requests are welcome Allows you to have per map config files. Support for map prefix configs (example: dm_.cfg) This is a complete rewrite of a map configs plugin I found somewhere. You can have prefix configs that allow you to easily execute cvars/commands for a group of maps, without having to create a cfg file for each of them. The executing order is alphabetical, that means configs that have the shortest name will be executed first. Example: Your maps name is js_build_puzzle_nine_v10 Your config files are js_build_puzzle_nine_v10.cfg, js_build_.cfg and js_.cfg The executing order will be:
cfg/sourcemod/map-cfg/ ConVars none Todo - Changelog 06-05-2015 Version 1.3
26-10-2014 Version 1.2
23-8-2009 Version 1.1.1
23-8-2009 Version 1.1
Contributors |
Re: Map configs with prefix support
Either your post is incorrect or the code is because your code draws the configs from cfg/sourcemod/map-cfg not cfg/map-cfg
other than that, the plugin has worked so far without a hitch! |
Re: Map configs with prefix support
How is that any different from this plugin?
|
Re: Map configs with prefix support
It works with all mods. :P
|
Re: Map configs with prefix support
I use the plugin I linked on CSS, DOD:S, and TF2 just fine.
|
Re: Map configs with prefix support
Well than the difference is this one was released in April for any mod and the other was made in January for CSS it said. :D
|
Re: Map configs with prefix support
Quote:
Well there are some things that are different.
|
Re: Map configs with prefix support
Quote:
cheers |
Re: Map configs with prefix support
appears to work fine in insurgency. thanks. :up:
|
Re: Map configs with prefix support
Your plugin has a race condition. OnConfigsExecuted() guarantees that all configs have finished executing. But you're issuing an "exec" command inside OnConfigsExecuted(), and the changes won't necessarily be mirrored in plugins which rely on this guarantee (such as reservedslots).
I've added a forward to the 1.1 branch to help mitigate this problem, you can read about it here. This change will make it into 1.0.2 or so. I won't unapprove this plugin until a stable release has the new feature and this plugin has had time to update after that. Note: "fixing" by using OnMapStart() is not a good idea since it occurs before sourcemod.cfg gets executed. |
Re: Map configs with prefix support
Thanks for adding this forward.
Plugin updated 7-5-2008 Version 1.02
|
Re: Map configs with prefix support
hi
ive been using 1.01 on my insurgency server and it works fine. however I have put 1.02 on recently and it has stopped working. I am using sm v1.0.1.2166 which should be fine. I reinstalled v1.01 on and it works fine. Unfortuantely there is nothing in the log file that would indicate Any ideas why? if you could look into this, it would be appreciated! |
Re: Map configs with prefix support
i just updated to sourcemod 1.0.3.2265 and updated to your 1.2 plugin. it seems to work on changing server varibles(mp_timelimit etc), but doesn't seem to be changing the sourcemod varibles any longer. I turn off my afk manager and reserved slots on certain maps, but the stay active now. it seems like map configs are being executed before the sourcemod configs or something(im just guessing).
thanks and hopefully you can get this updated soon. edit: I tried the 1.01 version had the same issue. they both seem to work on server start-up, but once there is a map change the sourcemod varibles aren't getting changed. |
Re: Map configs with prefix support
Is this plugin still maintained? If not here's an alternative for single file configs
http://forums.alliedmods.net/showthread.php?p=623728 |
Re: Map configs with prefix support
Uhm, I think you have to ask BAILOPAN then, he was the one who asked to change OnConfigsExecuted() to OnAutoConfigsBuffered(), but the 1.01 version of my plugin is still uploaded, so you can use this one ;)
|
Re: Map configs with prefix support
its already being addresses, hopefully they can get it fixed soon. http://bugs.alliedmods.net/index.php...1776&project=5
|
Re: Map configs with prefix support
The problem has been fixed with Sourcemod 1.03.
Map configs 1.02 is now safe to use. Read here: http://wiki.alliedmods.net/SourceMod..._Release_Notes |
Re: Map configs with prefix support
This is a great plugin! I have one issue though. I'm trying to spawn bots on some maps by using the specific map cfg files, and not on others, by leaving the cfg blank. It seems that even if I only put the bot cvars in one cfg, every map loads bots. Any ideas? Can I acomplish this another way?
Counter-Strike: Source SM 1.1.2 MM 1.7.1 |
Re: Map configs with prefix support
How are your config files named ? And what's the content.
|
Re: Map configs with prefix support
thank you for this great plugin!
im using this plugin for left 4 dead, it seems working well. :up: nice job! |
Re: Map configs with prefix support
i found problem on left 4 dead. :cry:
after all player left from server, server will be "hibernating". at that time, all cfg settings reset. map config won't loaded until next map coming... can u fix this problem? if so, im happy. :oops: p.s. im sorry for my poor English, im just a Japanese... :oops: |
Re: Map configs with prefix support
Hibernating ? hm why does it reset the settings ?
I don't think that I can do something about that, as it's not a bug in this plugin. you are welcome, I like japanese :wink: |
Re: Map configs with prefix support
i don't know why server reset the setting... :cry:
i found someone ask same question at other thread. http://forums.alliedmods.net/showthr...945#post760945 i think this is problem only for Left 4 Dead. then, ill wait until valve do something about this problem. :P thanks! |
Re: Map configs with prefix support
I dunno if it's something I'm doing wrong or what, but I can't get the plugin to run configs after issuing a changelevel command. I'm using it for L4D, and have specific changes for coop, survival and versus with configs set up like so:
l4d_.cfg l4d_sv_.cfg l4d_vs_.cfg If I reboot the server, it picks up the config order fine (loads co-op as a base then versus afterwards and echos to console as a check). If I boot the server, then run a changelevel to another map, it doesn't run any of the configs at all. Is it just me being a tard or what? |
Re: Map configs with prefix support
Plugin updated
23-8-2009 Version 1.1
|
Re: Map configs with prefix support
I am assuming that this works like the es version except this one actually works... :wink:
|
Re: Map configs with prefix support
Plugin updated
23-8-2009 Version 1.1.1
|
Re: Map configs with prefix support
With KOTH being official now in TF2, and there not being a built in KOTH config file like for arena, this should prove useful.
|
Re: Map configs with prefix support
when are the cfg files executed? before loading the map or after?
i think ill first present u with my situation the server runs mostly DM maps but sometimes we like to play some ctf too. to load a ctf map, the server must have mp_teamplay 1 on it so we have to change teamplay from 0 to 1 manually. sooo, i installed your plugin on the server and made a ctf_.cfg with mp_teamplay 1 in it. i thought it should work ok but actually it doesnt. the server crashes on map change, meaning that mp_teamplay was unchanged. is it that the cfgs are executed when maps are loaded or am i missing something? |
Re: Map configs with prefix support
Afaik in hl2dm mp_teamplay must be set when the server start, at the command line. I don't think you can set that when the server runs.
the configs are executed when server.cfg and all others configs gets executed too, I think it's before the map is loaded. but the configs are executed on every mapchange. |
Re: Map configs with prefix support
Quote:
|
Re: Map configs with prefix support
just want to thank you for this great plugin!
|
Re: Map configs with prefix support
Hi .. i got a problem ... the plugin works but 2 late .. if i change it 2 a coop map where it should be mp_teamplay 1 on its not acctivating untill the map change 2 a new map .. i made a cfg calld dm_.cfg for death match maps .. where the mp_teamplay is 0 cuz well its a death match map and then i made a cfg calld coop_.cfg where the mp_teamplay 1 but still mp only starts after i switch the map ... then it gets all messt up like teamplay is on a dm map and like coop is death match setting ...... Please ... help me out and fast .. i realy want this 2 work .....
|
Re: Map configs with prefix support
hm it do not work for me under CS:S
i have 3 configs bhop_.cfg he_.cgf and glass_crusher.cfg the only cfg which will load is the glass_crusher.cfg all other are not load :( can you help me? |
Re: Map configs with prefix support
he_.cgf -> he.cfg
What are the names of the maps the configs should execute for ? |
Re: Map configs with prefix support
Nice plugin. Works on hl2dm well.
|
Re: Map configs with prefix support
By comparing the sourcecode of this and Extended Map Configs, this is much more simply coded (in other words, expects the game itself to support the stuff). Is that all the intended difference ?
|
Re: Map configs with prefix support
What do you mean ? It should work with any game, it's not much code but still is powerful.
|
Re: Map configs with prefix support
Quote:
|
Re: Map configs with prefix support
I don't see how this should be relevant, and I don't really know or care.
|
All times are GMT -4. The time now is 11:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.