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. 2
      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 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)) #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 = ""
cmd_suffix = " > \""+genresult_path+"\"" cmd_suffix = " > \""+genresult_path+"\""
output_type_string = "minetestmapper-numpy" output_type_string = "minetestmapper-numpy"

2
install-chunkymap-on-ubuntu.sh

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

Loading…
Cancel
Save