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

[REQ] Global map configuration files


  
 
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-02-2007 , 22:57   [REQ] Global map configuration files
#1

Also ...


Is it possible to add global map configuration files like in Amx, please ?

ie : prefix_xxx.cfg / prefix_cs_.cfg / prefix_de.cfg


It is really useful when there are many maps which requires the same configuration and to create advanced configurations.


Thanks again.
__________________

Last edited by Arkshine; 02-02-2007 at 23:01.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-03-2007 , 11:06   Re: [REQ] Global map configuration files
#2

.cfg file would be loaded in this order :

amxx.cfg
maps/map_prefix_.cfg
maps/map_name.cfg
ConnorMcLeod is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-03-2007 , 11:59   Re: [REQ] Global map configuration files
#3

This is added to 1.77 as revision 3285

It will take the very first prefix (so de_clam_gabe would use "configs/maps/prefix_de.cfg"), and if no prefix exists (2fort, etc) it executes no prefix.

This is done immediately before the mapname.cfg file is executed.
__________________
fyren sucks
sawce is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 02-05-2007 , 01:27   Re: [REQ] Global map configuration files
#4

Addendum:

The config file location will be changed to amxmodx/configs/maps/prefixes/*.cfg

eg: For co_core it will be:
amxmodx/configs/maps/prefixes/co.cfg
__________________
fyren sucks
sawce is offline
 



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 15:14.


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