Commit Graph

14 Commits (13c0adaa4287e04fe87b4b88d430217ccf4b8f5e)

Author SHA1 Message Date
anmaster a8cab01c4b Minor code cleanup in some python modules (removing unused variables, cleaning up some if tests, removing import statements for some modules that were then never used.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12197 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-10-14 16:13:29 +00:00
anmaster ae645b58e3 Make /python/CFDataFile.py work on both Python 2.x and Python 3.x with no need to run 2to3 for the python 3.x users.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11459 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-02-12 08:11:48 +00:00
anmaster f312f10445 Replace deprecated string.split() and string.join() in /python/CFDataFile.py. Also open in text mode instead of binary mode to make the script work under python 3.x
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11451 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-02-11 21:39:10 +00:00
anmaster 364f9f2d3c Try to be a bit more future compatible with Python 3
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11329 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-02-03 19:24:16 +00:00
anmaster a1b802da6d Avoid features in the python scripts that are removed from python 3.0. This is confirmed to still work on at least python 2.5 and as far as I understand the docs also python 2.4
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11284 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-01-30 01:32:19 +00:00
anmaster fdbcb1b6ff Run whitespace cleanup script in maps/python.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@11283 282e977c-c81d-0410-88c4-b93c2d0d6712
2009-01-30 01:22:22 +00:00
tchize d0f032623a Modified all print of script to calls to Crossfire.Log(Crossfire.Log(Debug|Error|Info|Monster),message)
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@7496 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-11-08 23:36:22 +00:00
ryo_saeba 9cc6be1815 Windows requires binary mode to work correctly (newline issues).
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@5606 282e977c-c81d-0410-88c4-b93c2d0d6712
2007-02-24 11:08:57 +00:00
ryo_saeba 2e41e003cc Force binary mode to avoid newline madness
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@4083 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-12-04 11:20:34 +00:00
gros 3b77421609 Update of the maps for CFPython version 2.0.
Update of the IPO-related scripts.
Gros - 18/10/2005


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3899 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-10-18 18:13:28 +00:00
ryo_saeba d1d8b472f0 Applied patch #1145089 (cavesomething) to add region support
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3142 282e977c-c81d-0410-88c4-b93c2d0d6712
2005-03-15 21:44:56 +00:00
temitchell 8eff925ffa - updates to datafile for guild scripts
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3002 282e977c-c81d-0410-88c4-b93c2d0d6712
2004-12-06 04:45:17 +00:00
temitchell d185c2a08a - fix tiny bug where player logging in has no record gets a record
made.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2903 282e977c-c81d-0410-88c4-b93c2d0d6712
2004-09-01 03:08:04 +00:00
temitchell 6a517e7fe6 - add new CF module - classes CFDataFile and CFData
- replace crossfirelog shelf with plain text datafile (less efficient
but more accessable) - add logging for kick and muzzle
- add more dm commands for seen (chicken oracle, guy in goths...)
- make sure you make a datafiles dir in var/crossfire or have make
install do it for you.


git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@2902 282e977c-c81d-0410-88c4-b93c2d0d6712
2004-09-01 02:03:26 +00:00