(15.02.2020 06:26)daemon_n Wrote: (13.02.2020 09:26)RoseKavalier Wrote: I've got a proof of concept in development for Unleashed to center creatures without modifying creature 2x2 mask area. This has bugged me for years!
There are still a few issues to solve...
In any case, don't make msk files by hand. There is existing code to do this.
i downloaded 1,16 version and there are the original sprites
anyway - what the code for making msk and msg? Or is will needed only after solving all issues?
Apologies, missed this post.
The def correction fix is still experimental so not available.
Also I only looked at mapeditor so far so I'm not certain how to achieve it in game yet.
I added an optional field at the end of zeobjts.txt which represents horizontal offset (+/-). When absent, it reads as 0 (no offset)... then defs are simply shifted according to this offset. The offset is stored in one unused alignment field of map objects.
For load/saving, there are 16 null-bytes after every object in h3m format; so read and store from there ensures compatibility.
msk file - I have some utilities to unpack def and create bmp/msk out of them. It can be extended to read all def from lod/pac archive and dump all msk files (or even add them directly). However it is command line only, no fancy GUI.