summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjak1 <mike.wollmann@gmail.com>2020-04-06 16:44:53 +0200
committerjak1 <mike.wollmann@gmail.com>2020-04-06 16:44:53 +0200
commit752e30ec7b044aee96d8f8e15d32aba81b7dde0e (patch)
treeb2cb719d9c5f838fbaaf764b00fe4b43f24bf1dc
parent3404582353e918b191db4312bbf2f97788301c68 (diff)
downloadmanachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.tar.gz
manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.tar.bz2
manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.tar.xz
manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.zip
moved maps to db/
-rw-r--r--.gitignore2
-rwxr-xr-xdb/mapdb.zip (renamed from mapdb.zip)bin256414 -> 256414 bytes
-rwxr-xr-xdb/mapnames.txt (renamed from mapnames.txt)0
-rwxr-xr-xgui/tmxmap.py2
-rwxr-xr-xmapnames.py2
5 files changed, 3 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index ec06a8c..6610404 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
#configuration files
-manachat.ini
+config/manachat.ini
config/*.txt
#compiled python files
diff --git a/mapdb.zip b/db/mapdb.zip
index 0efdc80..0efdc80 100755
--- a/mapdb.zip
+++ b/db/mapdb.zip
Binary files differ
diff --git a/mapnames.txt b/db/mapnames.txt
index 03bc6a4..03bc6a4 100755
--- a/mapnames.txt
+++ b/db/mapnames.txt
diff --git a/gui/tmxmap.py b/gui/tmxmap.py
index 800868e..58ee490 100755
--- a/gui/tmxmap.py
+++ b/gui/tmxmap.py
@@ -82,7 +82,7 @@ class MapWidget(Image):
def load_map(self, name, *args):
if name not in self.maps:
Logger.info("Caching map %s", name)
- zf = zipfile.ZipFile('mapdb.zip', 'r')
+ zf = zipfile.ZipFile('db/mapdb.zip', 'r')
self.maps[name] = pickle.load(zf.open(name + '.pickle'))
zf.close()
# m = pytmx.TiledMap(filename=filename)
diff --git a/mapnames.py b/mapnames.py
index 5c01280..612908b 100755
--- a/mapnames.py
+++ b/mapnames.py
@@ -2,7 +2,7 @@
map_names = {}
-def read_map_names(file='mapnames.txt'):
+def read_map_names(file='db/mapnames.txt'):
with open(file) as f:
for l in f.readlines():
try: