From 05cc9fcd900a9d1cca6bcd7e4df5a449ebca23cb Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Tue, 8 Mar 2016 05:57:32 -0500 Subject: [PATCH] refactored folder layout added worlds folder, moved images to chunkymapdata/images and added compass-rose.png (not used yet) --- chunkymap-regen.py | 58 +++++++++++++----- etc/compass-rose.xcf | Bin 0 -> 15593 bytes web/chunkymap.php | 23 +++---- .../images/compass-rose.png | Bin 0 -> 2976 bytes .../images/start.png} | Bin .../images/target.png} | Bin .../images/target_start.png} | Bin .../images/zoom-in.png} | Bin .../images/zoom-in_disabled.png} | Bin .../images/zoom-out.png} | Bin .../images/zoom-out_disabled.png} | Bin .../markers/chunk_markers_x0z0.yml | 4 -- web/chunkymapdata_default/world/markers/0.yml | 4 ++ .../{ => world}/players/singleplayer.png | Bin 14 files changed, 57 insertions(+), 32 deletions(-) create mode 100644 etc/compass-rose.xcf create mode 100644 web/chunkymapdata_default/images/compass-rose.png rename web/{images/chunkymap_start.png => chunkymapdata_default/images/start.png} (100%) rename web/{images/chunkymap_target.png => chunkymapdata_default/images/target.png} (100%) rename web/{images/chunkymap_target_start.png => chunkymapdata_default/images/target_start.png} (100%) rename web/{images/chunkymap_zoom-in.png => chunkymapdata_default/images/zoom-in.png} (100%) rename web/{images/chunkymap_zoom-in_disabled.png => chunkymapdata_default/images/zoom-in_disabled.png} (100%) rename web/{images/chunkymap_zoom-out.png => chunkymapdata_default/images/zoom-out.png} (100%) rename web/{images/chunkymap_zoom-out_disabled.png => chunkymapdata_default/images/zoom-out_disabled.png} (100%) delete mode 100644 web/chunkymapdata_default/markers/chunk_markers_x0z0.yml create mode 100644 web/chunkymapdata_default/world/markers/0.yml rename web/chunkymapdata_default/{ => world}/players/singleplayer.png (100%) diff --git a/chunkymap-regen.py b/chunkymap-regen.py index 7b8dcf4..3ed764e 100644 --- a/chunkymap-regen.py +++ b/chunkymap-regen.py @@ -331,6 +331,7 @@ class MTChunk: class MTChunks: chunkymap_data_path = None + chunkymapdata_worlds_path = None is_save_output_ok = None minetestmapper_fast_sqlite_path = None minetestmapper_custom_path = None @@ -575,6 +576,7 @@ class MTChunks: sys.exit() self.chunkymap_data_path=os.path.join(self.config["www_minetest_path"],"chunkymapdata") + self.chunkymapdata_worlds_path=os.path.join(self.chunkymap_data_path, "worlds") print("Using chunkymap_data_path '"+self.chunkymap_data_path+"'") #if not os.path.isdir(self.chunkymap_data_path): # os.mkdir(self.chunkymap_data_path) @@ -586,8 +588,18 @@ class MTChunks: self.deny_http_access(self.chunkymap_data_path) print(" (created .htaccess)") + htaccess_path = os.path.join(self.chunkymapdata_worlds_path,".htaccess") + if not os.path.isdir(self.chunkymapdata_worlds_path): + os.makedirs(self.chunkymapdata_worlds_path) + print("Created '"+self.chunkymapdata_worlds_path+"'") + if not os.path.isfile(htaccess_path): + self.deny_http_access(self.chunkymapdata_worlds_path) + print(" (created .htaccess)") + + + self.world_name = os.path.basename(self.config["world_path"]) - self.chunkymap_thisworld_data_path = os.path.join(self.chunkymap_data_path, self.world_name) + self.chunkymap_thisworld_data_path = os.path.join(self.chunkymapdata_worlds_path, self.world_name) if not os.path.isdir(self.chunkymap_thisworld_data_path): os.makedirs(self.chunkymap_thisworld_data_path) print("Created '"+self.chunkymap_thisworld_data_path+"'") @@ -614,7 +626,7 @@ class MTChunks: #TODO: deny recursively under these folders? doesn't seem that important for security so maybe not (no player info is there) - self.install_website() + self.install_default_world_data() self.chunkymap_players_name = "players" self.chunkymap_players_path = os.path.join(self.chunkymap_thisworld_data_path, self.chunkymap_players_name) @@ -683,22 +695,34 @@ class MTChunks: if is_config_changed: self.save_config() - def install_website(self): - this_source_dir_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "web") - this_dest_dir_path = self.config["www_minetest_path"] + #def install_default_world_data(self): + #source_web_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "web") + #dest_web_chunkymapdata_world_path = self.chunkymap_thisworld_data_path + #dest_web_chunkymapdata_world_players_path = os.path.join(self.chunkymap_thisworld_data_path, "players") + #install_list.append(InstalledFile("singleplayer.png", source_chunkymapdata_players, dest_chunkymapdata_players)) + + + #formerly install_website + def install_default_world_data(self): + source_web_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "web") + source_web_chunkymapdata_path = os.path.join(source_web_path, "chunkymapdata_default") + source_web_chunkymapdata_world_path = os.path.join(source_web_chunkymapdata_path, "world") + source_web_chunkymapdata_images_path = os.path.join(source_web_chunkymapdata_path, "images") + dest_web_path = self.config["www_minetest_path"] + dest_web_chunkymapdata_path = os.path.join(self.config["www_minetest_path"],"chunkymapdata") + dest_web_chunkymapdata_images_path = os.path.join(dest_web_chunkymapdata_path,"images") install_list = list() - install_list.append(InstalledFile("browser.php",this_source_dir_path,this_dest_dir_path)) - install_list.append(InstalledFile("chunkymap.php",this_source_dir_path,this_dest_dir_path)) - install_list.append(InstalledFile("example.php",this_source_dir_path,this_dest_dir_path)) - source_web_images_path = os.path.join( os.path.join(os.path.dirname(os.path.abspath(self.minetestmapper_py_path)), "web"), "images") - dest_web_images_path = os.path.join( self.config["www_minetest_path"], "images") - install_list.append(InstalledFile("chunkymap_zoom-in.png", source_web_images_path, dest_web_images_path)) - install_list.append(InstalledFile("chunkymap_zoom-out.png", source_web_images_path, dest_web_images_path)) - install_list.append(InstalledFile("chunkymap_zoom-in_disabled.png", source_web_images_path, dest_web_images_path)) - install_list.append(InstalledFile("chunkymap_zoom-out_disabled.png", source_web_images_path, dest_web_images_path)) - install_list.append(InstalledFile("chunkymap_start.png", source_web_images_path, dest_web_images_path)) - source_chunkymapdata = os.path.join( os.path.join(os.path.dirname(os.path.abspath(self.minetestmapper_py_path)), "web"), "chunkymapdata_default") - source_chunkymapdata_players = os.path.join(source_chunkymapdata, "players") + install_list.append(InstalledFile("browser.php",source_web_path,dest_web_path)) + install_list.append(InstalledFile("chunkymap.php",source_web_path,dest_web_path)) + install_list.append(InstalledFile("example.php",source_web_path,dest_web_path)) + install_list.append(InstalledFile("zoom-in.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + install_list.append(InstalledFile("zoom-out.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + install_list.append(InstalledFile("zoom-in_disabled.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + install_list.append(InstalledFile("zoom-out_disabled.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + install_list.append(InstalledFile("start.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + install_list.append(InstalledFile("target_start.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + install_list.append(InstalledFile("compass-rose.png", source_web_chunkymapdata_images_path, dest_web_chunkymapdata_images_path)) + source_chunkymapdata_players = os.path.join(source_web_chunkymapdata_world_path, "players") dest_chunkymapdata_players = os.path.join(self.chunkymap_thisworld_data_path, "players") install_list.append(InstalledFile("singleplayer.png", source_chunkymapdata_players, dest_chunkymapdata_players)) for this_object in install_list: diff --git a/etc/compass-rose.xcf b/etc/compass-rose.xcf new file mode 100644 index 0000000000000000000000000000000000000000..c97c9dde5c089a22ba02fb5150e5cb1c4d584c58 GIT binary patch literal 15593 zcmeHOd3aP+mOt-hU&u;WjTB)KAuEX?ED1?O5W96|RMtc=WGzyuKoTT?k|0Y$5s3%Lj%LDO%cKh|7sn+X_`|Wy1GcUWmma?){ z8F?Vi%7m@fseEYwmIq>PJ9`%dxt@Nk>g49550Jq#Ri+;gx>uMm_F!{oVe}brL&0UrfD_*y#RDvqJ|sNk0yJtWZ~&U!^VAL#V&c+)qz&eut!N zsGOaCVGOXG_1(tLvlmU^*H+Ft_tyICsSEf`m9qZj;H7N#Qs)2rg%7g+I5kbhpDxJD z`j7XDfF*v;a?HhOR-%ler)Nu?D$$Ma1_KAfsQD~L=l%?URGA9uR>n!OT_&Z zg?UwYnKx>yN;HcWKm7OnBuo|6mgN-}#uZm+3*6EYO{=Whq$|`^mg}?y_XbWYD$Xz0 zl~-t{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lp*ARph)kl2{BghANZ$l{3-%dT{2G=*r z-OgxtyVzwxk4Wef4!uI5Ul5M=#JIGzKwAs6wLn`7w6#E63$(RBTMM+cKwAs6wLn`p z^|3%(_6JZ;IZr(<3T@SPpsm_2w1pm#&?g*vg+jj|95`}oYlgOFXlsVHW@u}M zwq|H+hPGyCYlgOFXlsVHZt7!(w#a*%q3sW#o^qagTol@>?Lb?#U1$qEBB4(>^a_Q3 zK{y7*+CGNQ7Mm|#>+QXEaq|@XHgZmB$71AcpMqb=Ul-Vfu8n$BF%ruuVZg!`?2ezMS{9VlEtw z=R)LgL@7szDfn3D*etC0<>j!VKIATnot)b#E^_XgSjf4B;u`0A#dyw*7rl4p21^dE zWl#%)+lM}b^n<>G^dEai57Fn_tbkC^9k!YY7%5$X_3z z)R1TLnEykj7vAu28fw#XA6MqO(*EQInV_6dCQSk5E7O%`hj3=l;^}RLIoZMFUc2gI ziK#jI5cvI&x^JrK%h)vbO<{iMdjhs9M_K(1)dlPNh>cJo0)r&Q4ZWw$zgPn zdDnOyvBE_aE2C@7>t(c)c{>^P_VE@nZ{c6(-Bxy}Hipt=Xsz$)ANo9mC2*i*NW0+! z=^ZwP-Q6RAAFh4lf-%CB;2N*Q+s3lS`}aKHo&`r;*s}BTON%SYH|Pua(NJq7^Z(i! z$ud90iHG|gC39u2Yp%Nf0ee)26VH9y{m{*u`y0;p{f2_3!_SgzDws!|9bv!_b}Rf1 zO94AG&xSkzVXCu^;US7(2OZ50I#MV+`=JaF&wOx2AfEN$fIvLs!R>%}wi|%@pZ1sN guf<(6+HkivW`GW3`!s`&Zf&F0;db?5_*v_J0ov4(r2qf` literal 0 HcmV?d00001 diff --git a/web/chunkymap.php b/web/chunkymap.php index 6969dbf..a5f2da5 100644 --- a/web/chunkymap.php +++ b/web/chunkymap.php @@ -37,8 +37,8 @@ if (!isset($chunkymap_view_zoom_multiplier)) { $chunkymap_view_zoom_multiplier=.25; } -// OPTIONAL: $chunkymapdata_path = "chunkymapdata"; +$chunkymapdata_worlds_path = $chunkymapdata_path."/worlds"; $chunkymapdata_thisworld_path = null; $showplayers=true; @@ -137,8 +137,8 @@ function echo_chunkymap_controls($callback_php_path) { global $chunkymap_anchor_name; $is_in=false; $is_out=false; - $in_img_name = "chunkymap_zoom-in.png"; - $out_img_name = "chunkymap_zoom-out.png"; + $in_img_name = "zoom-in.png"; + $out_img_name = "zoom-out.png"; $in_zoom = $chunkymap_view_zoom_multiplier; if ($in_zoom<$chunkymap_view_zoom_max) { @@ -146,14 +146,14 @@ function echo_chunkymap_controls($callback_php_path) { $in_zoom = $chunkymap_view_zoom_multiplier*2.0; //echo "in:$in_zoom "; } - else $in_img_name = "chunkymap_zoom-in_disabled.png"; + else $in_img_name = "zoom-in_disabled.png"; $out_zoom = $chunkymap_view_zoom_multiplier; if ($out_zoom>$chunkymap_view_zoom_min) { $is_out=true; $out_zoom = ($chunkymap_view_zoom_multiplier/2.0); } - else $out_img_name = "chunkymap_zoom-out_disabled.png"; + else $out_img_name = "zoom-out_disabled.png"; $zoom_clip = $chunkymap_view_zoom_max; $found=false; @@ -206,8 +206,8 @@ function echo_chunkymap_controls($callback_php_path) { } if (!$found) $in_zoom=$chunkymap_view_zoom_max; - $in_html=""; - $out_html=""; + $in_html=""; + $out_html=""; global $world_name; $append_vars="&"; if (isset($world_name)) { @@ -287,6 +287,7 @@ function echo_entire_chunkymap_as_chunk_table() { global $chunkymap_view_zoom_max; global $chunkymap_view_zoom_min; global $chunkymapdata_path; + global $chunkymapdata_worlds_path; global $map_dict; global $is_verbose; global $chunkymap_tile_original_w; @@ -313,7 +314,7 @@ function echo_entire_chunkymap_as_chunk_table() { $character_icon_h=8; global $chunkymapdata_thisworld_path; if (isset($world_name)) { - $chunkymapdata_thisworld_path = $chunkymapdata_path."/".$world_name; + $chunkymapdata_thisworld_path = $chunkymapdata_worlds_path."/".$world_name; $generated_yml_path = $chunkymapdata_thisworld_path."/generated.yml"; if (is_file($generated_yml_path)) { $map_dict = get_dict_from_conf($generated_yml_path,":"); @@ -630,7 +631,7 @@ function echo_entire_chunkymap_as_chunk_table() { $img_style.="opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below $text_style="color:white; opacity: 0.4; filter: alpha(opacity=40);"; //filter is for IE8 and below } - echo_hold( "
$player_name
" ); + echo_hold( "
$player_name
" ); } //$position_offset_x+=$character_icon_w; } @@ -653,7 +654,7 @@ function echo_entire_chunkymap_as_chunk_table() { else { //not isset($world_name) echo "

Choose world:

"; echo "
    "; - if ($chunkymapdata_handle = opendir($chunkymapdata_path)) { + if ($chunkymapdata_handle = opendir($chunkymapdata_worlds_path)) { $append_vars="&"; if (isset($chunkymap_view_zoom_multiplier)) { $prefix = ""; @@ -672,7 +673,7 @@ function echo_entire_chunkymap_as_chunk_table() { global $chunkymap_anchor_name; while (false !== ($this_world_name = readdir($chunkymapdata_handle))) { if (substr($this_world_name, 0, 1) != ".") { - $this_world_path = $chunkymapdata_path."/".$this_world_name; + $this_world_path = $chunkymapdata_worlds_path."/".$this_world_name; echo "
  • $this_world_name
  • "; } } diff --git a/web/chunkymapdata_default/images/compass-rose.png b/web/chunkymapdata_default/images/compass-rose.png new file mode 100644 index 0000000000000000000000000000000000000000..a51b7a44367d096bbabe85ed664d139e6e2ab123 GIT binary patch literal 2976 zcmV;R3t#k!P)DJH{MeBA&503B&m zSad^gZEa<4bN~PV002XBWnpw>WFU8GbZ8()Nlj2>E@cM*01E_3L_t(|+U=WpP?YB# z$3HJGEa$GE0*i|rD(rfIiV7M0s)~WOpn=vO)~#D7($dm|5JFtOd|7yVdkbLCS9|uf zg@lGC0|^ha1?~Q5>(2%`I;lpMdpaIoD25CP4*+rJDR%=O0N(#Gn?LwhYkd&0f#r%9%p!;D3 zGz!@6@9(dzt*w!OaA4QQjT`Cc=wQNx3FPMH0+ce_v}uzNLWr1{7y&%<&;kMu0y+Ig9I*eU!Z8M?ZqQcSa2UBd7@!GG8@aP24>z|~ zS6OZaBuAN)ivs})nWP!1)CL48flw!)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