@@ -493,15 +493,15 @@ def ReadTile(xpos, ypos, sourcebuf): # xpos and ypos aremultiples of 32
493
493
sourceoffset += 524288 / (1 << (i * 2 ))
494
494
return outtile
495
495
496
- minimapfilename = os .path .join ('temp' , 'mini.tiff ' )
496
+ minimapfilename = os .path .join ('temp' , 'mini.png ' )
497
497
print 'Creating minimap' , minimapfilename ,'using the command:' ,
498
498
if myargs .minimap :
499
499
minimapfilename = myargs .minimap
500
500
else :
501
501
mini = intex .resize ((1024 , 1024 ), Image .ANTIALIAS )
502
502
mini .save (minimapfilename )
503
503
if myargs .linux :
504
- cmd = 'convert -format dds -define dds:mipmaps=9 -define dds:compression=dxt1 %s temp/mini.dds' % (
504
+ cmd = 'convert -format dds -define dds:mipmaps=8 -define dds:compression=dxt1 %s temp/mini.dds' % (
505
505
minimapfilename )
506
506
print cmd
507
507
os .system (cmd )
@@ -791,7 +791,8 @@ def __init__(self, filename):
791
791
tilefilename = unpack_null_terminated_string (self .smffile , tileoffset )
792
792
tileoffset += len (tilefilename ) + 1 # cause of null terminator
793
793
self .tilefiles .append (
794
- [tilefilename , numtilesinfile , open (filename .rpartition ('\\ ' )[0 ] + '\\ ' + tilefilename , 'rb' ).read ()])
794
+ #[tilefilename, numtilesinfile, open(filename.rpartition('\\')[0] + '\\' + tilefilename, 'rb').read()])
795
+ [tilefilename , numtilesinfile , open (tilefilename , 'rb' ).read ()])
795
796
print tilefilename , 'has' , numtilesinfile , 'tiles'
796
797
self .tileindices = struct .unpack_from ('< %ii' % ((self .mapx / 4 ) * (self .mapy / 4 )), self .smffile , tileoffset )
797
798
0 commit comments