Author: esr
Date: Tue Apr 24 00:21:25 2007
New Revision: 17018

URL: http://svn.gna.org/viewcvs/wesnoth?rev=17018&view=rev
Log:
upconvert seems to do the work of mapconv.py now, so I'm deleting this.
All future logic for converting WML or maps between versions should go in 
upconvert rather than a frestanding utility.

Removed:
    trunk/utils/mapconv.py

Removed: trunk/utils/mapconv.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/utils/mapconv.py?rev=17017&view=auto
==============================================================================
--- trunk/utils/mapconv.py (original)
+++ trunk/utils/mapconv.py (removed)
@@ -1,77 +1,0 @@
-#!/usr/bin/python
-
-import sys
-
-replacements = {
-    "Bww|" : "Ww^Bw|",
-    "Bww/" : "Ww^Bw/",
-    "Bww\\" : "Ww^Bw\\",
-    "Bwo|" : "Wo^Bw|",
-    "Bwo/" : "Wo^Bw/",
-    "Bwo\\" : "Wo^Bw\\",
-    "Bss|" : "Ss^Bw|",
-    "Bss/" : "Ss^Bw/",
-    "Bss\\" : "Ss^Bw\\",
-    "Dc" : "Dd^Dc",
-    "Dr" : "Dd^Dr",
-    "Do" : "Dd^Do",
-    "Fa" : "Aa^Fpa",
-    "Fet" : "Gg^Fet",
-    "Ff" : "Gs^Fp",
-    "Ft" : "Gs^Ft",
-    "Rfvs" : "Re^Gvs",
-    "Uf" : "Uu^Uf",
-    "Uui" : "Uu^Ii",
-    "Uhi" : "Uh^Ii",
-    "Vda" : "Dd^Vda",
-    "Vdt" : "Dd^Vdt",
-    "Vea" : "Aa^Vea",
-    "Veg" : "Gg^Ve",
-    "Vha" : "Aa^Vha",
-    "Vhg" : "Gg^Vh",
-    "Vhh" : "Hh^Vhh",
-    "Vhha" : "Ha^Vhha",
-    "Vhm" : "Mm^Vhh",
-    "Vht" : "Gs^Vht",
-    "Vu" : "Uu^Vu",
-    "Vud" : "Uu^Vud",
-    "Vwm" : "Ww^Vm",
-    "Vs" : "Ss^Vhs",
-    "Vsm" : "Ss^Vm",
-    "Xm" : "Mm^Xm"
-    }
-
-f = open(sys.argv[1], 'r')
-
-
-map = []
-for line in f:
-    if len(line.strip()) == 0:
-        continue
-    
-    strings = line.split(",");
-    for i, string in enumerate(strings):
-        if replacements.has_key(string.strip()):
-            strings[i] = replacements[string.strip()]
-        else:
-            strings[i] = string.strip()
-    map += [strings]
-
-f.close()
-
-
-f = open(sys.argv[1], 'w')
-
-for row in map:
-    firstcol = True;
-    for col in row:
-        if firstcol:
-           firstcol = False
-        else:
-            f.write(", ")
-        f.write(col.ljust(12))
-    f.write("\n")
-
-f.write("\n")
-
-f.close()


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to