Browse Source

improved debug output etc

master
poikilos 8 years ago
committed by Jacob Gustafson
parent
commit
f843aeee00
  1. 1
      singleimage.py
  2. 11
      u_skin_adder.py
  3. 6
      web/phpinfo.php
  4. 2
      web/viewchunkymap.php

1
singleimage.py

@ -114,6 +114,7 @@ class ChunkymapOfflineRenderer:
dest_png_path = os.path.join(www_chunkymapdata_world_path, png_name)
if os.path.isfile(dest_png_path):
os.remove(dest_png_path)
print("Moving temp image from "+tmp_png_path+" to "+dest_png_path+"...")
os.rename(tmp_png_path, dest_png_path)
final_png_path = dest_png_path
print("Png image saved to:")

11
u_skin_adder.py

@ -2,7 +2,17 @@ import os
#from PIL import Image, ImageDraw, ImageFont, ImageColor
from expertmm import *
from minetestinfo import * #paths and FLAG_EMPTY_HEXCOLOR = "#010000"
try:
from PIL import Image, ImageDraw, ImageFont, ImageColor
except:
print("You must first install Pillow's PIL."
print("On Windows:")
print("Right-click windows menu, 'Command Prompt (Admin)' then:")
print("pip install Pillow")
print("")
print("On *nix-like systems:")
print("sudo pip install Pillow")
exit()
import shutil
u_skins_mod_path = os.path.join(profile_path,"Desktop\\Backup\\fcalocal\\usr\\local\\share\\minetest\\games\\fca_game_a\\mods\\u_skins\\u_skins")
@ -349,3 +359,4 @@ def load_new_skins_from_folder(in_path):
#raw_input("Press return to exit.")
#load_new_skins_from_folder("C:\\Users\\Owner\\ownCloud\\Pictures\\Projects\\Characters - Mine - In-Game\\Minetest Player Skins")
#add_skin_if_new("z:\\yelby.png")

6
web/phpinfo.php

@ -0,0 +1,6 @@
<?php
// Show all information, defaults to INFO_ALL
// phpinfo();
?>

2
web/viewchunkymap.php

@ -8,7 +8,7 @@ $html4_mode_enable=false; //if true, does not echo canvas nor client-side script
if ($html4_mode_enable===true) {
echo '<meta http-equiv="refresh" content="45">';
}
echo '
echo ' <!-- -->
</head>
<body style="font-family:calibri,Droid Sans,Apple SD Gothic Neo,sans; font-size: 120%; width:100%; height:100%; margin:0; padding:0" topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
';

Loading…
Cancel
Save