Jump to content

Coin Case glitches: Difference between revisions

no edit summary
>Torchickens
No edit summary
>Torchickens
No edit summary
Line 1:
{{Arbitrary code execution}}
{{Major glitches}}
{{Outdated|Document new exploits, in particular simpler box name exploits}}
{{Summary page}}
{{incomplete}}
Line 8 ⟶ 9:
 
The Coin Case glitch was previously thought to be relatively useless, with things like [[Glitch Dimension]]s, 'glitchy coin counts' and freezes, being the only effects found, however, after Sanky and TheZZAZZGlitch researched the glitch, it was found that is possible to execute [[Arbitrary code execution|execute arbitrary code]] with it to do many things which began with exploits such as causing a custom message to be displayed by the Coin Case, [http://tasvideos.org/4233S.html warping to Mt. Silver and enabling Red], and obtaining Celebi or a [[?????|????? (FF)]].
 
==Arbitrary code execution exploits summary==
There are two commonly used variations of Coin Case arbitrary code execution. These include both arbitrary code execution through using box names and through using stored PC items.
 
Having a 'fresh' low level Pokémon (also known as a "slide Pokémon") in slot 3 and a special Quagsire in slot 4, making a specific movement pattern (such as four steps right from walking out of Cherrygrove Poké Mart or Professor Elm's lab), listening to Bellsprout or Machop's cry, switching item pockets (necessary) and using the Coin Case will lead to arbitrary code execution.
 
In order to execute box names as code (beginning from the second character of the first box name) the Quagsire should be holding a TM02 with Return as its first move.
 
If the player wants to start the execution at the first character of the first box name the Quagsire should be holding a TM01 instead, however TM02 can be obtained multiple times while TM01 cannot and this will likely not be compatible with codes that expect the TM02 setup.
 
In order to execute stored PC items as code the Quagsire should instead be holding a HP Up and know Sleep Talk as the first move (if the code starts at stored item 2's quantity), or be holding a Protein with Sleep Talk as the first move (if the code starts at stored item 3's item).
 
===Troubleshooting===
====Emulation problems====
Coin Case arbitrary code execution sadly will only work on English (both NA and EU) versions of Pokémon Gold and Silver. It will not work in the French, German, Spanish, Italian versions nor the Japanese and Korean versions.
 
If Coin Case arbitrary code execution is being performed on an emulator, it should first be performed on one that supports Echo RAM, as the Coin Case will always execute code in this region, and if there is incorrect emulation any Coin Case arbitrary code execution glitches will not work. An example of an emulator that doesn't support Echo RAM emulation is an older version of VisualBoyAdvance (however some newer versions support it), while an example of an emulator that correctly supports Echo RAM emulation is [http://bgb.bircd.org/ the latest version of BGB emulator].
 
Furthermore Coin Case arbitrary code execution may not work on Pokémon Stadium 2's GB Tower again due to incorrect Echo RAM emulation.
 
A few glitches that rely on obscure hardware details, such as YouTube user Crystal_'s real time walk through walls glitch OAM DMA exploit may also fail to work on certain platforms/emulators (possibly even including the 3DS Virtual Console Pokémon Gold and Silver).
 
====Slide Pokémon====
One of the most common problems with Coin Case arbitrary code execution is from having a bad slide Pokémon in slot 3. A "slide Pokémon" is a Pokémon that hasn't been trained, has good DVs, is at a good level (preferably low, caught from Route 29), has good stats and a good happiness value.
 
Unfortunately getting a good slide Pokémon is luck dependent, and it could take many attempts (even over 20 Pokémon) for you to get one.
 
The reason why bad attributes on the slide Pokémon is problematic is because these attributes are executed as code, until the game gets to Pokémon 4 where it reads the Quagsire's held item and first move as a jump location (because Quagsire's index number C3 represents the instruction jp yyxx) to a place like box names or stored PC items (depending on the item and move). This means bad opcodes such as FF (rst $38) could cause the game to not 'fall through' to the Quagsire's data, causing the game to never be able to execute the box names or stored PC items as code.
 
If a slide Pokémon was working in the past and suddenly stopped working the problem could be caused if the Pokémon gained experience (increasing its stat experience) or gained a bad happiness value. For this reason one should not walk too many steps with the slide Pokémon, and it is a good idea to faint the slide Pokémon if it previously worked but you can't get it to work anymore and didn't make it gain any experience.
 
====Wrong box names/stored PC items====
It is very important for the box names (if using a box name method) to be exactly right. If they are wrong (even if it is a small mistake such as using a character without an apostrophe before it or the wrong "x" character) the glitch will most likely not work. For this reason be extra careful when entering the box names.
 
It is also important to have stored PC items that are exactly right and are in the exact order if using a stored PC item method.
 
Sometimes as well a box name or stored PC item code will expect that the code begins at a specific location (such as character 2 of the first box name if using TM02 and Return). If the code is meant to be for another setup (like character 1 of the first box name if using TM01 and Return) then the code may not work.
 
 
====Not switching pockets====
Before using the Coin Case it is very important to switch item pockets at least once, or the glitch may not work.
 
====Cries and movement pattern====
If the player listened to a Pokémon cry other than Bellsprout, Machop (and a select few other compatible Pokémon) the glitch won't end up executing code in the desired location.
 
The player must also make the exact number of steps for the movement method (most commonly four steps right after walking outside of Professor Elm's lab or Cherrygrove City's Poké Mart) as making the wrong movement pattern will cause the arbitrary code execution glitch not to work.
 
====Pressing A after viewing the Coin Case====
For some box name codes, pressing A instead of B after viewing the number of coins in the Coin Case may cause the game to reset or freeze. For this reason one should always press B.
 
These codes may also slow down menus to the extreme and disable sprites. This is a workaround to the Coin Case glitch corrupting the [[stack pointer]] and can be fixed by tapping down to get to the save option, tapping A to save the game and resetting the game.
 
==Cause==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.