Hafen map tool / 1.2

Forum for alternative clients, mods & discussions on the same.
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Hafen map tool / 1.2

Post by APXEOLOG »

Hello hearthlings!
This is my command line tool to merge map sessions

Features:
  • Cross-merge all map sessions
  • Generate zoom levels for google maps viewer
  • Both session-viewer and map-viewer are availiable

You find detailed readme on github, please read it, you will find usage examples and argument description there

Please, make map folder backup before merging so you can restore if something goes wrong

Note: I realised that lot's of people think this is a tool for 'i want to see my cave and two lakes around in one click'. That's not my case (buy you still can do it if you'll configure it properly). This tool is for automatically merging BIG amount of data (typically i merge 800Mb of session from like 40+ people for example) and creating production output for hosted map (like algeralith or sabinati maps in haven)

You need WRITE privileges in work folder for proper executuion
Sadly i have only Win64 build - https://github.com/APXEOLOG/hafen-map-tool/releases, but you can build it for other programs yourself with Go :D
Last edited by APXEOLOG on Thu Sep 03, 2015 8:19 am, edited 3 times in total.
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
User avatar
GladiatoR
Posts: 213
Joined: Fri Aug 28, 2015 11:04 pm

Re: Hafen map tool

Post by GladiatoR »

Tried and after got msg that Sessions not mergeable and it deletes all this folders...
User avatar
APXEOLOG
Posts: 1300
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth

Re: Hafen map tool

Post by APXEOLOG »

GladiatoR wrote:Tried and after got msg that Sessions not mergeable and it deletes all this folders...

Oh i see where is error. Thx, fixed - https://github.com/APXEOLOG/hafen-map-t ... s/tag/v1.1
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
User avatar
GladiatoR
Posts: 213
Joined: Fri Aug 28, 2015 11:04 pm

Re: Hafen map tool

Post by GladiatoR »

APXEOLOG wrote:
GladiatoR wrote:Tried and after got msg that Sessions not mergeable and it deletes all this folders...

Oh i see where is error. Thx, fixed - https://github.com/APXEOLOG/hafen-map-t ... s/tag/v1.1

Thx for fix. But now all my history got deleted :((
User avatar
GladiatoR
Posts: 213
Joined: Fri Aug 28, 2015 11:04 pm

Re: Hafen map tool

Post by GladiatoR »

Image
User avatar
Redempter
Posts: 102
Joined: Fri Sep 16, 2011 2:21 am
Location: Montreal, Quebec

Re: Hafen map tool

Post by Redempter »

The map tool works great on my end, thanks a lot!
User avatar
shubla
Posts: 13041
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Hafen map tool

Post by shubla »

instructions unclear, didnt work
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
Sevenless
Posts: 7704
Joined: Fri Mar 04, 2011 3:55 am
Location: Canada

Re: Hafen map tool

Post by Sevenless »

When I try to use cmd line:

'map-merger' is not recognized as an internal or external command, operable program or batch file.

Tried installing GO and LiteIDE platforms and running it with them, nothing happens with GO and LiteIDE can't launch the application successfully.
Lucky: haven is so quirky
Lucky: can be so ugly, can be so heartwarming
Sevenless: it is life

The Art of Herding
W16 Farmer's Almanac
W16 Casting Rod Cheatsheet
Explanation of the logic behind the cooking system
User avatar
Redempter
Posts: 102
Joined: Fri Sep 16, 2011 2:21 am
Location: Montreal, Quebec

Re: Hafen map tool

Post by Redempter »

Sevenless wrote:When I try to use cmd line:

'map-merger' is not recognized as an internal or external command, operable program or batch file.

Tried installing GO and LiteIDE platforms and running it with them, nothing happens with GO and LiteIDE can't launch the application successfully.


Just use cmd. You have to be in the same directory as the .exe, which ideally is in the same directory as the custom client for easy access to the maps folder, then type the name of the .exe, in my case it was map-merger-x64.exe

What I did, in this order, was:

C:\...\...\Shovel> map-merger-x64.exe -d maps //This will merge all the sessions in the maps folder

C:\...\...\Shovel> map-merger-x64.exe -d maps -z "2015-09-01 11.01.56" //Change the -z argument to the session folder that is left in your maps folder. This will create the zoommap folder that will be used with the maps.html

Then just download the maps.html that you can download in the github and put it in the parent directory of the zoommap directory that was created, then run it in your favorite browser.

Note: As always, don't forget to backup your maps folder incase of bugs.
Note2: I forgot to mention that your OS needs to be 64-bit windows.
Last edited by Redempter on Tue Sep 01, 2015 7:50 pm, edited 1 time in total.
User avatar
GladiatoR
Posts: 213
Joined: Fri Aug 28, 2015 11:04 pm

Re: Hafen map tool

Post by GladiatoR »

You cant zoom in/our using google maps viewer?

Return to “The Wizards' Tower”