Browse Source

working on official minetest mapper call

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
7e19a9b9b7
  1. 2
      chunkymap-regen.py
  2. 2
      install-chunkymap-on-ubuntu.sh

2
chunkymap-regen.py

@ -610,7 +610,7 @@ class MTChunks:
#where geometry option is like --geometry x:y+w+h #where geometry option is like --geometry x:y+w+h
output_type_string = "minetest-mapper" 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 #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_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
dest_png_path = self.get_chunk_image_path(chunk_luid) 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) #is_empty_chunk = is_chunk_yaml_marked(chunk_luid) and is_chunk_yaml_marked_empty(chunk_luid)
print ("Running generator for: "+str((x,z))) print ("Running generator for: "+str((x,z)))

2
install-chunkymap-on-ubuntu.sh

@ -41,7 +41,7 @@ cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/chunkymap-players-cronjob" "$CHUNKYMAP_D
cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/set-minutely-players-crontab-job.sh" "$CHUNKYMAP_DEST/unused/" cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/set-minutely-players-crontab-job.sh" "$CHUNKYMAP_DEST/unused/"
cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/set-minutely-crontab-job.sh" "$CHUNKYMAP_DEST/unused/" cp -f "$CHUNKYMAP_INSTALLER_PATH/unused/set-minutely-crontab-job.sh" "$CHUNKYMAP_DEST/unused/"
cp -f "$CHUNKYMAP_INSTALLER_PATH/chunkymap-regen-loop.sh" "$CHUNKYMAP_DEST/" cp -f "$CHUNKYMAP_INSTALLER_PATH/chunkymap-regen-loop.sh" "$CHUNKYMAP_DEST/"
cp --no-clobber "$CHUNKYMAP_INSTALLER_PATH/chunkymap-signals*" "$CHUNKYMAP_DEST/" cp --no-clobber $CHUNKYMAP_INSTALLER_PATH/chunkymap-signals* "$CHUNKYMAP_DEST/"
cd "$CHUNKYMAP_INSTALLER_PATH" cd "$CHUNKYMAP_INSTALLER_PATH"
python replace-with-current-user.py # the py file only manipulates the minetest/util directory python replace-with-current-user.py # the py file only manipulates the minetest/util directory
# so chmod those files AFTER running the py above (since it rewrites them and therefore removes x attribute if present): # so chmod those files AFTER running the py above (since it rewrites them and therefore removes x attribute if present):

Loading…
Cancel
Save