summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-24 06:05:41 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-24 06:05:41 +0200
commit0ea029f88dadfb61b53d45fc0183641250c7d6f7 (patch)
tree6728b0b265e28cdb8ffa12c8e649c9126f91c2c4 /testxml
parent7b319f04b37474075b3a61214043251b46d5cc6b (diff)
downloadevol-tools-0ea029f88dadfb61b53d45fc0183641250c7d6f7.tar.gz
evol-tools-0ea029f88dadfb61b53d45fc0183641250c7d6f7.tar.bz2
evol-tools-0ea029f88dadfb61b53d45fc0183641250c7d6f7.tar.xz
evol-tools-0ea029f88dadfb61b53d45fc0183641250c7d6f7.zip
textxml: Add minimal map size checks.
Diffstat (limited to 'testxml')
-rwxr-xr-xtestxml/testxml.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 899d5f4..4ac55d1 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -910,6 +910,11 @@ def testMap(file, path):
if mapWidth == 0 or mapHeight == 0 or mapTileWidth == 0 or mapTileHeight == 0:
return
+ if mapWidth < 16:
+ showMsgFile(file, "map width to small", False)
+ if mapHeight < 16:
+ showMsgFile(file, "map height to small", False)
+
tilesMap = dict()
for tileset in dom.getElementsByTagName("tileset"):
@@ -1207,8 +1212,8 @@ detectClientData([".", "..", parentDir])
print "Checking xml file syntax"
enumDirs(parentDir)
loadPaths()
-#testItems("/items.xml", iconsDir)
-#testMonsters("/monsters.xml")
-#testNpcs("/npcs.xml")
+testItems("/items.xml", iconsDir)
+testMonsters("/monsters.xml")
+testNpcs("/npcs.xml")
testMaps(mapsDir)
showFooter()