Difference between revisions of "Module General Faq"

From ASSS Wiki
Jump to: navigation, search
m (make text clearer)
m
 
Line 9: Line 9:
 
'''For Python modules:'''
 
'''For Python modules:'''
  
Mostly the same thing, except you must use <tt>?insmod <py> modulename</tt> or <tt><py> modulename</tt> in modules.conf. The <tt>modulename</tt> should be the name of a <tt>.py</tt> file in your zone's <tt>bin</tt> directory.
+
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? ==
 
== I added a custom module, why aren't the commands working? ==

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.