Difference between revisions of "Module General Faq"
m (added 'commands not working' q and a) |
m (make text clearer) |
||
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 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. | ||
== I added a custom module, why aren't the commands working? == | == I added a custom module, why aren't the commands working? == |
Revision as of 18:23, 16 January 2005
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 use ?insmod <py> modulename or <py> modulename in modules.conf. 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.