Difference between revisions of "Module General Faq"

From ASSS Wiki
Jump to: navigation, search
m (added to Module and FAQ category)
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== I want to put in more modules, how do I do this? ==
 
== I want to put in more modules, how do I do this? ==
  
When you want to add modules to your zone, go into your conf\modules.conf and at the bottom of the list add filename:modulename, ex: events:elim. Or you can dynamically load the module in-game by using ?insmod filename:modulename. You can use ?help insmod for more info. But beware, if you are using python modules you must use '?insmod <py> bountyrabbit' or '<py> bountyrabbit' in modules.conf
+
'''For C modules:'''
 +
 
 +
To add modules to a zone, to be loaded on startup, edit your <tt>conf/modules.conf</tt> file, and add a new line containing <tt>filename:modulename</tt>. The <tt>filename</tt> part must be the name of an <tt>.so</tt> or <tt>.dll</tt> file in the zone's <tt>bin</tt> directory.
 +
 
 +
Or you can dynamically load the module in-game by using <tt>?insmod filename:modulename</tt>. You can use ?help insmod for more info.
 +
 
 +
'''For Python modules:'''
 +
 
 +
Mostly the same thing, except you must append the line <tt><py> modulename</tt> in modules.conf or type <tt>?insmod <py> modulename</tt> in-game. The <tt>modulename</tt> should be the name of a <tt>.py</tt> file in your zone's <tt>bin</tt> directory.
 +
 
 +
== I added a custom module, why aren't the commands working? ==
 +
You can add new commands to the group files found in conf/groupdef.dir. Prefix cmd_ to the command to allow users to send the command publicly and privcmd_ for team and private targets.
  
 
[[Category: Module]]
 
[[Category: Module]]
 
[[Category: FAQ]]
 
[[Category: FAQ]]

Latest revision as of 09:59, 20 January 2011

I want to put in more modules, how do I do this?

For C modules:

To add modules to a zone, to be loaded on startup, edit your conf/modules.conf file, and add a new line containing filename:modulename. The filename part must be the name of an .so or .dll file in the zone's bin directory.

Or you can dynamically load the module in-game by using ?insmod filename:modulename. You can use ?help insmod for more info.

For Python modules:

Mostly the same thing, except you must append the line <py> modulename in modules.conf or type ?insmod <py> modulename in-game. The modulename should be the name of a .py file in your zone's bin directory.

I added a custom module, why aren't the commands working?

You can add new commands to the group files found in conf/groupdef.dir. Prefix cmd_ to the command to allow users to send the command publicly and privcmd_ for team and private targets.