Difference between revisions of "Module General Faq"
m (added 'commands not working' q and a) |
m |
||
(One intermediate revision by one other user 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? == | ||
− | + | '''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? == | == I added a custom module, why aren't the commands working? == |
Latest revision as of 08: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.