To solve your problem you just have to defineHey xaman started a new project and tried pulling this into it, got a couple of errors, that seem to stem from gEvolutionTable.
![]()
I was guessing that for some reason it can't get the function, so I tried adding #include "data/pokemon/evolution.h" to the top, but it causes other issues.
![]()
gEvolutionTable as an extern function in the file where you intend to make use of it.extern struct Evolution gEvolutionTable[][EVOS_PER_MON]; somewhere near the top at src/pokedex.c should fix it.
#include "data/pokemon/evolution.h". That's incorrect.To solve your problem you just have to definegEvolutionTableas anexternfunction in the file where you intend to make use of it.
In other words, throwing in aextern struct Evolution gEvolutionTable[][EVOS_PER_MON];somewhere near the top atsrc/pokedex.cshould fix it.
Ex:
![]()
Also yeah, remove that#include "data/pokemon/evolution.h". That's incorrect.
![[PokeCommunity.com] PokedexPlus in HGSS style UPDATED [PokeCommunity.com] PokedexPlus in HGSS style UPDATED](https://i.im.ge/2021/07/25/DsHEr.png)
TEXT_COLOR_LIGHT_GREY
TEXT_COLOR_DARK_GREY
TEXT_COLOR_LIGHT_GRAY
TEXT_COLOR_DARK_GRAY
static void Task_HandleSearchResultsInput(u8 taskId)
else if (JOY_NEW(B_BUTTON))
gTasks[taskId].func = Task_ReturnToPokedexFromSearchResults;
else if (JOY_NEW(B_BUTTON))
{
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK);
TryDestroyStatBars(); //HGSS_Ui
gTasks[taskId].func = Task_ReturnToPokedexFromSearchResults;
PlaySE(SE_PC_OFF);
}
First, thank you. while i have some problem when compiling, when its success it works nice.
but i wanna ask about something (sorry for bad english).
https://im.ge/i/DsHEr
in this picture, the text kinda overflowing the selector.
so i wanna ask, how can i change the size of the selector? is it from function in pokedex.c file or image?
thanks in advance.
While im at it, i wanna share an issue and fix while compiling this project.
Spoiler:
if you get error when compile about this var undefined in pokedex.c
Code:TEXT_COLOR_LIGHT_GREY TEXT_COLOR_DARK_GREY
change that to this
Code:TEXT_COLOR_LIGHT_GRAY TEXT_COLOR_DARK_GRAY
and if you experience cant go back from search result page to pokedex. try this:
Spoiler:
- Go to this function in pokedex.c
Code:static void Task_HandleSearchResultsInput(u8 taskId)- Go to this section
and add thisCode:else if (JOY_NEW(B_BUTTON))
so it'll look like thisCode:gTasks[taskId].func = Task_ReturnToPokedexFromSearchResults;
Code:else if (JOY_NEW(B_BUTTON)) { BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_BLACK); TryDestroyStatBars(); //HGSS_Ui gTasks[taskId].func = Task_ReturnToPokedexFromSearchResults; PlaySE(SE_PC_OFF); }
i hope this can be useful
This looks really good! But I spotted something a little weird? I don't know why, but there seems to be something weird on the EVO screen
https://imgur.com/1MbsDay
![]()
So I followed your tutorial to a T and i also have the the newer battle engine by RHH. This is the error I'm gettingCode:make: *** No rule to make target `src/tx_difficulty_challenges.h', needed by `build/emerald/src/pokedex.o'. Stop.
pushed a fix!
New to decomp hacking and tried using this but this error pop up when I tried compiling it and I have no idea what to do. Been using RHH as the base decomp.
https://imgur.com/BzET9Pt
Had an issue where gFormSpeciesIdTable is undefined. How can I fix it?