Dokokashira door glitch: Difference between revisions

Updating and correcting Bulbapedia's articles about glitches.
(Undo revision 1929818 by Chowdit (talk) - User appears to be a troll falsifying Japanese text. As seen on the website linked, the spelling ドア is used for the bug in Japan.)
(Updating and correcting Bulbapedia's articles about glitches.)
Line 1: Line 1:
{{incomplete}}
The '''Dokokashira door glitch''' (Japanese: '''どこかしらドアバグ''' ''{{tt|Dokokashira|Where is it}} door bug'') is a glitch in [[Generation I]], which exists in {{game3|Red and Green|the Japanese Pokémon Red and Green|s}}. It was first documented on the Japanese Pokémon [[glitch]] website [http://pokemonbug.oh.land.to Pokemonbug].


The '''Dokokashira door glitch''' (Japanese: '''どこかしらドアバグ''' ''{{tt|Dokokashira|Where is it}} door bug'') is a glitch in [[Generation I]], which only exists in {{game3|Red and Green|the Japanese Pokémon Red and Green|s}}. It was first documented on the Japanese Pokémon [[glitch]] website [http://pokemonbug.oh.land.to Pokemonbug].
It is similar to [[tweaking]] and the [[surf glitch]] in [[Generation IV]]. It can be used to enter the [[Hall of Fame]] without battling the [[Elite Four]] or the {{pkmn|Champion}}. It is still possible to trigger this glitch in the international releases of {{game|Red and Blue|s}} - however, it will have different effects from the japanese releases, and it will not cause the player to warp.


It is similar to [[tweaking]] and the [[surf glitch]] in [[Generation IV]]. It can be used to enter the [[Hall of Fame]] without battling the [[Elite Four]] or the {{pkmn|Champion}}.
==Execution==
 
From a new game, the player obtains at least two items, with {{key|I|Oak's Parcel}} in the second slot. The [[bag]] should then be opened and the player should press the Select button on Oak's Parcel, then select ''Cancel'' twice. This will cause the cursor to stay white. A wild {{pkmn|battle}} should be initiated and then the player should open the [[party|Pokémon menu]] and select the first Pokémon, swapping it with a [['M (FF)]]. The player should open the fight menu, to prevent the game from managing as if there are no Pokémon on the field when the battle ends and then [[escape|run away from]] or win.
 
From now on, the glitch should be active. Some of its effects are undesirable, such as slight graphical errors on the main map interface; however, one of the more useful effects will ensure that the warp location of the next door the player walks through is relevant to the amount of extra steps he or she takes, with the warp location changing every extra four steps.


==Explanation==
==Explanation==
The '''Dokokashira door glitch''' takes advantage of the fact that in {{game|Red and Green|s}}, the player is able to switch the slots of [[item]]s as well as Pokémon. However, an oversight of this feature was that if the player were to press the Select button on the items screen and then attempt to switch one of his or her Pokémon, the game tries to move an "item" that actually corresponds to some unrelated area of memory.


This is essentially like switching information about other data in the game, such as what kinds of items the player has, or the map location of the player. The game will take an item to be the information about one of the "Pokémon" past the sixth slot (or data after the amount of Pokémon that the player currently has in the party).
The '''Dokokashira door glitch''' takes advantage of the fact that in {{game|Red and Green|s}}, the player is able to switch the slots of [[item]]s as well as Pokémon. However, an oversight of this feature was that if the player were to press the Select button on the items screen and then exit out of the menu, the game will still remember the position where Select button was held down previously.


When the player switches {{key|I|Oak's Parcel}} as the second item in his or her Bag with his or her first Pokémon, this will 'shuffle' several bytes within the game. Some of these effects are undesirable, such as slight graphical errors on the main map interface; however, one of the more useful effects will ensure that the warp location of the next door the player walks through is relevant to the amount of extra steps he or she takes, with the warp location changing every extra four steps.
When the player switches the second item in his or her [[Bag]] with his or her first Pokémon, it will force the game to switch the second Pokémon (which is unexistent) with the first one. In this particular early-game scenario, it switches the end of list marker to the first position. This confuses the subroutine which applies the [[Poison (status ailment)|poison damage]] in the overworld, causing it to check Pokémon beyond the sixth slot for poison damage, decrementing massive amounts of RAM addresses while thinking they are party Pokémon's health points.


==Path calculation==
==Path calculation==
An equation from [[Glitch City Laboratories]] allows calculation of the map location the player will appear after walking through the doors affected by this glitch.
An equation from [[Glitch City Laboratories]] allows calculation of the map location the player will appear after walking through the doors affected by this glitch.


It is: Warp ID= k-(steps/4), where "Warp ID" is the [[List of locations by index number (Generation I)|map identifier]] that the player is warped to, "steps" are the amount of steps walked by the player and where "k" is a constant, depending on the player's map location.
It is: ''WarpID = k-(Steps/4)'', where "WarpID" is the [[List of locations by index number (Generation I)|map identifier]] that the player is warped to, "Steps" are the amount of steps walked by the player and "k" is a constant, depending on the player's map location. The equation is not applicable if its right side falls below zero.


There are certain entrances which don't warp the player. If the player enters or exits one of these locations, the amount of "steps walked" will be reset to 0 and the map constant is refreshed. This equation is not applicable if the right side of the equation falls below zero.
Only one of the entrances will warp the player, depending on the map. If the player enters or exits the map through any of the non-warping entrances, the amount of "steps walked" will be reset to 0 and the map constant will be refreshed.
 
The reason this happens is because the game reads data past the 6th slot as Pokemon and the health of a 6+ slot pokemon accounts to tile data and warp data.


===Constants===
===Constants===
Below is an incomplete list of constants (k), used in the path calculation equation above.
Below is a list of constants (k), used in the path calculation equation above. ''Warp location'' is the entrance which will cause the player to warp to the map specified by the equation.


*[[Pallet Town]]: 39 (reset "steps taken" to 0 and refresh map constant via the start of Route 1, player's house and Professor Oak's Lab)
{| style="background: #{{blue color dark}}; {{roundy|10px}}; border: 5px solid #{{green color}}"
*[[Celadon City]]: 122 (reset "steps taken" to 0 and refresh map constant via the Pokémon Center and Celadon Condominiums.
|-
! style="background:#{{red color light}}; {{roundytl|5px}};" | {{color|{{red color dark}}|Location}}
! style="background:#{{red color light}};" | {{color|{{red color dark}}|Map constant}}
! style="background:#{{red color light}}; {{roundytr|5px}};" | {{color|{{red color dark}}|The warp location}}
|- style="background:#fff"
| [[Pallet Town]] || 39 || [[Blue]]'s house
|- style="background:#fff"
| [[Viridian City]] || 42 || [[Poké Mart]] ([[Viridian City]])
|- style="background:#fff"
| [[Pewter City]] || 52 || [[Pewter Museum of Science]]
|- style="background:#fff"
| [[Cerulean City]] || 63 || House next to the Cerulean [[Pokémon Center]]
|- style="background:#fff"
| [[Vermilion City]] || 90 || [[Pokémon Fan Club]]
|- style="background:#fff"
| [[Lavender Town]] || 142 || [[Pokémon Tower]]
|- style="background:#fff"
| [[Celadon City]] || 122 || [[Celadon Department Store]], right entrance
|- style="background:#fff"
| [[Fuschia City]] || 153 || House with NPCs discussing [[Bill]]
|- style="background:#fff"
| [[Saffron City]] || 177 || [[Fighting Dojo]]
|- style="background:#fff"
| [[Cinnabar Island]] || 166 || [[Gym|Pokémon Gym]] ([[Cinnabar Island]])
|}


==Method ({{game|Green}})==
==Examples==
From a new game, the player obtains at least two items, with {{key|I|Oak's Parcel}} in the second 'slot'. The [[bag]] should then be opened and the player should press the Select button on Oak's Parcel, then select 'Cancel' twice. This will cause the cursor to stay white. A wild {{pkmn|battle}} should be initiated and then the player should open the [[party|Pokémon menu]] and select the first Pokémon, swapping it with a [['M (FF)]].  The player should open the fight menu, to prevent the game from managing as if there are no Pokémon on the field when the battle ends and then [[escape|run away from]] or win. The glitch has now been triggered. From here, many players have created methods to warp to certain places.


===Hall of Fame warp===
===Hall of Fame warp===
To warp to the [[Hall of Fame]], players must complete the above method, then follow this method. From the spot the wild Pokémon was battled, the player should take around ''83'' steps, landing the last step on the door of {{ga|Blue}}'s house in [[Pallet Town]]. The player will warp to {{rt|7|Kanto}}, from where the player should walk to [[Celadon City]], enter the [[Pokémon Center]], immediately exit it, then enter the [[Celadon Department Store]] through the right entrance in the most linear way possible. The player will warp to [[Indigo Plateau|Lance's room]], where the player should proceed through the back door. The player should then walk past {{ga|Blue}}, into the next room. The player will now be in the [[Hall of Fame]], which counts as the player defeating the [[Pokémon League]] and will display the credits. Alternatively, entering the Celadon Condominiums building instead of the Pokémon Center will warp the player right to the Hall of Fame room after entering the Celadon Department Store, although with glitchy graphics.
To warp to the [[Hall of Fame]], players must complete the above method, then follow this method. From the spot the wild Pokémon was battled, the player should take around ''83'' steps, landing the last step on the door of {{ga|Blue}}'s house in [[Pallet Town]]. The player will warp to {{rt|7|Kanto}}, from where the player should walk to [[Celadon City]], enter the [[Pokémon Center]], immediately exit it, then enter the [[Celadon Department Store]] through the right entrance in the most linear way possible. The player will warp to [[Indigo Plateau|Lance's room]], where the player should proceed through the back door. The player should then walk past {{ga|Blue}}, into the next room. The player will now be in the [[Hall of Fame]], which counts as the player defeating the [[Pokémon League]] and will display the credits. Alternatively, entering the Celadon Condominiums building instead of the Pokémon Center will warp the player right to the Hall of Fame room after entering the Celadon Department Store, although with glitchy graphics.


{{youtubevid|d4jBckP_mag|ChickasaurusGL|spicy}}
{{youtubevid|d4jBckP_mag|ChickasaurusGL|spicy}}
Line 42: Line 66:
{{youtubevid|Uia4yd_xnFM|ChickasaurusGL|spicy}}
{{youtubevid|Uia4yd_xnFM|ChickasaurusGL|spicy}}


==Name origin==
==In international releases==
The English name of this glitch stems directly from the Japanese name. "Dokokashira" is a transliteration of the Japanese word "どこかしら", which literally means "Where is it". The rest of the name is simply a translation of the Japanese name. The Japanese name is based on the fact that the {{player}} is caused to warp around to seemingly random positions after walking through the door into {{ga|Blue}}'s house, which can cause the player to become lost and may make some Japanese players exclaim "どこかしら".


== Documentation ==
Dokokashira door glitch still exists in {{game|Red and Blue|s}}, but it's not available in early game, as select glitches were removed in international releases. However, triggering this glitch is still possible by [[Memory corruption|corrupting the memory]] with [[Super Glitch (move)|Super Glitch]] or [[ZZAZZ glitch]]. Some of the japanese edition effects are still present, such as map tiles changing every 4 steps, or random Pokémon fainting even though nothing is poisoned. There also exist some effects which didn't happen in {{game3|Red and Green|Japanese Pokémon Red and Green|s}}, like glitchy music and changing item quantities. In international releases, Dokokashira door glitch does not change the warp location.


The first numbers indicates the interval of the number of steps to reach the specified warp:
{{youtubevid|-h30Q83SUWA|TheZZAZZGlitch|spicy}}


{|
==Name origin==
| 1-4
The English name of this glitch stems directly from the Japanese name. "Dokokashira" is a transliteration of the Japanese word "どこかしら", which literally means "Where is it". The rest of the name is simply a translation of the Japanese name. The Japanese name is based on the fact that the {{player}} is caused to warp around to seemingly random positions after walking through the door into {{ga|Blue}}'s house, which can cause the player to become lost and may make some Japanese players exclaim "どこかしら".
| Blue House
|
|-
| 5-8
| Player's house 2nd Floor
|
|-
| 9-12
| Player's house 1nd Floor
|-
| 13-16
| Sea Cottage
| You cannot move.
|-
| 17-20
| Route 24
|-
| 21-24
| Route 23
|-
| 25-28
| Power Plant
| You cannot move.
|-
| 29-32
| Pallet Town (SOUTH) - Route 21 (NORTH)
|-
| 33-36
| GYM (Cinnabar Island!?)
| You cannot move.
|-
| 37-40
| Fuchsia city (South beach)
|-
| 41-44
| Route 18 (Behind the gate)
| Game freezes and resets when you pass behind the building.
|-
| 45-48
| Route 17
| You'll be obligated to go down and game freezes and resets when you go down.
|-
| 49-52
| Route 16 (HM02 (Fly) House)
| Walk right and message will appear, then all the bikers will transform in fat boys. You aren't able to enter in the house.
|-
| 53-56
| Route 15 (Up of the barrier)
| There is a girl instead of a slowpoke in the fenced habitat. Also, walking the west road, there is a "step based glitch".
|-
| 57-60
| Route 13
| Collision glitchs. Moving around the map, it will change to Vermilion City.
|-
| 61-64
| Route 13-12
| You cannot move.
|-
| 65-68
| Route 12 (NORTH)
| You cannot move.
|-
| 69-72
| Route 11
| You'll be over a Youngster trainer, move right.
|-
| 73-76
| Route 10 (Rock Tunel, NORTH)
| Minor graphical glitches. Tunel will teleport you to that PokeCenter, when you leave it, you will be in the south exit of the Rock Tunel. In Lavender Town, game resets.  (Anecdote: PokeCenter will show "POPO" word instead "POKE" first time you press start.)
|-
| 77-80
| Route 9
| You cannot move.
|-
| 81-84
| Route 8?
| You cannot move. The Gambler at south will want to fight you.
|-
| 85-88
| Route 7
| Method for Hall of Fame warp
|-
| 89-92
| Route 6 
|
|-
| 93-96
| Route 5
| Unused Warp #69: Enter and exit the Underground Path.
|-
| 97-100
| Route 4 (MT.Moon) 
| You cannot move.
|-
| 101-104
| Route 3 
| You cannot move.
|-
| 105-108
| Route 2 (Behind Diglett's Cave)
|-
| 109-112
| Route 1
|-
| 113-116
| ▒▒▒▒▒▒▒▒ Black Screen ▒▒▒▒▒▒▒▒
|-
| 117-120
| Saffron City
|-
| 121-124
| Indigo Pleteau (Entrance)
|-
| 125-128
| Cinnabar Island
|-
| 129-132
| Fuchsia City (NORTH-WEST)
|-
| 133-136
| Celadon City (NORTH-EST)
|-
| 137-140
| Vermillion City (WEST)
| You cannot move.
|-
| 141-144
| Lavender Town
|-
| 145-148
| Cerulean City (NORTH-WEST CORNER)
| You cannot move.
|-
| 149-152
| Pewter City (NORTH-WEST CORNER) 
| Major graphical glitches.
|-
| 153-156
| Viridian City (NORTH-WEST CORNER)
| You cannot move.
|}
 
---  After of the 156 step, "Was almost exhausted." message and your step count will go back to 0. --


==External Links==
==External links==
*[http://glitchcity.info/wiki/index.php/Doko_kashira_door_glitch Glitch City Laboratories wiki article]
*[http://glitchcity.info/wiki/index.php/Doko_kashira_door_glitch Glitch City Laboratories wiki article]
*[http://www.youtube.com/watch?v=SKmcDPtjx1I The original video of the Dokokashira Door glitch]
*[http://www.youtube.com/watch?v=SKmcDPtjx1I The original video of the Dokokashira Door glitch]
Line 201: Line 81:
*[http://www.youtube.com/watch?v=WpXLN9eFe1c A video entitled "Pokemon Green in 0:05" which takes advantage of the Dokokashira door glitch]
*[http://www.youtube.com/watch?v=WpXLN9eFe1c A video entitled "Pokemon Green in 0:05" which takes advantage of the Dokokashira door glitch]
*[http://pokemonbug.oh.land.to/rgb/711worp.html Discovering website's page on the glitch]
*[http://pokemonbug.oh.land.to/rgb/711worp.html Discovering website's page on the glitch]
*[http://forums.glitchcity.info/index.php/topic,6661.msg189861.html Thread on Glitch City Laboratories, explaining the English Red/Blue/Yellow equivalent of Dokokashira Door glitch]


{{Glitches}}<br>
{{Glitches}}<br>