Quoted By:
>still working on expanding the TM list for Crystal
>heal at a Pokémon Center while testing stuff
>the game crashes
>almost ready to throw out my efforts on the TM expansion and start over from before I messed with that part of the code
>realize it's just a save file issue since I changed the game's wram
Man, I got worried.
It's alarming how difficult expanding this is. I've only tried increasing the amount of TMs by two so far (so there'd be 52 TMs and 7 HMs); I initially had the issue where every TM was two numbers below what it should be (leading to TM00 and TMP5, or TM255), then I fixed that since it was a silly little mistake of me only taking out part of a section of code.
Then after that HM06 and HM07 wouldn't appear and the HMs were two spaces forward (so TM51 and TM52 were HM01 and HM02), then I thought I fixed that because the disassembly, for some reason, listed something regarding the TMHM pocket as a static value of 57 instead of it manually adding the number of TMs to the number of HMs like other functions. But, this only partially fixed it.
Now the TMs and HMs appear properly when you pick them up or store them in the PC, but the problem is still there in the bag itself; to make matters stranger, if you pick up HM06 or HM07, it appears to not go in the bag, but instead replaces the cancel function (if you click cancel it acts as if you selected the missing HM).
It's getting to be a headache because I know whatever's causing this issue is likely another static value, but I have no clue WHERE it could be because the coding for the pack is all over the place.