Meta-map script activation

From Glitch City Wiki
Revision as of 15:54, 24 August 2017 by >Torchickens
Jump to navigation Jump to search
Major glitches of the Pokémon series


Arbitrary code execution

0x1500 control code arbitrary code execution (Crystal) | Cart-swap arbitrary code execution | Generation I custom map script pointer | Generation I invalid meta-map scripts | Generation I item ("8F", "ws m", "-g m", "5かい", "てへ" etc.) | Generation I move ("-", "TM42") | Generation I Trainer escape glitch text boxes | Generation II bad clone | Generation II Burned Tower Silver | Japanese Crystal Pokémon Communication Center SRAM glitches | Coin Case glitch | Generation II glitch Pokédex sortings | Pikachu off-screen glitch ACE | OAM DMA hijacking | Pikachu glitch emote | Generation III glitch Pokémon summary | Generation III glitch move animation) | Remote code execution | TM/HMs outside of the TM/HM pocket | ZZAZZ glitch Trainer FC


No further extensions

Cloning | Item duplication glitch (Generation I) | Pokémon merge glitch ("Q Glitch", Generation I) | Time Capsule exploit | Bug-Catching Contest data copy glitch (Generation II, Japan only) | Berry glitch | Battle Tower Lati@s glitch (Generation III) | (Mimic) Transform Rage glitch (Generation IV)

Transform held item glitch (Generation IV, Japan only) | Mimic glitch (Generation IV, Japan only)


Buffer overflow techniques

99 item stack glitch | LOL glitch | Rival LOL glitch | Instant LOL glitch | RAM LOL glitch | Out of bounds LOL glitch | blockoobLG | Instant encounter infinite chain glitch | LGFly | Super Glitch (Generation I) | Party remaining HP glitch | Super Glitch (Generation III) | Text pointer manipulation mart buffer overflow glitch | CoolTrainer♀-type move | Double distort CoolTrainer♀ corruption | Yami Shop glitch | Party Pokémon box data shift glitch | Unterminated name glitch item instant encounter (Japanese Red/Green)


Item stack duplication glitch (Generation I)

Generation I expanded items pack (Glitch Rocket HQ maps, Map FE (English and non-English European Yellow) | Map script pointer manipulation (arbitrary code execution | Map script pointer item ball manipulation) | Text pointer manipulation (arbitrary code execution | Item ball manipulation | Mart buffer overflow) | Trainerless instant encounter glitch


Bad clone glitch (Generation II)

????? party overloading (Type 0xD0 move glitch | ????? map corruption | Celebi trick | Celebi Egg trick | Shiny Celebi trick | Glitch move map corruption | Overloaded party map corruption | Glitch Unown (Glitch Unown map corruption) | Duplicate key items glitch (Infinite items and item creation, Expanded Balls pocket (Wrong pocket TM/HMs, Glitch Pokédex categories))


Closed menu Select glitches (Japanese Red/Green)

Dokokashira door glitch (International) | Fossil conversion glitch (international) | Second type glitch | Skip to Level 100 glitch | Trainer mutation glitch | Walk through walls (International) | Lift glitch | Badge describer glitch


Pomeg glitch (Generation III)

Pomeg data corruption glitch ("Glitzer Popping") | Charm glitch


Voiding (Generation IV)

Tweaking

Broken escalator glitch (Japan only) | Elite Four door glitch (Japan only)


2x2 block encounter glitches (Generation I)

Left-facing shore tile glitch (in-game trade shore encounter trick, Old man trick, Trade link up shore encounter trick, Fight Safari Zone Pokémon trick) | Viridian Forest no encounter grass tiles glitch


Glitch City

Safari Zone exit glitch | RAM manipulation | Out of bounds Glitch City (Generation II) | Slowpoke Well out of bounds corruption (French Gold/Silver/Crystal)


Large storage box byte shift glitch

Storage box remaining HP glitch | Generation I max stat trick


Pikachu off-screen glitch

Trainer corruption glitch


SRAM glitches

Generation I save corruption | 255 Pokémon glitch | Expanded party encounter table manipulation (Generation I) | Send party Pokémon to a new game (Generation I) | Generation II save corruption | Mailbox glitches | Mystery Gift item corruption | Trainer House glitches


Trainer escape glitch

Death-warp | Ditto trick | Experience underflow glitch | Mew trick | Text box ID matching | Meta-map script activation


Walk through walls

Ledge method | Museum guy method | Rival's effect | Select glitch method (International Select glitch method), Brock Through Walls


Surf down glitch

Grass/rock Surfing glitch (Spanish/Italian only) (adaptions: Submerge glitch (international)) | 8 8 (0x7C) grass/rock surfing glitch (English Red/Blue))

(view, talk, edit)
Bulbapedia also has an article about Meta-map script activation.

Glitch meta-map script activation, previously known as walking lag glitch, and as Zero Error due to error codes that may appear during the text box matching method, is a glitch in Pokémon Red, Blue, and Yellow.

This glitch will modify the 'meta-map script' associated with a certain map. If activated with the Trainer escape glitch, it will be the location that the player escaped from the Trainer.

Effects

Exploiting this glitch may also cause lag before the player can take their next step (hence the name "walking lag glitch"). Sound effects may also be played with the lag or the game may freeze, depending on the player's coordinates and time spent on the map.

The glitch causes the route to become glitchy, and it will remain like that even when the player leaves the route and save and resets the game.

If the player loses, a text box may appear before the player is sent back to their black out location.

Certain glitch meta-map scripts may also allow for arbitrary code execution.

Activation

The glitch can be pulled off by three variations of the Trainer escape glitch.

The first one involves setting up a "death warp", returning to the original location to rematch the Trainer and defeating them without flashing the start menu.

The second one involves talking to an NPC on the original route while encounters are disabled and defeating them.

The third one involves forcing an encounter with an unbeaten Trainer on the original route through 'text box matching'. Text box matching basically forces the game to load the equivalent text box for the last text box in memory, and have that text box trigger a Trainer encounter.

The glitch map map 0xFE in English Yellow will set up glitch scripts on various maps, many of which will freeze the game.

A glitch script may also be activated by manipulating items in the expanded stored items pack. This is possible with the dry underflow glitch with storage box items.

Example procedure (death warp method)

  1. Encounter a Pokémon in the grass in the sight of the last Trainer in Viridian City (closest to Viridian City) in Viridian Forest.
  2. Black out in the wild encounter (e.g. by poison). The "!" will appear but you will return to the last Pokémon Center without battling the Trainer.
  3. Return to Viridian Forest without opening the start menu (it is also best to avoid any text box to make sure the upcoming battle begins).
  4. The battle with the Bug Catcher will start. Defeat them and the glitch script activation will occur.

Example procedure (fighting a Trainer on an encounter-disabled route method)

More research is needed for this article.

Reason given: Can battles be lost to trigger the glitch still?



  1. Perform any method of Trainer escape glitch that deactivates your START menu.
  2. Go to any Pokémon PC, change boxes to save the game.
  3. Reset. Your START menu will be active.
  4. Go to the map where the Trainer escape glitch was activated, but you shouldn't get any encounter.
  5. Fight any Trainer on the map. Since they can't notice you, you have to talk to them.
  6. Once the battle is finished, another battle may immediately start, with a glitched text box being displayed for a couple frames before being overwritten by the battle animation.
  7. Win all battles that may happen (up to 3 in a row have been reported to occur)
  8. Once the battles are over, the map will have the Walking lag glitch activated.


Example procedure (text box matching method)

1. Go to Vermillion City.

2. Walk up to the route north of Vermilion.

3. From here, perform a Trainer-Fly glitch by flying away from the trainer in the upper left hand corner of the route.

4. Choose to fly back to Vermilion City.

5. Walk to the route that is east of Vermilion.

6. Fight any trainer here. It does not matter who the player fights, as long as the trainer walks at least one step towards the player.

7. After the trainer battle, the player should go back to Vermilion and talk to the lady wandering about outside (her text box ID is 01) - see the image below for the lady:

8. The player should then walk up to the route north of Vermilion one last time and the player will battle the Trainer with a level 20 Squirtle (if the Trainer was unbeaten). The walking lag glitch will begin afterwards.

Manually setting up a glitch script

Setting up the dry underflow glitch with stored PC items allows the player to manipulate certain meta-map scripts by modifying the item past item 50.

For example, item 100's quantity controls the map script for Route 8 (address D601 in Red/Blue, D600 in Yellow). Though a quantity of 1 for this item will set up a Special-stat encounter (as if activating the Trainer escape glitch), out of bounds values are glitch scripts associated with this glitch.

Map 0xFE corruption

After the player enters map 0xFE without a freeze using a safe level-script pointer for DC0E, they will be warped to map 0x99 (a house in Fuchsia City).

After using the expanded items pack to escape this map (as the exit by default will link back to the house), the player will be able to access maps with invalid meta-map scripts.

Fixing the glitch

More research is needed for this article.

Reason given: Add methods with details for each map



The glitch comes from the game advancing the map script ID but triggering more battles due to reading invalid flags, and not setting the ID back to 0 (the intended way), or from a glitch with the side effect of corrupting the map script.

Using item PC expanded item pack or arbitrary code execution allows fixing the glitch, but the method depends on the map the glitch was triggered on.