From b1122c5cda330df747429a184567a46f6780a68a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 18 May 2018 19:51:37 +0200 Subject: [PATCH] Fix bad side chest conversion --- tools/Texture_Converter.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/Texture_Converter.py b/tools/Texture_Converter.py index 344bfd7878..437353d48f 100755 --- a/tools/Texture_Converter.py +++ b/tools/Texture_Converter.py @@ -207,8 +207,9 @@ def convert_textures(): chest_file = c[0] if os.path.isfile(chest_file): PPX = (PXSIZE/16) - CHPX= (PPX * 14) # Chests in MC are 2/16 smaller! - LIDPX =(PPX * 5) # Lid height + CHPX = (PPX * 14) # Chest width + LIDPX = (PPX * 5) # Lid height + LIDLOW = (PPX * 10) # Lower lid section height LOCKW = (PPX * 6) # Lock width LOCKH = (PPX * 5) # Lock height @@ -228,7 +229,7 @@ def convert_textures(): # Front os.system("convert " + chest_file + " \ \( -clone 0 -crop "+str(CHPX)+"x"+str(LIDPX)+"+"+str(CHPX)+"+"+str(CHPX)+" \) -geometry +0+0 -composite \ -\( -clone 0 -crop "+str(CHPX)+"x"+str(CHPX-LIDPX)+"+"+str(CHPX)+"+"+str(CHPX*2+LIDPX)+" \) -geometry +0+"+str(LIDPX)+" -composite \ +\( -clone 0 -crop "+str(CHPX)+"x"+str(LIDLOW)+"+"+str(CHPX)+"+"+str(CHPX*2+LIDPX)+" \) -geometry +0+"+str(LIDPX-PPX)+" -composite \ -extent "+str(CHPX)+"x"+str(CHPX)+" "+front) # TODO: Add lock @@ -237,7 +238,7 @@ def convert_textures(): for f in files: os.system("convert " + chest_file + " \ \( -clone 0 -crop "+str(CHPX)+"x"+str(LIDPX)+"+"+str(0)+"+"+str(CHPX)+" \) -geometry +0+0 -composite \ -\( -clone 0 -crop "+str(CHPX)+"x"+str(CHPX-LIDPX)+"+"+str(0)+"+"+str(CHPX*2+LIDPX)+" \) -geometry +0+"+str(LIDPX)+" -composite \ +\( -clone 0 -crop "+str(CHPX)+"x"+str(LIDLOW)+"+"+str(0)+"+"+str(CHPX*2+LIDPX)+" \) -geometry +0+"+str(LIDPX-PPX)+" -composite \ -extent "+str(CHPX)+"x"+str(CHPX)+" "+f) # Generate railway crossings and t-junctions. Note: They may look strange.