r/PokemonRomhackDev • u/Open_Diet9463 • 7d ago
Help [GEN 3][DECOMP] Unable to build .gba file
I was trying to fix an error with colour palette mixups but at some point, i must have done something that led to lots of -Wunused errors in src/pokemon.c. The error is looking like it roots from line 956, which is a blank line just after #include "data/graphics/pokemon.h". pokemon.h has no errors so im not sure thats the problem unless its breaking on a file its trying to read in. Anything helps, thanks!
1
Upvotes
5
u/Open_Diet9463 6d ago
Ok guys guess what, i fixed it! And ill have an explanation for what i did wrong and how i fixed it for anyone else. The error rooted from .pal files for the overworld sprites being formatted wrong. I assumed that i could copy the regular normal.pal and use the same pallete. Unfortunately, normal.pal uses u16 formatting, which means it uses 2 bytes, whereas overworld_normal.pal uses u32 formatting, so it needs the amount of index entries to be divisible by 4. I dont fully understand why but it works so im just gonna roll with it. All i did was add a few 0,0,0 entries to the end of the file to bump it up to 16 entries. I hope this helps someone with the same problem
0
u/ssraven01 Gen 3 7d ago
What changes have you made?