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. |
All times are GMT -4. The time now is 00:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.