tilemap-studio icon indicating copy to clipboard operation
tilemap-studio copied to clipboard

Request a new data format for Fire Emblem decomp project

Open laqieer opened this issue 3 years ago • 3 comments

project link Data format: GBA 4bpp

{
  u8 w; // real width = (w + 1) * 8
  u8 h; // real height = (h + 1) * 8
  u16 tiles[(w + 1) * (h + 1)]; // from bottom to top
}

laqieer avatar Oct 07 '22 16:10 laqieer

So it's basically a "GBA tiles + 4bpp palettes" file, but with the rows reversed in bottom-to-top order, and the width and height prepended as bytes (so it can be max 256x256)?

Can you link to a couple example tilemap files and their corresponding tileset graphics?

Rangi42 avatar Oct 08 '22 14:10 Rangi42

Yes. Here is tileset, tilemap and palette: bg_00.zip Here is what it looks in the game: bg_00 Here is the script to make the image above: https://github.com/laqieer/fireemblem8u/blob/b31c0498b5a53a6fc4d01e68692cc915eb18992b/scripts/tool.py#L203 Here is its C# implementation for reference: https://github.com/laqieer/GBA_Graphics_Editor/blob/1058ec52bc51cdc2ee2380c66e3c129b2e413870/Program.cs#L341

laqieer avatar Oct 08 '22 16:10 laqieer

Thanks! When I do implement it, this is how that one would look: image

Rangi42 avatar Oct 08 '22 18:10 Rangi42