Local Map Stitching Script

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Re: Local Map Stitching Script

Postby Galthon » Mon Nov 07, 2011 7:21 pm

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.
User avatar
Galthon
 
Posts: 106
Joined: Sat Sep 17, 2011 4:31 pm
Location: Willamette Valley

Re: Local Map Stitching Script

Postby Gaskin » Mon Nov 07, 2011 7:53 pm

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.)
User avatar
Gaskin
 
Posts: 109
Joined: Sat Feb 06, 2010 3:24 am

Re: Local Map Stitching Script

Postby borka » Mon Nov 07, 2011 8:36 pm

@Gaskin

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
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Local Map Stitching Script

Postby Galthon » Mon Nov 07, 2011 11:46 pm

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
main.php
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


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!
You do not have the required permissions to view the files attached to this post.
User avatar
Galthon
 
Posts: 106
Joined: Sat Sep 17, 2011 4:31 pm
Location: Willamette Valley

Re: Local Map Stitching Script

Postby secobi » Tue Nov 08, 2011 6:28 am

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?
Image
serenity, subtlety, speed and servitude
User avatar
secobi
 
Posts: 19
Joined: Sun Jul 17, 2011 7:22 am
Location: Texas

Re: Local Map Stitching Script

Postby Galthon » Tue Nov 08, 2011 12:11 pm

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'.
User avatar
Galthon
 
Posts: 106
Joined: Sat Sep 17, 2011 4:31 pm
Location: Willamette Valley

Re: Local Map Stitching Script

Postby mvgulik » Tue Nov 08, 2011 2:44 pm

...
Last edited by mvgulik on Sun Apr 15, 2012 2:09 pm, edited 1 time in total.
mvgulik
 
Posts: 3771
Joined: Fri May 21, 2010 2:29 am

Re: Local Map Stitching Script

Postby Galthon » Wed Nov 09, 2011 1:07 am

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. :)
User avatar
Galthon
 
Posts: 106
Joined: Sat Sep 17, 2011 4:31 pm
Location: Willamette Valley

Re: Local Map Stitching Script

Postby mvgulik » Wed Nov 09, 2011 4:30 pm

...
Last edited by mvgulik on Sun Apr 15, 2012 2:08 pm, edited 1 time in total.
mvgulik
 
Posts: 3771
Joined: Fri May 21, 2010 2:29 am

Re: Local Map Stitching Script

Postby mvgulik » Fri Nov 18, 2011 5:18 pm

...
Last edited by mvgulik on Sun Apr 15, 2012 2:09 pm, edited 1 time in total.
mvgulik
 
Posts: 3771
Joined: Fri May 21, 2010 2:29 am

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 3 guests