summaryrefslogtreecommitdiff
path: root/hercules/extract_mapcache.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/extract_mapcache.py
parent9a351fb1abd5694bbbb7e38fcb64bb30b3fa74bb (diff)
downloadmessworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.gz
messworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.bz2
messworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.tar.xz
messworld-tools-38fcd221d8fe03208abdafe0f01a6e54a601b71a.zip
updated all leftover scripts to py3HEADmaster
Diffstat (limited to 'hercules/extract_mapcache.py')
-rwxr-xr-xhercules/extract_mapcache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hercules/extract_mapcache.py b/hercules/extract_mapcache.py
index 39a63c3..9facbeb 100755
--- a/hercules/extract_mapcache.py
+++ b/hercules/extract_mapcache.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python3
# -*- coding: utf8 -*-
#
# Copyright (C) 2014 Evol Online
@@ -14,10 +14,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
extractMaps(f, mapsCount)