From b25ae994bf2823a99531b0f7ab22c5e9d6079089 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Mon, 29 Feb 2016 13:35:43 -0500 Subject: [PATCH] working on call to minetest mapper --- chunkymap-regen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chunkymap-regen.py b/chunkymap-regen.py index c644008..c2b98f4 100644 --- a/chunkymap-regen.py +++ b/chunkymap-regen.py @@ -610,7 +610,7 @@ class MTChunks: #where geometry option is like --geometry x:y+w+h output_type_string = "minetest-mapper" #NOTE: minetest-mapper is part of the minetest-data package, which can be installed alongside the git version of minetestserver - cmd_string = "minetest-mapper --input \""+self.world_path+"\" --draworigin --geometry "+str(x_min)+":"+str(z_min)+"+"+str(int(x_max)-int(x_min))+"+"+str(int(z_max)-int(z_min))+" --output \""+tmp_png_path+"\""+cmd_suffix + cmd_string = "/usr/games/minetest-mapper --input \""+self.world_path+"\" --draworigin --geometry "+str(x_min)+":"+str(z_min)+"+"+str(int(x_max)-int(x_min))+"+"+str(int(z_max)-int(z_min))+" --output \""+tmp_png_path+"\""+cmd_suffix dest_png_path = self.get_chunk_image_path(chunk_luid) #is_empty_chunk = is_chunk_yaml_marked(chunk_luid) and is_chunk_yaml_marked_empty(chunk_luid) print ("Running generator for: "+str((x,z)))