Item stack duplication glitch

From Glitch City Wiki
Revision as of 19:09, 6 December 2018 by >Torchickens
Jump to navigation Jump to search
Major glitches of the Pokémon series


Arbitrary code execution

0x1500 control code arbitrary code execution (Crystal) | Cart-swap arbitrary code execution | Generation I custom map script pointer | Generation I invalid meta-map scripts | Generation I item ("8F", "ws m", "-g m", "5かい", "てへ" etc.) | Generation I move ("-", "TM42") | Generation I Trainer escape glitch text boxes | Generation II bad clone | Generation II Burned Tower Silver | Japanese Crystal Pokémon Communication Center SRAM glitches | Coin Case glitch | Generation II glitch Pokédex sortings | Pikachu off-screen glitch ACE | OAM DMA hijacking | Pikachu glitch emote | Generation III glitch Pokémon summary | Generation III glitch move animation) | Remote code execution | TM/HMs outside of the TM/HM pocket | ZZAZZ glitch Trainer FC


No further extensions

Cloning | Item duplication glitch (Generation I) | Pokémon merge glitch ("Q Glitch", Generation I) | Time Capsule exploit | Bug-Catching Contest data copy glitch (Generation II, Japan only) | Berry glitch | Battle Tower Lati@s glitch (Generation III) | (Mimic) Transform Rage glitch (Generation IV)

Transform held item glitch (Generation IV, Japan only) | Mimic glitch (Generation IV, Japan only)


Buffer overflow techniques

99 item stack glitch | LOL glitch | Rival LOL glitch | Instant LOL glitch | RAM LOL glitch | Out of bounds LOL glitch | blockoobLG | Instant encounter infinite chain glitch | LGFly | Super Glitch (Generation I) | Party remaining HP glitch | Super Glitch (Generation III) | Text pointer manipulation mart buffer overflow glitch | CoolTrainer♀-type move | Double distort CoolTrainer♀ corruption | Yami Shop glitch | Party Pokémon box data shift glitch | Unterminated name glitch item instant encounter (Japanese Red/Green)


Item stack duplication glitch (Generation I)

Generation I expanded items pack (Glitch Rocket HQ maps, Map FE (English and non-English European Yellow) | Map script pointer manipulation (arbitrary code execution | Map script pointer item ball manipulation) | Text pointer manipulation (arbitrary code execution | Item ball manipulation | Mart buffer overflow) | Trainerless instant encounter glitch


Bad clone glitch (Generation II)

????? party overloading (Type 0xD0 move glitch | ????? map corruption | Celebi trick | Celebi Egg trick | Shiny Celebi trick | Glitch move map corruption | Overloaded party map corruption | Glitch Unown (Glitch Unown map corruption) | Duplicate key items glitch (Infinite items and item creation, Expanded Balls pocket (Wrong pocket TM/HMs, Glitch Pokédex categories))


Closed menu Select glitches (Japanese Red/Green)

Dokokashira door glitch (International) | Fossil conversion glitch (international) | Second type glitch | Skip to Level 100 glitch | Trainer mutation glitch | Walk through walls (International) | Lift glitch | Badge describer glitch


Pomeg glitch (Generation III)

Pomeg data corruption glitch ("Glitzer Popping") | Charm glitch


Voiding (Generation IV)

Tweaking

Broken escalator glitch (Japan only) | Elite Four door glitch (Japan only)


2x2 block encounter glitches (Generation I)

Left-facing shore tile glitch (in-game trade shore encounter trick, Old man trick, Trade link up shore encounter trick, Fight Safari Zone Pokémon trick) | Viridian Forest no encounter grass tiles glitch


Glitch City

Safari Zone exit glitch | RAM manipulation | Out of bounds Glitch City (Generation II) | Slowpoke Well out of bounds corruption (French Gold/Silver/Crystal)


Large storage box byte shift glitch

Storage box remaining HP glitch | Generation I max stat trick


Pikachu off-screen glitch

Trainer corruption glitch


SRAM glitches

Generation I save corruption | 255 Pokémon glitch | Expanded party encounter table manipulation (Generation I) | Send party Pokémon to a new game (Generation I) | Generation II save corruption | Mailbox glitches | Mystery Gift item corruption | Trainer House glitches


Trainer escape glitch

Death-warp | Ditto trick | Experience underflow glitch | Mew trick | Text box ID matching | Meta-map script activation


Walk through walls

Ledge method | Museum guy method | Rival's effect | Select glitch method (International Select glitch method), Brock Through Walls


Surf down glitch

Grass/rock Surfing glitch (Spanish/Italian only) (adaptions: Submerge glitch (international)) | 8 8 (0x7C) grass/rock surfing glitch (English Red/Blue))

(view, talk, edit)
PRAMA Initiative a également une page sur Item stack duplication glitch.

The item stack duplication glitch is a glitch in Pokémon Red, Blue, and Yellow. It can be used to set up an expanded items pack via tricks known as "item underflow glitch" and "dry underflow glitch".

It allows the player to duplicate an item stack with 255 items (so that the player obtains another copy of that item x255) of any item to be held.

It is not to be confused with an item duplication glitch caused by encountering a Pokémon with an invalid Pokédex number, such as Missingno. and 'M (00)'s addition of 128 to the sixth item if there is less than 128 items there.

Requirements

1) 255 of an item in a slot below the first item are needed.

In Pokémon Red and Blue, this is possible by using the old man glitch to encounter a Missingno. or 'M (00) with an item in the sixth position that has a quantity less than 128.

From there, if the player originally had one of the item, they can use the item in battle to get 127 and capture Missingno. or 'M (00) to get 255 items in the sixth position. Alternatively, the player can end the battle, then toss one of the item (or whatever number needs to be tossed to get less than 128) to get 127 items in the sixth position, and then encounter another Missingno. or 'M (00).

In Pokémon Yellow, the player can still do this trick with a Yellow regular Missingno. encountered with the Ditto Trick, but a freeze is likely. It is more ideal to use a Kabutops Fossil (Special 182), a Aerodactyl Fossil (Special 183) or Pokémon Tower Ghost (Special 184) Missingno., which never freeze the game or cause any known side effects after being sent out from the opponent's side (though if the player sends one out then its backsprite will corrupt the Hall of Fame) other than duplicating the player's sixth item.

In Pokémon Red, Blue, and Yellow, the level 127 Missingno. variant of the TMTRAINER effect can be used to duplicate the player's sixth item if they catch it, but pulling this off may not work after a certain point in the player's game, so more reliably, but more slowly, the Cable Club escape glitch can be used in Red, Blue, Yellow to battle a Trainer with more than one Fossil or Ghost Missingno if the other player that 'player one' linked to had them.

The Cable Club escape glitch can also be used to encounter Missingno. This may be ideal in Pokémon Yellow if the player does not have the required Special stat for encountering a (Fossil or Ghost) Missingno. with the Ditto Trick, or if the level 127 Missingno. variant of the TMTRAINER effect is not working.

2) An item which is unimportant to the player in the slot directly below the item that the player has 255 of. This will be replaced with the item stack above it.

Procedure

  1. Toss all of an item above the stack of 255 items.
  2. A copy of the stack of 255 items will appear above it. The player's number of items is decreased by 1, and items before and including the Cancel button are not shifted up, the item above the Cancel will act like Cancel.

The player's last item will become unusable, so it is ideal to use an item there that is not valuable (key items may be lost). This item can be deposited in the PC as PC items are not affected by the item stack duplication glitch.

Notes

This glitch can be used to make regular items function as Cancel, because the location of the Cancel button is not shifted up.

At memory address D31D (D31C in Yellow), the player's current number of items is stored. If the player had, say 09 items, the item at position 10 is selectable but not usable. Normally the Cancel button is always at [number of current items +1].

When the player tosses a stack of items above the stack of 255 items, although the player's number of items is decreased by 1, the items below it are not shifted up. Consider this example:

Before tossing the item:

Number of items: 09

  1. Master Ball x1
  2. Ultra Ball x255
  3. X Accuracy x96
  4. Hyper Potion x6
  5. X Attack x66
  6. Full Restore x2
  7. Full Heal x98
  8. Max Revive x5
  9. Poké Ball x1
  10. Cancel

After tossing the item:

Number of items: 08

  1. Ultra Ball x255
  2. Ultra Ball x255
  3. X Accuracy x96
  4. Hyper Potion x6
  5. X Attack x66
  6. Full Restore x2
  7. Full Heal x98
  8. Max Revive x5
  9. Poké Ball x1
  10. Cancel

Note that the Poké Ball x1 is at position 09, which is the player's new number of items +1, so the Poké Ball x1 is selectable but not usable, just like how Cancel is supposed to work.

Incidentally, if the Cancel button was usable (e.g. if it was at position 9 to begin with), it would act like TM55.

Buying an item (or otherwise adding an item to the player's inventory) will erase the item acting as the Cancel button as well as those underneath it. A normally functioning Cancel button will be directly below the bought item. This way, it is possible to erase unwanted key items and hard to toss glitch items.

Applications

  1. Faster duplication of items than encountering Missingno.
  2. Erasing unwanted key items and hard to toss glitch items.
  3. Item underflow glitch