- 250
- Posts
- 7
- Years
- Seen Apr 23, 2025
I tried building a Pokeemerald rom with the battle engine upgrade, poke expansion, and item expansion, when I ran into this error:
I know a bit of C, so I looked into pokemon.c, and I did notice that these variables are indeed never declared at any point in the function PokemonToBattleMon, but that's about all I got out of it, since I don't know the full ins-and-outs of the program. Does anyone know how to fix this error?
-----EDIT------
Never mind, I realized I made a mistake while fixing one of the merge conflicts. It works now.
Code:
src/pokemon.c: In function `PokemonToBattleMon':
src/pokemon.c:4607: `battlerId' undeclared (first use in this function)
src/pokemon.c:4607: (Each undeclared identifier is reported only once
src/pokemon.c:4607: for each function it appears in.)
src/pokemon.c:4607: `partyIndex' undeclared (first use in this function)
src/pokemon.c:4639: `hpSwitchout' undeclared (first use in this function)
make: *** [Makefile:253: build/emerald/src/pokemon.o] Error 1
I know a bit of C, so I looked into pokemon.c, and I did notice that these variables are indeed never declared at any point in the function PokemonToBattleMon, but that's about all I got out of it, since I don't know the full ins-and-outs of the program. Does anyone know how to fix this error?
-----EDIT------
Never mind, I realized I made a mistake while fixing one of the merge conflicts. It works now.
Last edited: