Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request a new data format for Fire Emblem decomp project #74

Open
laqieer opened this issue Oct 7, 2022 · 3 comments
Open

Request a new data format for Fire Emblem decomp project #74

laqieer opened this issue Oct 7, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@laqieer
Copy link

laqieer commented Oct 7, 2022

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
}
@Rangi42
Copy link
Owner

Rangi42 commented Oct 8, 2022

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 Rangi42 added the enhancement New feature or request label Oct 8, 2022
@laqieer
Copy link
Author

laqieer commented Oct 8, 2022

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

@Rangi42
Copy link
Owner

Rangi42 commented Oct 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants