1: Run it multiple times, whether before, after or during doesn't matter. Each time it runs, it will try and match more tiles to what it already has.
2: Doesn't matter, it will find tiles to add from any session, as long as there is sufficient overlap, I.e. 2 tiles it recognizes from a previous run.
Local Map Stitching Script
Moderator: Phades
-
Galthon
- Posts: 106
- Joined: Sat Sep 17, 2011 4:31 pm
- Location: Willamette Valley
-
Gaskin
- Posts: 109
- Joined: Sat Feb 06, 2010 3:24 am
Re: Local Map Stitching Script
The script works great. Thanks.
But I have no idea how to make it zoomable. That would be a cool thing. (Travs script doesnt seem to be able to be unpacked.)
But I have no idea how to make it zoomable. That would be a cool thing. (Travs script doesnt seem to be able to be unpacked.)
-
borka
- Posts: 9965
- Joined: Thu Feb 03, 2011 7:47 pm
- Location: World of Sprucecap
Re: Local Map Stitching Script
@Gaskin
unpack with free 7zip works on Trav's ...
unpack with free 7zip works on Trav's ...
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
-
Galthon
- Posts: 106
- Joined: Sat Sep 17, 2011 4:31 pm
- Location: Willamette Valley
Re: Local Map Stitching Script
Alright, I've done some minor reworking of stuff. Tempted to rewrite and combine this all, but meh, I'll just hack these together for now... the ore is calling me!
Get Map Stitcher and Zoomable Map Creator.
Make sure you have PHP, Python, and PIL installed.
Extract them all into the SAME folder, so that main.php and tilezoomcreator1-1.py are in the same folders.
Grab my slightly modified and don't forget to edit the line I listed in my earlier post.
Create a file called run.bat in the folder with the following lines.
Running run.bat will run the stitcher 50 times, should get nearly everything, and then create a zoomable map from it. Open up tavszoomablemap.html in a browser, and viola!
Get Map Stitcher and Zoomable Map Creator.
Make sure you have PHP, Python, and PIL installed.
Extract them all into the SAME folder, so that main.php and tilezoomcreator1-1.py are in the same folders.
Grab my slightly modified and don't forget to edit the line I listed in my earlier post.
Create a file called run.bat in the folder with the following lines.
Code: Select all
for /l %%a in (1,1,50) do php main.php
python tilezoomcreator1-1.py
You do not have the required permissions to view the files attached to this post.
-
secobi
- Posts: 19
- Joined: Sun Jul 17, 2011 7:22 am
- Location: Texas
Re: Local Map Stitching Script
Thanks Galthon. I reran the program over and over again right after I made that last post and found out that it starts with the first session's map data which in my case was where I first spawned in w6 (w/ 64bit client, 32bit client was something really ancient from w5). I actually had to rerun main.php like 300+ times, I'm still not sure how (well) it works with multiple characters but I can see that I am missing some data which should be attached to the same character/map/account.
I'm not sure if I missed any automation which moves/copies/merges the data/images from the Map Stitcher's default folder, "master", to the Zoomable Map Creator's default folder, "9", but I had to copy it manually and then run the tilezoomcreator1-1.py. Also, there must be a more effective command to run the loop until main.php doesn't echo/provide anymore output instead of just doing a flat 50 or x amount of iterations: I don't know jack-shit about the commandline logic but I guess I'm the one with the most initiative to find the most effective command to use in the run.bat? On that note even, would I be able to edit Ender's run.bat with something that automatically runs the main.php (loop) and tilezoomcreator1-1.py upon closing my client/session?
I'm not sure if I missed any automation which moves/copies/merges the data/images from the Map Stitcher's default folder, "master", to the Zoomable Map Creator's default folder, "9", but I had to copy it manually and then run the tilezoomcreator1-1.py. Also, there must be a more effective command to run the loop until main.php doesn't echo/provide anymore output instead of just doing a flat 50 or x amount of iterations: I don't know jack-shit about the commandline logic but I guess I'm the one with the most initiative to find the most effective command to use in the run.bat? On that note even, would I be able to edit Ender's run.bat with something that automatically runs the main.php (loop) and tilezoomcreator1-1.py upon closing my client/session?
-
Galthon
- Posts: 106
- Joined: Sat Sep 17, 2011 4:31 pm
- Location: Willamette Valley
Re: Local Map Stitching Script
You could, and it might not be a bad idea. The whole .bat file thing is a kludge to make 2 separate tools work together, and the logic available there is limited.
And no, unless you use my modified main.php, or modify your own, the output of the stitcher will have to be manually copied to the '9' folder for the zoomable map maker. FYI, my only mod to main.php was to change the output folder to '9' instead of 'master'.
And no, unless you use my modified main.php, or modify your own, the output of the stitcher will have to be manually copied to the '9' folder for the zoomable map maker. FYI, my only mod to main.php was to change the output folder to '9' instead of 'master'.
-
mvgulik
- Posts: 4101
- Joined: Fri May 21, 2010 2:29 am
Re: Local Map Stitching Script
...
Last edited by mvgulik on Sun Apr 15, 2012 2:09 pm, edited 1 time in total.
-
Galthon
- Posts: 106
- Joined: Sat Sep 17, 2011 4:31 pm
- Location: Willamette Valley
Re: Local Map Stitching Script
Yeah, that would work. Like I said, the whole thing could use a consolidated rewrite... which I probably won't get around to until well after Alg releases his map. 
-
mvgulik
- Posts: 4101
- Joined: Fri May 21, 2010 2:29 am
Re: Local Map Stitching Script
...
Last edited by mvgulik on Sun Apr 15, 2012 2:08 pm, edited 1 time in total.
-
mvgulik
- Posts: 4101
- Joined: Fri May 21, 2010 2:29 am
Re: Local Map Stitching Script
...
Last edited by mvgulik on Sun Apr 15, 2012 2:09 pm, edited 1 time in total.
