Jump to content

Dokokashira door glitch: Difference between revisions

>Torchickens
 
(26 intermediate revisions by 8 users not shown)
Line 1:
{{Select bugsglitches}}
{{Japan only}}
{{bulbapedia2|dokokashira door glitch}}
[[Image:Dokokashira 8.png|frame|right|After the player activates the dokokashira door glitch, Professor Oak will appear outside. Talking to him makes him say his speech for if the player tried to walk into one of the first two available grass tiles with no Pokémon, but nothing noticeable happens after that.]]
 
The '''dokokashira door glitch''' (Japanese: どこかしらドア, ''dokokashira door'') is one of the most popular [[select glitch]]es in Japan, and it is the most well known select glitch outside of Japan. It can only be performed in Pocket Monsters Red, Green and Blue{{RGB}}, due to the select button glitch being patched in Pocket Monsters Pikachu{{JY}} and the localizations.
 
The name 'dokokashira door' wasis probablyused coined fromon the now offline site [http://pokemonbug.oh.land.to/ pokemonbug(.oh.land.to)], which(now referredoffline, tobut the glitchsite usingcan thisbe accessed through [http://pokemonbug.yu-nagi.com/ pokemonbug(.yu-nagi.com)]), but who coined the name is unclear. 'Dokokashira' (Japanese: どこかしら) means something like "I wonder where it is?" when translated into English, and it probably refers to the player warping around different locations that may seem random without further analysis.
 
This glitch allows the player to warp to almost anywhere in the game, including the Hall of Fame, simply by walking around. The glitch can be pulled off very early in the Japanese games except Yellow, and it has been utilized in both real time and tool-assisted speedruns of the games.
 
The dokokashira door glitch, though allowing the player to enter the Hall of Fame quickly, is not the fastest way to complete any Generation I game. The [[save corruptionSRAM glitch]] can be used to complete the game even faster, without the player character having to leave their house, or even their room, but the method to complete the game without the player leaving their room is more complicated.
 
==Emulation issues==
This glitch will not work on earlier versions of VisualBoyAdvance{{elaborate}}, but [http://tasvideos.org/forum/viewtopic.php?t=2050&postdays=0&postorder=asc&start=280 a fix] was posted by Dwedit on the TASVideos forums, where the dokokashira door glitch works. The problem [http://tasvideos.org/forum/viewtopic.php?t=5116&postdays=0&postorder=asc&start=20&sid=00248fb1c764101befa6cbbd41a1254a was speculated to be] because of incorrect Echo RAM emulation.
This glitch will not work on earlier versions of VisualBoyAdvance, apparently due an emulation issue regarding echo RAM (address range E000-FDFF).{{elaborate}}
 
OneAnother working version is the re-recording emulator vba-v24m-svn422 and likely others. ItThe dokokashira door glitch will work on BGB (at least version 1.4) and on a real Game Boy system, though.
 
==Methods for warping to the Hall of Fame==
Line 44:
[[File:Dokokashira 3.png]]
 
6. Open the party screen (from battle) and choose the first Pokémon to swap the non-existing second Pokémon with the first. It is now an [[GlitchDexGlitchDexJP/RG:255|'AnedapamiAnedepami']].<br>
[[File:Dokokashira 4.png]][[File:Dokokashira 5.png]]
 
Line 50:
[[File:Dokokashira 6.png]]
 
8. Either run away from battle, or defeat the enemy Pokémon (defeating the opponent allows the player to 'battle with' "AndepamiAnedepami" even though practically your starter is still out, but the game may freeze if the opponent uses a move.<br>
[[File:Dokokashira 7.png]]
 
Line 85:
 
===Method #3===
This method only makes use of only one 'dokokashira warp', but it takes many steps.
 
#Activate the glitch in [[bp:Kanto Route 1|Route 1]] and enter Pallet Town (the music and palette will change).
#Enter Professor Oak's lab.
#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.
Line 95 ⟶ 96:
 
==Eevee Trick==
The Eevee Trick, discovered by [[user:Pawny|Pawny]] (among non-Japanese native people{{clarify}}) allows you to 'patch' the effects of the Hall of Fame on your save file. It also allows you to get up to 25 Eevee. After you watch the credits after warping to the Hall of Fame and reload your save file, you will be outside of your house with the dokokashira door glitch's warping effect still active.
 
Travel the same amount of steps required to warp to Route 7, then travel to the right-most back entrance of the Celadon Mansion and enter it (the amount of steps required to enter the mansion don't really matter). Do not enter the left-most entrance or you'll warp to somewhere else.
Line 112 ⟶ 113:
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 a 'post-six Pokémon' being poisoned, and because there was no FF before D335 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).
 
In order to alter the wrong warps every four steps, three criteria are necessary.
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 D335 which are FF.
 
*The 199th Pokémon must be poisoned (F337 (Echo RAM for D337) must have bit 0x3 set; as it does for the 0x0C value loaded into D337 upon entering Pallet Town). Note that even though this Pokémon is in fact poisoned, the poison screen transition/sound effect may not occur. D337 is the x-coordinate of the Professor Oak's laboratory door warp.
If the player has obtained more than one Pokémon, there will normally be FFs following the number of Pokémon they have in the party{{clarify}} even if the current number of Pokémon is less than the most Pokémon they had in the party in the past. If the player obtains the most amount of Pokémon they previously had in the party through the storage box (at most 6), they can pull off the glitch by swapping [number of Pokémon in the party +1] with the first Pokémon, but there may still be addresses before D335 that are FF, so the warping may not work. The 'Professor Oak is outside' part of the glitch may work without the warping.
*F334/F335 (D334/F335) (the 199th Pokémon's current HP; 0 to 65535) must first be a 16-bit value greater than 0 (otherwise the wrong warp is always Pallet Town because poison does not underflow a fainted Pokémon's HP).
**Additionally, if it is possible to adjust F334 to a value over 0 (so F334-F335 represents 256*n as the HP where n>0, it is possible to access relatively high warp IDs as in this case, F335 will wrap around from 0x00 (Pallet Town) to 0xFF ([[AreaDexJP/RG:255|glitch map 255]]) and below whenever F334 is decremented (a loss of 256 HP). From 0xFF it will take 255*4 steps to become 0x00, after which taking another four steps decrements F334 by 1 and sets F335 to 0xFF. This process of having to walk 256*4 steps to underflow from 0x00 from 0xFF repeats, until F334 becomes 0x00 as well - from there on the wrong warp is always Pallet Town as above.
*There must be no 0xFF 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). F334 is the index number of the entrance point ('index') of the map, for instance a value of 0x00 is the left-side of the carpet in Blue's house, and 0x01 is the right-side of the carpet.
 
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 D335D1EA which are FF.
 
If the player has obtained more than one Pokémon, there will normally be FFs following the number of Pokémon they have in the party{{clarify}} even if the current number of Pokémon is less than the most Pokémon they had in the party in the past. If the player obtains the most amount of Pokémon they previously had in the party through the storage box (at most 6), they can pull off the glitch by swapping [number of Pokémon in the party +1] with the first Pokémon, but there may still be addresses before D335D1EA that are FF, so the warping may not work. The 'Professor Oak is outside' part of the glitch may work without the warping.
 
===Planning a path===
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 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].
Line 127 ⟶ 137:
"Steps" is the number of steps you need to take.
 
D335F335 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 D335F335.
 
Please refer to the following table for a list of map constants and 'dokokashira' warps:
Line 135 ⟶ 145:
{| border="1"
!Location
!Map constant (D335F335, [[decimal]])
!The warp location
|-
Line 180 ⟶ 190:
 
==See also==
 
#[[International 'dokokashira door glitch']]
#[[Select glitch]]
Line 192 ⟶ 203:
 
==Trivia==
 
*The name 'dokokashira door' is similar to 'Dokodemo Door' (Japanese: どこでもドア, ''anywhere door''), a gadget from the manga and anime Doraemon which is popular in Japan. The Dokodemo Door allows others who enter it to warp to an arbitrary distant place.
 
[[Category:SpeedSpeedrunner Runner Glitchesglitches (Green)]]
[[Category:Major glitches]]
[[Category:Generation I glitches]]
[[Category:Speedrunner glitches]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.