Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Generation I Glitch Discussion

Disabling wild encounters with Select glitch (Red/Green/Blue) - Page 1

Disabling wild encounters with Select glitch (Red/Green/Blue)

Posted by: Torchickens
Date: 2016-07-21 17:16:32
This is a select glitch I 'created' which allows you to disable encounters at will until you perform the select glitch again with the Pokémon you get from the switch, based on the unused "debug feature" (which can be enabled in the Japanese versions by setting bit 1 of 0xD6B1 and in the English versions by setting bit 1 of 0xD732).

The debug feature allows you to disable wild encounters by holding B, or start a new game without having to name the player and start outside of your house (or the value in D07C according to the Pokémon Red disassembly). Sadly, even if you save and reset with the flag set you won't be able to skip the new game sequence with this method. (however, outside of glitches you may use the GameShark code 0103B1D6 and you could theoretically force a new game that does have the flag enabled with arbitrary code execution).

To activate the select glitch, all you need to do is make the following steps:
1) Obtain a Pokémon which has Poison (hex:03) as its type 2 and a move 3 with 35 PP, with no PP Ups used. (or any PP value with bit 0x5 checked).
1) Press Select on PC item 33 (or theoretically item 33 in the expanded items pack).
2) Exit with B, B, B and enter a battle, or enter the Name Rater's house/Day Care Center without opening the menu.
3) Either open the Pokémon menu during the battle, or by talking to the NPC and press A on the Poison-type Pokémon (this will swap it with Pokémon 33).

This glitch will change the value of D6B1 to $03 (bit 0 checked; the play time is being counted and bit 1 checked; the debug feature activated). The 35 PP requirement is to check bit 5 of D6CA so that we do not lose the Pokédex option on the menu.

For some unknown reason, this trick resulted in disabling all wild encounters even if you aren't holding down the B button. However, the battles can be re-enabled by performing the glitch again with the glitch Pokémon you get from the swap.

When I performed this glitch, it also enabled the "test battle" (bit 1 of D6B2) flag; which is controlled in this glitch by the catch rate of the Pokémon you switch. When "test battle" is enabled, battles do not show any PP on the fight menu, and all moves will act like Pound. This is used for the battle test debugging leftover, in which you obtain a level 20 Rhydon and a battle is initiated against another level 20 Rhydon.

Re: Disabling wild encounters with Select glitch (Red/Green/Blue)

Posted by: Yeniaul
Date: 2016-07-21 18:30:22
Good work! This could be put under the Select glitch page with more work as an example.

Re: Disabling wild encounters with Select glitch (Red/Green/Blue)

Posted by: TheUnReturned
Date: 2016-07-22 00:34:20
I assume this is included to the debug and not "created"… xD

Re: Disabling wild encounters with Select glitch (Red/Green/Blue)

Posted by: Torchickens
Date: 2016-07-22 05:51:40

Good work! This could be put under the Select glitch page with more work as an example.


Thanks Yeniaul! :)


I assume this is included to the debug and not "created"… xD


I'm not sure what you mean but the glitch should activate the debug feature, although it's interesting that all battles were disabled even without holding down B (is there a way to disable battles without enabling bit 1 of 0xD6B1?).

Re: Disabling wild encounters with Select glitch (Red/Green/Blue)

Posted by: ISSOtm
Date: 2016-07-22 07:49:24

I'm not sure what you mean but the glitch should activate the debug feature, although it's interesting that all battles were disabled even without holding down B (is there a way to disable battles without enabling bit 1 of 0xD6B1?).

I guess editing the random encounter chances (setting them to 0). But that ain't be permanent.