Home / distrib
Name Modified Size InfoDownloads / Week
Parent folder
tilezoomcreator1-1.zip 2011-07-02 4.0 kB
tilezoomcreator1-1.py 2011-07-02 4.7 kB
zoomtilecreator.zip 2011-06-26 7.3 kB
Totals: 3 Items   15.9 kB 0
HnHmapOffsetter.py is a python script that renames the map tile files produced by Haven and Hearth clients such as Enders and Gilbertus, to apply an offset to the coords embedded in the filename.
It is just a very quick and simple script that I knocked up so that I could have something that just did exactly what I want, cross platform. So it has no bells and whistles.

The files should all be in the same directory and named like 'tile_-1_9.png'
Where the first number is an x coord and the second number is y.

An example of when this script is useful is if you are mapping an area and the client or server crashes, the next time you log in your starting position will be offset from the previous one by how far you have travelled east/west (x) and north/south (y).
This means that the tiles produced by the mapper in the new session will all be offset by that amount.

If you can find an identical tile in each mapping session folder (either by eye or using image duplication finding software), then you can work out the offset by subtracting the two x's and y's.
You can then apply the offset to all the files in one directory using this script, and then copy those files into the other session directory, thus being able to effectively merge the two sessions together.

You could also use this software for maintaining a large main local map into which you merge all your mapping sessions, having identified the offsets of the different   sessions.

WARNING!!!! This software batch-renames files and will happily rename thousands and thousands once you let it go. It will try to only rename filenames of the correct format, but it is not designed to compensate for carelessness either.
You should be very careful to copy the files you want to rename into a temporary directory and work with that until you are sure you have the offset you want, before merging with your precious main map files. I will not be resposible for any mistakes made by the user. Be Careful.
Source: readme.txt, updated 2011-06-15