Gen VII invalid Pokémon / etc research
Posted by: Stackout
Date: 2016-12-09 11:06:29
Expect lots and lots of lag, this has support for Pokémon/items/attacks up to 0xffff.
I took a Pokémon in my box, made a copy of it, changed its species to 0xffff, gave it move 0xffff, shoved it in the PC.
When hovering over it in the PC I got a nice crash, a null pointer deref related to the attack name (Luma's exception dump showed r0 to r4 all being zero, and pc pointed at [tt]ldr r1, [r4, #0x84][/tt]).
Changed the attack 0xffff to something valid (Flamethrower), and now I can hover over it in the PC! It looks like Kirlia; and viewing its summary crashes in the exact same place as before.
0xffff's species name is not constant. I think it's based on the level number of the Pokémon you previously selected or something. (it changed from "70" to "64", then hovering over it inside the PC when the Pokémon was in the party caused a crash)
OK, that's interesting. Put 0xffff in the party, went back out of the PC, went back into the PC, touched 0xffff (to avoid a crash), and it now looks like Staravia.