Skip to content

Instantly share code, notes, and snippets.

@Helco
Last active April 6, 2024 09:59
Show Gist options
  • Save Helco/d1026a3e31d454a7e0ab433a5d1fda7b to your computer and use it in GitHub Desktop.
Save Helco/d1026a3e31d454a7e0ab433a5d1fda7b to your computer and use it in GitHub Desktop.
Zanzarah extending fairy icons

I have not tested this patch.

Small enemy icons

Icons are stored in textures/misc/mpi000, a square texture that is used as follows:

  • The first 0.390625% from the top and left are ignored.
    For the original size 256 this amounts to exactly one pixel.
  • There is a twelve by twelve grid using 8.204125% per tile.
    For ths original size 256 this amounts to exactly 21 pixels.
  • The last original tile 143 is reserved for the selection rectangle

To extend this, the easiest way would be to increase the texture size to 512x512. Then one can use a 12x24 grid (minus the reserved tile) amounting to 287 usable tiles (still 21x21 pixels each). For this to work one has to shift all content by one pixel to the right and down (so two blank lines and columns) and modify the per-tile constant to 4.1015625%.

For the steam executable these are the bytes to modify:

File offset Expected Replace with
0x1A7440 0000A83D 0000283D

Player selection using mouse wheel

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment