Glitch City RAM manipulation (Cut abuse)

From Glitch City Wiki
Revision as of 10:18, 11 July 2016 by >ISSOtm (Finished the first section, fixed the template, continued Krys' method, edited ZZAZZ's, added an unfinished Reaching (etc.) section,)
Miscellaneous glitches of Pokémon Red and Blue and Pokémon Yellow

Amazing Man (Red and Blue only) | Cable Club escape glitch | Celadon looping map trick | Champion Blue music muting glitch | Coastal Flooding | Confusion and Substitute glitch | Cooltrainer move | Cycling based glitch maps | Escape sprite handling glitch | Evolve without an evolutionary stone (Red and Blue only) | Evolving Raichu (Red and Blue only) | Expanded item pack | Expanded Pokédex | Focus Energy glitch | Get stuck in a wall | Ghost Bicycle glitch | Glitch encounter system | Glitch City RAM Manipulation | Infinite Blaine Door | Introduction Nidorino glitch (Red and Blue only) | Invisible PCs (Red and Blue only) | Invisible tree glitch | Item stack duplication glitch | Mute the music in the Pokémon League | Partial trapping move link battle glitch | Pokémon Tower Pokédex glitch | PP underflow glitches | Recovery move glitch | Rival's effect | See a Ghost without a Silph Scope | Selfdestruct and Substitute glitch | Silph Co. PC Glitch | Slot machine glitch | Stand on a tree | Statue behavior glitch (Red and Blue only) | Super effective move AI flaw (Red and Blue only) | Super Glitch | Surf down glitch | Swift miss glitch | Transform assumption glitch | Transform Empty Move Glitch | Trick Zone | Vending machine purchase glitch | Walk around with only fainted Pokémon (Red and Blue only) | Walking lag glitch | Walk on water through Surf | Walking Pikachu happiness glitch (Yellow only) | Wild appeared! | ZZAZZ Glitch

(view, talk, edit)

Glitch City RAM manipulation is a glitch that allows the player to edit RAM by cutting trees in a specific Glitch City, named RAM City. This allows the player to change a value in RAM from a specific set to another specific value.


Uses

Using this glitch, the player is able to edit arbitrary bytes in RAM. However, there are restrictions :

  • Only a few fixed values can be changed.
  • Each of these values change to another fixed value.
  • Not every byte can be changed this way.


General pattern

The glitch is essentially three steps :

  1. Accessing the RAM City
  2. Finding the correct place
  3. Cutting the tree.

The only true requirement is the ability to CUT. The current methods of accessing the Glitch City currently require the player to access Fuchsia City, but a method only requiring Pewter City will maybe be developed.


Accessing the Glitch City

TheZZAZZGlitch's method

This method is simple to perform, and only requires the player to have enough money to access the Safari Zone and the ability to SURF. Its downsides are that the player has less options when it comes to choosing their RAM address, and also has to have beaten Koga and found the Secret House.

  1. The player must perform the Safari Zone exit glitch, being called by the PA on Sea Route 20 (the place the player is when being recalled does not matter).
  2. Upon exiting the Safari Zone gate, the player should be standing in the Sea Route 20 Glitch City.
  3. The player should step south once, the go left until they are two steps above a cave. Going any further left will trap the player in a glitched area.
  4. The player should be stuck. If so, press Up to face north.
  5. Then, open the START menu. If done correctly, the map should be flooded with water.
  6. The player should SURF, then move right.
  7. The player will be in the RAM City, at coordinates ($6C ; $63)

Krys' method

This method offers a wide range of manipulable addresses, but it requires the player to perform Walk through walls.

  1. Perform any method of Walk through walls.
  2. The player should stand here :
     
  3. The RAM City can be accessed by walking left until the player is standing on water ; the player will be at coordinates ($DC ; $63).


Reaching the correct place

Each method place the player at different coordinates ; any coordinates correspond to a 2x2 tiles block, which correspond to a byte in RAM. Here is the formula :

Target address = $C721 + $38 * (floor(Vpos / 2) + 2) + (floor(Hpos / 2) + 2)

Note that the same address is targeted by moving 1 step up or 38 steps left !

Coordinates are given like so : (Vpos ; Hpos).

To get the optimal coordinates of address A, do the following :

  1. Subtract $C721 from A ; call that B.
  2. Divide B by $38, rounding down ; call that C.
  3. Multiply C by $38 ; call that D.
  4. Subtract D from B ; call that E.
  5. Your destination coordinates are (C*2 ; E*2) !
Actually, these aren't the optimal coordinates... you can sometimes save some walking left by going one less time up. Oh well.


Cutting the tree

The player should find a cuttable tree in the . Cutting it will change the byte in RAM, and that's it !

Side note : the player may find, instead of a cuttable tree,


Possible values

Obviously, we need the value of the byte we want to change to spawn a cuttable tree. Good news, there is a few values that do just that. All values in the following table are hexadecimal. Refer to The Big HEX List for corresponding Pokémon, Items and Attacks.

Value... 0B 32 33 34 35 60
will become... 0A 6D 6C 6F 4C 6E