’Cause all games were better on the GBC

You are not logged in.

#1 2019-12-31 18:19:54

Registered: 2016-07-06
Post 23/24

problem adding new pokemon after $c3 in pokered

starting at $c4, every pokemon that evolves get its name turned into HMs. For example, Pokemon $c3 when evolves into $c4 turns into HM01. Is there any way I could fix this?


#2 2019-12-31 21:07:14

Registered: 2009-11-25
Post 3,633/3,659

Re: problem adding new pokemon after $c3 in pokered

Gen 1 had sloppy code with a lot of assumptions in it in several places. In this case, the issue you're running into comes from the fact that the GetName function in home.asm originally worked off the assumption that none of the name lists had that many entries, and it also generated TM/HM names on the fly instead of storing them with the rest of the item names. So originally the GetName function checked if the item ID was HM_01 or greater, and jumped to the TM HM name routine regardless of what sort of name was actually being looked up. I fixed it a long time ago in Red++, so tracking down the original commit would show really outdated code. But try looking here as a starting point to get it fixed.

I am not very active on this forum. I only pop in from time to time.


Board footer

Powered by FluxBB