Dokokashira door glitch: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (Text replacement - "Category:Speed runner glitches" to "Category:Speedrunner glitches")
(Adjust the article to acknowledge D335 is the Echo RAM F335.)
Line 88: Line 88:


#Activate the glitch in [[bp:Kanto Route 1|Route 1]] and enter Pallet Town (the music and palette will change).
#Activate the glitch in [[bp:Kanto Route 1|Route 1]] and enter Pallet Town (the music and palette will change).
#D335 will change to FF. Walk 548-551 steps (137×4) and land the last step through the right exit mat warp. Ignore any '(x)は ちからつきた' (fainted Pokémon) messages on the way.
#F335 (Echo RAM for D335) will change to FF. Walk 548-551 steps (137×4) and land the last step through the right exit mat warp. Ignore any '(x)は ちからつきた' (fainted Pokémon) messages on the way.


The player will warp directly to the Hall of Fame. If they want to pass through Blue's Pokémon League room, they can walk eight steps less.
The player will warp directly to the Hall of Fame. If they want to pass through Blue's Pokémon League room, they can walk eight steps less.
Line 112: Line 112:
Some of these Pokémon may be poisoned, so whenever the player walks four steps, the game will likely decrease a certain value following the sixth Pokémon data by 1, thinking it was a Pokémon's hitpoints data, but it is the hitpoints of no valid Pokémon. The HP reduction cannot occur where there is an FF, and the process only affects values before the first FF from D124 (the second Pokémon).
Some of these Pokémon may be poisoned, so whenever the player walks four steps, the game will likely decrease a certain value following the sixth Pokémon data by 1, thinking it was a Pokémon's hitpoints data, but it is the hitpoints of no valid Pokémon. The HP reduction cannot occur where there is an FF, and the process only affects values before the first FF from D124 (the second Pokémon).


When performing the glitch just after obtaining Oak's Parcel from a newly made save file, there will be many non FF values past the address D124, and the first FF value will be located much further on from that address. One of these addresses is D335, which is reduced by 1 every four steps due to the '199th Pokémon' being poisoned, and because there was no FF before D1EA and after D124. D335 stores the map that the player will warp to when they enter a 'dokokashira warp' (see the [[Dokokashira door glitch#Planning a path|planning a path]] section for more information).
When performing the glitch just after obtaining Oak's Parcel from a newly made save file, there will be many non FF values past the address D124, and the first FF value will be located much further on from that address. One of these addresses is F335, which is reduced by 1 every four steps due to the '199th Pokémon' being poisoned, and because there was no FF before D1EA and after D124. F335 (Echo RAM for D335) stores the map that the player will warp to when they enter a 'dokokashira warp' (see the [[Dokokashira door glitch#Planning a path|planning a path]] section for more information).


On a later save file that has made certain progress, it may be impossible to pull off the warping around part of the glitch. This is because there may be addresses in the memory preceding D1EA which are FF.
On a later save file that has made certain progress, it may be impossible to pull off the warping around part of the glitch. This is because there may be addresses in the memory preceding D1EA which are FF.
Line 121: Line 121:
Based on the mechanics above, the following equation can be used to calculate the map ID that you will end up:
Based on the mechanics above, the following equation can be used to calculate the map ID that you will end up:


MapID = [value in memory address D335]-(Steps/4)
MapID = [value in memory address F335 (D335)]-(Steps/4)


"MapID" is the index number of the map you want. For a list of index numbers, see Bulbapedia's [http://bulbapedia.bulbagarden.net/wiki/List_of_locations_by_index_number_(GB) list of Generation I locations by index number].
"MapID" is the index number of the map you want. For a list of index numbers, see Bulbapedia's [http://bulbapedia.bulbagarden.net/wiki/List_of_locations_by_index_number_(GB) list of Generation I locations by index number].
Line 127: Line 127:
"Steps" is the number of steps you need to take.
"Steps" is the number of steps you need to take.


D335 starts at a constant (which is reduced due to poison) which depends on the current map and the value is reset to that constant upon entering and exiting certain 'incompatible' warps or connections, such as the connection from Route 1 to Pallet Town, the player's house or Professor Oak's laboratory, or Celadon City's Pokémon Center.
F335 starts at a constant (which is reduced due to poison) which depends on the current map and the value is reset to that constant upon entering and exiting certain 'incompatible' warps or connections, such as the connection from Route 1 to Pallet Town, the player's house or Professor Oak's laboratory, or Celadon City's Pokémon Center.


There will be one (or possibly more) 'dokokashira' warp(s) that set the player's current location to the value stored in D335.
There will be one (or possibly more) 'dokokashira' warp(s) that set the player's current location to the value stored in F335.


Please refer to the following table for a list of map constants and 'dokokashira' warps:
Please refer to the following table for a list of map constants and 'dokokashira' warps:
Line 135: Line 135:
{| border="1"
{| border="1"
!Location
!Location
!Map constant (D335, [[decimal]])
!Map constant (F335, [[decimal]])
!The warp location
!The warp location
|-
|-