diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-24 06:05:41 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-24 06:05:41 +0200 |
commit | 0ea029f88dadfb61b53d45fc0183641250c7d6f7 (patch) | |
tree | 6728b0b265e28cdb8ffa12c8e649c9126f91c2c4 /testxml | |
parent | 7b319f04b37474075b3a61214043251b46d5cc6b (diff) | |
download | evol-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-x | testxml/testxml.py | 11 |
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() |