summaryrefslogtreecommitdiff
path: root/hercules/convert_mapcache_to_tmx.py
diff options
context:
space:
mode:
authorjak1 <jak1@themanaworld.org>2022-06-19 09:34:16 +0200
committerjak1 <jak1@themanaworld.org>2022-06-19 09:34:16 +0200
commit38fcd221d8fe03208abdafe0f01a6e54a601b71a (patch)
tree6a1ba5a5943b9dc0617e0046b39b82ba2284d53e /hercules/convert_mapcache_to_tmx.py
parent9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff)
downloadmessworld-tools-master.tar.gz
messworld-tools-master.tar.bz2
messworld-tools-master.tar.xz
messworld-tools-master.zip
updated all leftover scripts to py3HEADmaster
Diffstat (limited to 'hercules/convert_mapcache_to_tmx.py')
-rwxr-xr-xhercules/convert_mapcache_to_tmx.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/convert_mapcache_to_tmx.py b/hercules/convert_mapcache_to_tmx.py
index e6e6bc9..15fc499 100755
--- a/hercules/convert_mapcache_to_tmx.py
+++ b/hercules/convert_mapcache_to_tmx.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf8 -*-
#
# Copyright (C) 2014 Evol Online
@@ -13,10 +13,10 @@ def runFunction(path):
with open(path, "rb") as f:
size = readInt32(f)
if os.path.getsize(path) != size:
- print "Map cache corrupted, wrong file size."
+ print("Map cache corrupted, wrong file size.")
exit(1)
mapsCount = readInt16(f)
- print "Maps count: " + str(mapsCount)
+ print("Maps count: " + str(mapsCount))
readInt16(f) # padding
covertToTmx(f, mapsCount)