Jump to content

Dokokashira door glitch: Difference between revisions

no edit summary
>Torchickens
>Torchickens
No edit summary
Line 2:
{{Japan only}}
{{bulbapedia2|dokokashira door glitch}}
[[Image:Dokokashira 8.png|200px|thumbframe|right|Presuming that the player has recently started a New Game, in Pokémon Green. After the player switchesactivates the seconddokokashira item:door Oak's Parcel with the first Pokémon the values of various RAM addresses will be 'switched'. For exampleglitch, [[bp:Professor Oak|Professor Oak]] will beappear forcedoutside. Talking to appearhim outsidemakes ofhim Palletsay Townhis andspeech importantly,for if the mapplayer identifiertried managedto bywalk certaininto warpsone inof the areafirst willtwo startavailable atgrass atiles constantwith andno depletePokémon, everybut fournothing stepsnoticeable untilhappens reachingafter zerothat.]]
 
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, due to the select button glitch being patched in Pocket Monsters Pikachu and the localizations.
The '''doko kashira door glitch''' is one of the more notable examples of [[select bugs]], which only exist within the Japanese [[bp:Pokémon Red and Green|Pokémon Red and Green]]. It is perhaps the most well known example in [[wikipedia:Japan|Japan]] and outside of Japan with the original [[wikipedia:Youtube|Youtube]] video having over two million views. The glitch, amongst other select bugs were documented within the website pokemonbug with URL [[pokemonbug.oh.land.to]] and was later referenced by many other (especially Japanese) Pokémon glitch related websites. The phrase "doko kashira" is a transliteration of the Japanese word "どこかしら", literally meaning "where is it?", perhaps in reference to the [[glitch]]'s arbitrary nature, where without careful planning it is difficult to predict the next location the player is going to arrive.
 
The name 'dokokashira door' was probably coined from the now offline site [http://pokemonbug.oh.land.to/ pokemonbug(.oh.land.to)], which referred to the glitch using this name. '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 [[select bug]] has been primarily exploited for the manipulation of the map identifier that another entrance, or exit will take the player to. It has been fairly popular for tool-assisted speedruns of [[bp:Pokémon Red and Green|Pokémon Red and Green]] even outside of [[bp:Pokémon in Japan|Japan]] because of fast routes allowing the player to warp to the Hall of Fame, usually in under five minutes. However, doko kashira door glitch TAS submissions relating to the [[bp:Generation I|Generation I]] main-series Pokémon games have since been obsoleted by [[Save corruption abuse|save corruption techniques]].
 
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.
As with all [[select bugs]], the doko kashira door glitch is no longer exploitable in the special edition, Japanese [[bp:Pokémon Blue (Japanese)|Pokémon Blue]] because the updated engine of [[bp:Pokémon Blue|Pokémon Blue]] no longer keeps the select [[flag]] as set (1), if the player has recently pressed the select button on an item and closed the item pack. Additionally, the updated game engine of Japanese Pokémon Blue prevents the possibility of 'switching an item with a Pokémon'. Since the newer localizations of the first generation of main-handheld Pokémon games were based off the game engine of the original Japanese Pokémon Blue, the doko kashira door glitch and any other select bugs are not exploitable in European, NTSC or Korean localizations of the game.
 
The dokokashira door glitch is not the fastest way to complete any Generation I game though, as the [[save corruption 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.
 
==Methods for warping to the Hall of Fame==
This section will describe the most commonly used methods to walk to the Hall of Fame.
 
===Requirements===
This glitch may not work later in the game, for the reasons described in the [[Dokokashira door glitch#Explanation|explanation]] section. It has not been verified with the player having obtained more than one Pokémon and more than two items.
 
The player needs:
 
#A Japanese version of Pokémon Red, Pokémon Green or Pokémon Blue. Pocket Monsters Pikachu and the localizations will not work.
#Two items in the items pack (these will be the Potion and Oak's Parcel in the steps below).
#One Pokémon.
 
===Initial steps===
 
1. Open the items pack outside of battle. If you are using [[revision differences in Generation I|version 1.0]] of Pocket Monsters Red or Green (your cartridge will have a 00, 20 or 22 written on it), then you can perform the first step of this glitch by selecting an item from within battle, but the ability to swap Pokémon or invalid Pokémon around from directly in battle was removed in revision A (12A or 22A on the cartridge) and Pocket Monsters Blue.<br>
[[File:Dokokashira 1.png]]
 
2. Press the select button on the second item (normally [[bp:Oak's Parcel|Oak's Parcel]], but the item there and its quantity doesn't matter).<br>
[[File:Dokokashira 2.png]]
 
3. Exit the menu via B,B or return to the battle interface via B (Red/Green version 1.0).
 
4. If not already in battle (Red/Green Rev A or Japanese Blue), enter a battle now without opening the menu again.<br>
[[File:Dokokashira 3.png]]
 
5. 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 [[GlitchDex/RG:255|'Anedapami']].<br>
[[File:Dokokashira 4.png]][[File:Dokokashira 5.png]]
 
6. Enter the FIGHT screen. This is important, because it prevents an 'endless healing loop' where after you black out your first Pokémon is still fainted.<br>
[[File:Dokokashira 6.png]]
 
7. Either run away from battle, or defeat the enemy Pokémon (defeating the opponent allows the player to 'battle with' "Andepami" even though practically your starter is still out, but the game may freeze if the opponent uses a move.<br>
[[File:Dokokashira 7.png]]
 
===Method #1===
First, make sure you follow the initial steps written above under the [[Dokokashira door glitch#Initial steps|initial steps]] heading.
 
The following method has since been obsoleted:
 
1. Activate the glitch in [[bp:Kanto Route 1|Route 1]] and enter Pallet Town (the music and palette will change).
 
2. Travel 81-84 steps, no more, not returning to Route 1 (or you'll have to go back to step 1 of this section), and landing the final step in the [[bp:Blue (game)|Rival's]] house door. Note that Professor Oak will be 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.<br>
[[File:Dokokashira 8.png]][[File:Dokokashira 9.png]][[File:Dokokashira 10.png]]
 
3. From [[bp:Kanto Route 7|Route 7]], travel any number of steps to the west and enter the Celadon Mansion building or the Celadon Pokémon Center. You should notice water tiles have appeared. Ignore them.<br>
[[File:Dokokashira 11.png]][[File:Dokokashira 12.png]][[File:Dokokashira 13.png]][[File:Dokokashira 14.png]]
 
4. Exit and walk to the right entrance of Celadon Department Store in the most linear way possible, landing the final step on the Celadon Department Store door.<br>
[[File:Dokokashira 15.png]][[File:Dokokashira 16.png]]
 
5. If you chose the Celadon Mansion building you will warp to the Hall of Fame directly, and it will register your Pokémon even though the map looks glitchy. If you chose the Pokémon Center, you will warp to Lance's room and from there you can walk up to Blue's room, and from there to the Hall of Fame, where your Pokémon will be registered and you can watch the credits. You don't need to fight Blue, and he will actually disappear, with Professor Oak appearing at the entrance to his room.<br>
[[File:Dokokashira 17.png]][[File:Dokokashira 18.png]][[File:Dokokashira 19.png]][[File:Dokokashira 20.png]][[File:Dokokashira 21.png]][[File:Dokokashira 22.png]]
 
==Method #2==
 
The following method is currently the standard for dokokashira door glitch TASes.
 
#Activate the glitch in [[bp:Kanto Route 1|Route 1]] and enter Pallet Town (the music and palette will change).
#Travel 45-48 steps, landing the final step in the [[bp:Blue (game)|Rival's]] house door.
#From [[bp:Kanto Route 16|Route 16]], attempt to walk down the top-right corner of the house where the girl who gives players the [[bp:Fly (move)|Fly]] HM is located.
#The player will warp directly to the [[bp:Celadon City|Celadon City]] [[bp:lookout station|lookout station]]. Save here in case you encounter a wild Pokémon later.
#Go through the right-most exit and walk nine tiles east. You should be one tile west of the tree. Walk down until you hit a wall (you will go through the bush even if you see it). If you encounter a wild Pokémon reset the game and try again.
#Proceed eastwards to [[bp:Celadon City|Celadon City]]. Stop when the palette changes and the music changes to Celadon City's theme.
#Walk two steps right, four steps up, eight steps right, and one step up, landing the final step on the right-most Celadon Department Store door. You will warp directly to the Hall of Fame, and it will register your Pokémon even though it looks glitchy.
 
==Eevee Trick==
The Eevee Trick, discovered by [[user:Pawny|Pawny]] 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.
 
Go up the stairs and through the door for the small building within the building, then you can obtain Eevee from the item ball up to 25 times (so you fill both your party and box 1). The item ball will disappear once you exit the building.
 
==Explanation==
''MainPlease articlesee: [[Select bugsglitch]] for further information.''
 
This select button glitch involves the player putting the end party terminator (hex:FF) at the top of the party. Before the player delivers Oak's Parcel, they must have only obtained one Pokémon in normal circumstances, so the end party terminator directly follows the first Pokémon.
==Requirements==
 
When the player swaps the second Pokémon with the first via the select button glitch with a Potion and Oak's Parcel (this involves highlighting the second item with select, exit with B, B, entering battle, going to 'Pokémon' and pressing A on the first Pokémon to swap it) it confuses the game into thinking that Pokémon past the sixth position are real Pokémon. In actuality, their data is not used for real Pokémon data and the data is used for other things, as the game uses simple extrapolation.
#A Japanese version of Pokémon Red, or Pokémon Green.
#This [[glitch]] may not be successful in later areas of the game.
#Two items in the player's bag, with [[bp:Oak's Parcel|Oak's Parcel]] as the second.
#At least one 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).
==Triggering the exploit (Pokémon Green)==
 
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).
#Open the item pack, preferably when in battle.
#Press the select button on the second item ([[bp:Oak's Parcel|Oak's Parcel]])
#Exit the menu via B,B or return to the battle interface via B.
#If not already in battle, enter a battle now without opening the menu again.
#Open the party screen (from battle) and choose the first Pokémon to 'switch it with Oak's Parcel', it is now an [[GlitchDex/RG:255|'Anedapami']].
#Enter the FIGHT screen ({{Explain|this is important|Prevents an 'endless healing loop', associated with the CANCEL like properties of RG:255 where the game presumes that the player has no Pokémon}}).
#Either run away from battle, or defeat the enemy Pokémon (defeating the opponent allows the player to battle with 'Andepami' although the game will freeze if moves such as [[bp:Growl (move)|Growl]] are used by the opponent.
 
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.
==Related mechanics and route calculation==
After triggering the glitch, the next warp location for entrances, where in which case the associated map number is affected by the doko kashira door glitch is set to a constant, depending on the map location that the player was when he or she exploited the glitch. This value decreases by 1 every 4 steps and changes the value of map number address D2DD to what was stored (which is representable by k-s/4 where 's' is a 'steps taken value', though 's' is not an internal mechanic) when the player is warped from such an entrance. The 'warp constant' "k", is refreshed by certain entrances which don't warp the player to the wrong location, where when entered or exited the amount of steps taken 's' is reset to 0.
 
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 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.
If k-s/4 falls below 0, the warp location the player would be taken to remains at Pallet Town and does not loop back to value 255 if an additional four steps are taken.
===Calculation===
 
===Planning a path===
From the information above, the warp I.D is determined by Warp I.D= k-(steps/4), where "Warp I.D" is the decimal identifier of a desired map location, where k is the "warp constant" and where steps are the amount of steps taken by the player.
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)
This can be re-arranged as Steps = 4k - (4 * warp I.D) to plan a route to a desired map location by adding values for k (the warp constant) and the warp I.D, as long as the result does not fall below zero.
 
"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].
===List of locations by identifier===
Please see here: [http://forums.glitchcity.info/index.php?topic=5952.0;wap2]
 
"Steps" is the number of steps you need to take.
===List of entrances which refresh the 'step count' and 'warp constant'===
{{incomplete2}}
 
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.
{| border="1"
!Associated map
!Entrances
|-
|Pallet Town/Route 1
|Start/finish of Route 1, player's house, Professor Oak's Lab
|-
|Celadon City
|Pokémon Center, Celadon Condominiums, proceed from [[bp:Kanto Route 16|Route 16]]
|-
|}
 
There will be one (or possibly more) 'dokokashira' warps that set the player's current location to the value stored in D335.
===List of warp constants===
 
{{incomplete2}}
Please refer to the following table for a list of map constants and 'dokokashira' warps:
 
{| border="1"
!Location
!Associated map location(s)
!ValueMap constant (D335, [[DECdecimal]])
!The warp location
!Value ([[HEX]])
|-
|Pallet Town, Route 1
|39
|Blue's house
|0x27
|-
|Virdian City
|42
|Poké Mart
|-
|Pewter City
|52
|Pewter Museum
|-
|Cerulean City
|63
|House next to the Cerulean Pokémon Center
|-
|Vermilion City
|90
|Pokémon Fan Club
|-
|Lavender Town
|142
|Pokemon Tower
|-
|Celadon City
|122
|Celadon Department Store, right entrance.<br>Celadon Mansion back and right-most entrance.
|0x7A
|-
|Fuchsia City
|Cinnabar Island
|171153
|House with NPCs discussing Bill
|0xAB
|-
|Saffron City
|Route 16
|183177
|Fighting Dojo
|0xB7
|-
|Cinnabar Island
|166
|Cinnabar Gym
|}
 
==Sample route guides==
 
*Please see [[:Category:Documented doko kashira door glitch routes]].
 
==See also==
#[[Select bugsglitch]]
#[[Fossil conversion glitch]]
#[[Tweaking]]
#[[Surf through Elite Four door glitch]]
 
==External Links==
 
#[[bp:Dokokashira door glitch|Dokokashira door glitch article on Bulbapedia]].
#[http://www.youtube.com/watch?v=ZDtJCLOpOYE] - A Pokémon Green Tool-Assisted Speedrun.
#[http://www.ocfyoutube.berkeley.educom/~jdonald/pokemon/dokokashira.html] -watch?v=ZDtJCLOpOYE A briefPocket summaryMonsters Green TAS making use of the doko kashiradokokashira door glitch].
#[http://www.ocf.berkeley.edu/~jdonald/pokemon/dokokashira.html A brief summary of the dokokashira door glitch by hanzou].
#[http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&u=http://pokemonbug.oh.land.to/index.html&sl=auto&tl=en&history_state0=] pokemonbug.oh.land.to; a Japanese Pokémon site translated into English, which has noted the Doko-Kashira Door Glitch as well as the methods involved in it.
#[http://pokemonbug.oh.land.to/] pokemonbug.oh.land.to in Japanese.
 
==Trivia==
*The name 'dokokashira door' is similar to 'Dokodemo Door' (Japanese: どこでもドア, ''anywhere door''), a gadget from the manga and anime [[wp:Doraemon|Doraemon]] which is popular in Japan. The Dokodemo Door allows others who enter it to warp to an arbitrary distant place.
 
[[Category:Speed Runner Glitches (Green)]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.