Raised This Month: $ Target: $400
 0% 

How to disable CSDM for certain maps


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 02-24-2007 , 03:05   Re: Dont remove weapons
Reply With Quote #1

Quote:
Originally Posted by AMX MOD X wiki
AMX Mod X 1.76 Changes
Per-Map Plugin Files

You can now have per-map plugin configuration files. AMX Mod X will automatically load any plugins listed in files having the following name: configs/maps/plugins-<map>.ini. Thus, de_dust specific plugins will be loaded from configs/maps/plugins-de_dust.ini.

Map-specific plugin files are parsed after the main plugins.ini is parsed, and after all secondary plugins-*.ini files are parsed in the configs folder. This means that a map-specific plugin listing inherits all settings above itself.

Disabling Plugins

A second feature was introduced to let users disable plugins per map. In any plugins-*.ini file, you may now add a "disabled" flag to a plugin name. This works like the "debug" flag. Example: gaben.amxx disabled

This will block the plugin from being loaded from any other configuration file. So if plugins-de_dust.ini has the example line above, gaben.amxx will not be loaded from any other plugins file.
What does it mean?
Instead the config file You created for Your map You should've create the config called plugins-cf_mapzilla.ini (placed also in configs/maps folder) and it should look so:
Quote:
Originally Posted by plugins-cf_mapzilla
csdm_main.amxx disabled
csdm_equip.amxx disabled
csdm_spawn_preset.amxx disabled
csdm_misc.amxx disabled
csdm_protection.amxx disabled
csdm_ffa.amxx disabled
csdm_tickets.amxx disabled
csdm_itemmode.amxx disabled
csdm_stop_respawn.amxx disabled
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
6pack
BANNED
Join Date: Mar 2006
Location: Cedarhurst, Long Island
Old 02-24-2007 , 05:42   Re: Dont remove weapons
Reply With Quote #2

I will give it a shot

EDIT
Everything works except the command
"csdm_stop_respawn.amxx disabled"
I will play with it.....Thanks

Last edited by 6pack; 02-24-2007 at 06:10.
6pack is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 02-24-2007 , 09:06   Re: Dont remove weapons
Reply With Quote #3

If You don't have that plugin in csdm-plugins.ini, You don't need that line.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
6pack
BANNED
Join Date: Mar 2006
Location: Cedarhurst, Long Island
Old 02-24-2007 , 12:21   Re: Dont remove weapons
Reply With Quote #4

Quote:
Originally Posted by KWo View Post
If You don't have that plugin in csdm-plugins.ini, You don't need that line.
you see the method you posted is fine as far as the weapons on the ground returning but does nothing as far as stopping CSDM all together. People are still being reswawned when dead. With the mapname.cfg file at least it is stopped all together with the side affect being the weapons are removed.
The "ini" method does not stop it all together. Catch 22
6pack is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 02-24-2007 , 18:45   Re: Dont remove weapons
Reply With Quote #5

That might be a bug. It's because csdm module is still loaded, even if there is no plugin calling it (because all of them are disabled) and even if csdm_amxx is not called from modules.ini. I need some explanation from BAIL how to solve that.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
6pack
BANNED
Join Date: Mar 2006
Location: Cedarhurst, Long Island
Old 02-24-2007 , 19:01   Re: Dont remove weapons
Reply With Quote #6

Quote:
Originally Posted by KWo View Post
That might be a bug. It's because csdm module is still loaded, even if there is no plugin calling it (because all of them are disabled) and even if csdm_amxx is not called from modules.ini. I need some explanation from BAIL how to solve that.
Its all cool.
You guys are pretty smart...why not change something/make a command/rewrite something which disables everything as far as CSDM is concerned. I am not going to sit here and tell you its easy to do because I am a noob when it comes to these things but this could be helpful. I only want this because I have many maps and all do not agree with the mod

Do what you can and thanks.
6pack is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 02-24-2007 , 19:13   Re: Dont remove weapons
Reply With Quote #7

plugins-cf_mapzilla.ini should be as You have it now, but in the same folder in the file cf_mapzilla.cfg write this line (instead "csdm_disabled"):
meta force_unload CSDM2

That stuff at least works perfectly for me. I expect Bail doesn't like this method, but I have no other choice right now to do it better.

[EDIT]
That stuff doesn't work correctly, because if You once remove some AMX X module by metamod command, it is not loaded anymore (for the next map for example). I need to find some method to unload the module through amx x functions.
[/EDIT]
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.

Last edited by KWo; 02-24-2007 at 19:25.
KWo 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 00:04.


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