Jump to content

ItemDex/RB:107: Difference between revisions

 
(2 intermediate revisions by the same user not shown)
Line 18:
==Arbitrary code execution methods==
===Hall of Fame entry bootstrap===
If the player views a Level 211 [[GlitchDex/RB:195|h POKé (0xC3)]] (getting one at this high of a level is possible with [[Rival LOL glitch]]) in the Hall of Fame, it will write C3 18 D3 to (jp D318) at CD3D, so using the item will execute Pokédex flags (from seen 113-seen 152, and then the player's inventory data starting with the number of items, then item/quantity pairs). However, at this point the sprite of h POKé corrupted the Hall of Fame, so viewing the Hall of Fame again will break the setup. Certain combinations of Pokédex flags will makealso thisbreak the arbitrary code execution regionin unsafeitems, so to prevent issues it's a good idea that Pokédex entries 113-152 are not seen at all.
 
Using another level for the h POKé is also an option, such as 219 to execute DB18 (current PC box Pokémon 5 PP of Move 3). It may also be possible to use a different glitch Pokémon representing a conditional variation of the jp opcode (C2 (jp nz), CA (jp z), D2 (jp nc), or DA (jp c)) depending on the state of CD38-CD3C (all flags are reset by default, in which case CA and DA wouldn't work).
 
Unfortunately, corrupting the Hall of Fame (including viewing the sprites of certain glitch Pokémon, such as h POKé) will break this setup; so the player must ensure not to interact with any further glitch Pokémon which corrupt the Hall of Fame. Notably, viewing the [[GlitchDex/RB:194|ゥ .4 (C2)]] in the Hall of Fame is not enough to corrupt the Hall of Fame, so ゥ .4 (C2) is an ideal alternative to h POKé (0xC3).
 
{{Youtube|cjlv__TQ7vc|ChickasaurusGL}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.