[Crossfire-wiki] [Crossfire DokuWiki] page changed: cfpython

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Wed Jan 3 08:31:14 CST 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/01/03 08:31
User        : ryo
Edit Summary: typo

@@ -2,8 +2,9 @@
  
  The latest version, 2.0, is a major rewrite which introduces Python objects to represent maps, Crossfire objects and players. The hooking system also changed.
  
  Old plugin's reference can be found on [[plugin_python]].
+ 
  
  ====== General information ======
  
  The plugin has access to all built-in functions of Python, and its regular libraries. Python version being used depends on the platform the server was built, but should be 2.3 or higher. FIXME {is that always true?}
@@ -17,9 +18,9 @@
  Calling Crossfire functions with invalid arguments will result in a Python exception being raised. A function failure will also result in an exception.
  
  Scripts will have the same access rights as the server itself. It may be able to write to some directories, but not others.
  
- Data should be persisted in the ''PlayerDirectory'' (for specific player information) or ''DataDirectory'' (for reglar information), where server normally has write access.
+ Data should be persisted in the ''PlayerDirectory'' (for specific player information) or ''DataDirectory'' (for regular information), where server normally has write access.
  
  ===== How do I hook a script to an object? =====
  
  Python plugin is a [[server plugin]], thus you need to insert in this object one of the //event_xxx// archetype (see ''arch/system'' directory). The fields to fill are:


IP-Address  : 62.23.167.225
Old Revision: http://wiki.metalforge.net/doku.php/cfpython?rev=1167822308
New Revision: http://wiki.metalforge.net/doku.php/cfpython

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list