How to calculate dokokashira door glitch steps.
Posted by: Torchickens
Date: 2010-10-03 11:17:31
Let's take for example, Pallet Town:
You can reset the identifier back to its constant and warp in as little as 9 steps. This warp location according to address D2DD is (0x25) and corresponds to your house. So if you travelled 13 steps you would be travelling to (0x24): Route 25, and if you travelled 17 steps you would be travelling to (0x23): Route 24.
By following the identifiers back you can work out the constant. 1 step denotes (0x27): Rival's House but if we presume that the "your house" warp is 8-11 steps then theoretically warping without taking any steps in Pallet Town would take you to (0x27), so the constant in decimal is 39.
You can reset the warp identifier back to the constant by stepping in and out of "non-warpable" entrances. In Pallet Town, these are your house, the start of Route 1 and Professor Oak's Lab.
From these, you can make the equation:
Warp I.D= Floor: k-(steps/4)
Where k is the warp constant and warp I.D is the map identifier in decimal (see here: http://forums.glitchcity.info/index.php/topic,5952.0.html).
This equation doesn't work for large amounts of steps, (where the warp I.D. falls below 0) and I think once the warp I.D reaches zero it no longer falls any more although the equation should work as long as you know what the warp constant is.
Warp constants:
I haven't found what determines the warp constant yet (definitely isn't the same as the map I.D), although here are a few:
Pallet Town - (0x27): 39; reset via your house, start of Route 1, Professor Oak's Lab.
Celadon City - (0x7A): 122 reset via Pokémon Center, Celadon Condominiums.
Cinnibar Island - (0xAB): 171 reset via Cinnibar Mansion, PokéMart.
Cinnibar Lab - (0xE5): 229 reset via laboratory rooms (untested)
Last Edit: October 06, 2010, 20:21 pm (added Cinnibar Island and Lab warp constants)