version 1.1 | | version 1.2 |
---|
| | |
its keyword. For the Python plugin, the standard load process thus gives: | | its keyword. For the Python plugin, the standard load process thus gives: |
| | |
Initializing plugins : | | Initializing plugins : |
-> Loading plugin : plugin_python.so.0.1 | | -> Loading plugin : plugin_python.so |
Plugin CFPython Plugin 0.1 loaded under the name of Python | | Plugin CFPython Plugin 0.7 (Koursk) loaded under the name of Python |
Done | | Done |
| | |
When a plugin has been loaded, it can request to be warned whenever a global | | When a plugin has been loaded, it can request to be warned whenever a global |
| | |
be warned whenever the global event Nr. 13 ('New player born') occurs. A | | be warned whenever the global event Nr. 13 ('New player born') occurs. A |
complete list of events is available in the include/plugin.h file. | | complete list of events is available in the include/plugin.h file. |
| | |
Specific notes related to the Python Plugin. | | Specific notes related to the Python plugin. |
-------------------------------------------- | | -------------------------------------------- |
The Python plugin supports all global events. The constant PYTHON_DEBUG | | The Python plugin supports all global events. The constant PYTHON_DEBUG |
defined at the start of the plugin_python.c file increases the verbosity of | | defined at the start of the plugin_python.c file increases the verbosity of |
the plugin. Although it should work with Python 1.x, I strongly suggest using | | the plugin. |
a 2.x version instead. | | |
| | |
Global event scripts go into SHARE/maps/python, and are named python_xxx.py, | | Global event scripts go into SHARE/maps/python/events, and are named |
where xxx is the name of the global event to intercept. If the file doesn't | | python_xxx.py, where xxx is the name of the global event to intercept. If the |
exist, nothing will happen. | | file doesn't exist, nothing will happen. |
| | |
Some problems have already been reported about the autodetection of the Python | | Some problems have already been reported about the autodetection of the Python |
libraries. Don't forget that you need the development files of Python (it | | libraries. Don't forget that you need the development files of Python (it |
| | |
And then build the plugin after the server. Although I do not recommend this | | And then build the plugin after the server. Although I do not recommend this |
technique, it may help sometimes. | | technique, it may help sometimes. |
| | |
The plugin compiled under Win32 systems last year (using VC++ 6 compiler), but | | |
I don't know if it still works. Probably testing it on platforms other than | | |
Linux would also be a good thing - a lot of time passed since I last worked on | | |
it. | | |
| | |
Status of the logger and animator plugins isn't known. | | Status of the logger and animator plugins isn't known. |
| | |
| | |