* Fix tile_texpage2mipmap_tileset, it now makes imagemagick output zero-padded filenames up to 2 digits (like Warzone expects)

* Bump version numbers of tile_texpage2mipmap_tileset to 1.2

Patch by Kevin Gillette <kage>: http://forums.wz2100.net/index.php?topic=1010.msg9137#msg9137

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2542 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-10-11 22:47:13 +00:00
parent 7792f1b211
commit 173f093901
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
Splits and scales tertile texpages into mipmaps.
version "1.0" author "Kevin Gillette"
version "1.2" author "Kevin Gillette"
Finds and filters files based on the 'extension' configuration setting, and
of those, groups where available to allow mipmap output to be created from

View File

@ -31,11 +31,11 @@ per group.
"""
__version__ = "1.1"
__version__ = "1.2"
__author__ = "Kevin Gillette"
# --------------------------------------------------------------------------
# texpage_convert.py v1.0 by Kevin Gillette (kage)
# texpage_convert.py v1.2 by Kevin Gillette (kage)
# --------------------------------------------------------------------------
# ***** BEGIN GPL LICENSE BLOCK *****
#
@ -304,7 +304,7 @@ def process():
print "splitting tiles from", f, "into", dirpath, "at", tilesize, "resolution"
args = [convert_path, '-depth', '8']
args.extend(['-crop', '%ix%i' % (tilesize, tilesize)])
args.extend([fpath, os.path.join(dirpath, 'tile.png')])
args.extend([fpath, os.path.join(dirpath, 'tile-%02d.png')])
p = Popen(args, stderr=PIPE, shell=use_shell)
o = p.communicate()
if p.returncode: