diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-07 17:35:54 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-07 17:35:54 -0300 |
commit | 85d74e6ec11e712768f4660f9f8ef153a1da769f (patch) | |
tree | 7441c02d4e3454a4b8fd9a55bfa85823f7660474 /client | |
parent | af5e82551a5c31334992600965539474ffa39fb7 (diff) | |
download | tools-85d74e6ec11e712768f4660f9f8ef153a1da769f.tar.gz tools-85d74e6ec11e712768f4660f9f8ef153a1da769f.tar.bz2 tools-85d74e6ec11e712768f4660f9f8ef153a1da769f.tar.xz tools-85d74e6ec11e712768f4660f9f8ef153a1da769f.zip |
Bugfix
Diffstat (limited to 'client')
-rwxr-xr-x | client/minimap-dyecmd.py | 18 | ||||
-rwxr-xr-x | client/minimap-dyecmd.sh | 0 | ||||
-rw-r--r-- | client/minimap-override/001-1.png | bin | 0 -> 38688 bytes | |||
-rw-r--r-- | client/minimap-override/001-6.png | bin | 0 -> 6851 bytes | |||
-rw-r--r-- | client/minimap-override/011-3.png | bin | 0 -> 12659 bytes | |||
-rwxr-xr-x | client/minimap-render.py | 5 |
6 files changed, 20 insertions, 3 deletions
diff --git a/client/minimap-dyecmd.py b/client/minimap-dyecmd.py new file mode 100755 index 0000000..9a396eb --- /dev/null +++ b/client/minimap-dyecmd.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python +#-*- coding:utf-8 -*- + +import os +f=open("minimap-dyecmd.sh", "w"); +CLIENT_DATA_ROOT="../../client-data" + +map_names = sorted([os.path.splitext(p)[0] for p in os.listdir(os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps'))]) + +f.write('cd '+os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps')+'\n') +for c in map_names: + if os.path.exists(os.path.join(CLIENT_DATA_ROOT, u'graphics', u'minimaps', c+u'.png')): + i=c+u'.png' + f.write("dyecmd %s tmp ; mv tmp %s\n" % (i, i)) + f.write("echo \"Converted "+i+" successfully.\"\n") + +f.write("git checkout -- minimap-dyecmd.sh") +f.close() diff --git a/client/minimap-dyecmd.sh b/client/minimap-dyecmd.sh new file mode 100755 index 0000000..e69de29 --- /dev/null +++ b/client/minimap-dyecmd.sh diff --git a/client/minimap-override/001-1.png b/client/minimap-override/001-1.png Binary files differnew file mode 100644 index 0000000..541dfe0 --- /dev/null +++ b/client/minimap-override/001-1.png diff --git a/client/minimap-override/001-6.png b/client/minimap-override/001-6.png Binary files differnew file mode 100644 index 0000000..dd43df3 --- /dev/null +++ b/client/minimap-override/001-6.png diff --git a/client/minimap-override/011-3.png b/client/minimap-override/011-3.png Binary files differnew file mode 100644 index 0000000..16adf1b --- /dev/null +++ b/client/minimap-override/011-3.png diff --git a/client/minimap-render.py b/client/minimap-render.py index 57e01d3..716e9e3 100755 --- a/client/minimap-render.py +++ b/client/minimap-render.py @@ -5,7 +5,6 @@ import sys import os import subprocess import tempfile -import re CLIENT_DATA_ROOT = os.path.realpath( os.path.join( @@ -66,7 +65,7 @@ class MinimapRenderer(object): mrf, map_raster = tempfile.mkstemp(suffix='.png') tmxrasterizer_cmd = [ platform_programs.get('tmxrasterizer'), - '--tilesize', str(self.tilesize), '--hide-layer', 'Collision', '--ignore-visibility', + '--tilesize', str(self.tilesize), '--hide-layer', 'Collision','--hide-layer', 'Height','--hide-layer', 'Collisions','--hide-layer', 'collision','--hide-layer', 'height','--hide-layer', 'Heights', '--hide-layer', 'height', '--ignore-visibility', ] if self.useAntiAliasing: tmxrasterizer_cmd.append('--anti-aliasing') @@ -160,7 +159,7 @@ def main(): # Render tiles at 1 pixel size map_renderer = MinimapRenderer(map_name, 1, True) status += map_renderer.render() - return status + return 0 if __name__ == '__main__': sys.exit(main()) |