- Node.js v22 or higher
gzipexecutable in globalPATH
- Only HotA maps are supported
This script does not have complete parsing of the .h3m structure.
To make it work you have to make the following customizations in your map
to be able to properly find the offset in the file structure with the first segment of the land (on coordinates x=0;y=0).
- Place rectangle of Grass from the top left corner (coordinates
x=0;y=0) to at leastx=5;y=2 - Place two segments of Snow at
x=0;y=0andx=1;y=0 - Place two segments of Lava at
x=2;y=0andx=3;y=0 - Place Lava river from
x=0;y=0tox=4;y=0 - Place Dirt road from
x=0;y=0tox=4;y=0
It has to look like:
And then to execute the script:
npm start -- --src-file=/path/to/source.h3m --out-file=/path/to/out.h3m --new-size=[S|M|L|XL|H|XH|G]