Browse Source

corrected type conversion

and fixed unecessary cannot stat warning in installer
master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
9226a48861
  1. 2
      chunkymap-regen.py
  2. 6
      install-chunkymap-on-ubuntu.sh

2
chunkymap-regen.py

@ -614,7 +614,7 @@ class MTChunks:
z_max = z * self.chunk_size + self.chunk_size - 1
#print ("generating x = " + str(x_min) + " to " + str(x_max) + " , z = " + str(z_min) + " to " + str(z_max))
geometry_value_string = str(x_min)+":"+str(z_min)+"+"+str(int(x_max)-str(int(x_min))+"+"+str(int(z_max)-int(z_min)))
geometry_value_string = str(x_min)+":"+str(z_min)+"+"+str(int(x_max)-int(x_min))+"+"+str(int(z_max)-int(z_min)))
cmd_suffix = ""
cmd_suffix = " > \""+genresult_path+"\""
output_type_string = "minetestmapper-numpy"

6
install-chunkymap-on-ubuntu.sh

@ -1,10 +1,12 @@
#!/bin/sh
cd $HOME
MT_MY_WEBSITE_PATH=/var/www/html/minetest
rm -Rf $HOME/minetest-stuff/minetest-chunkymap
if [ -d "$HOME/minetest-stuff/minetest-chunkymap" ]; then
rm -Rf $HOME/minetest-stuff/minetest-chunkymap
fi
CHUNKYMAP_INSTALLER_PATH=$HOME/Downloads/minetest-chunkymap
if [ ! -d "$HOME/Downloads" ]; then
mkdir "$HOME/Downloads"
mkdir "$HOME/Downloads"
fi
MINETEST_UTIL=$HOME/minetest/util

Loading…
Cancel
Save