Jump to content

Expanded item pack: Difference between revisions

no edit summary
>ISSOtm
(→‎Item underflow glitch: Added credit for the old method, and added the "dry" new one (https://www.youtube.com/watch?v=ZyppANEvnh8))
>Torchickens
No edit summary
Line 1:
TheAn '''expanded items pack''' is a [[glitch derivative]] in {{RBY}} and {{GSC}}; in which the firstplayer generationcan ofaccess items at a position from beyond the maximum limit imposed by the Pokémongame.
 
<br/>
For example, in Red, Blue and Yellow the normal maximum number of bag items is 20 and the maximum number of stored PC items is 50 and under normal circumstances, trying to obtain another item will bring up a message that there is no more space.
It can be activated by many glitches, the most used method being the Item underflow duplication glitch and allows the player to edit arbitrary RAM locations.
 
In actuality, the maximum amount of items that the player can use, swap or toss is 255 or whichever 'number of items' address, such as D31D (Red/Blue, D31C (Yellow) (number of items in the overworld items pack) becomes corrupted to.
 
==Attributes of items beyond the item limit==
The items and quantities beyond the imposed item limit represent unrelated memory addresses with values interpreted as items or quantities. The memory addresses follow on as expected.
 
===Examples===
For expanded bag items in Red, Blue and Yellow, addresses D344 and D345 (-1 in Yellow) are used for item 20 and item 20's quantity respectively. Item 21 (RB: D346, Y:D345) is also used as FF (Cancel) as an item end of list address when the player has a properly terminated list of 20 items.
 
Item 21's quantity (RB: D347, Y:D346) marks the start of unrelated memory addresses; namely it is the first money byte (multiples of 10,000 in [[wikipedia:binary coded decimal|binary coded decimal]]) hence changing the value of item 21's quantity will affect the multiple of 10,000 in the player's money (e.g. changing the value to 153, hex:99 will give the player 99XXXX money)
 
Another example is how item 36 quantity (RB: D365, Y:D364) represents the exit location for many maps.
 
===Equation===
The following equation can be used to find what memory address an item represents or the other way around. That memory address +1 will represent a quantity.
 
Memory address = [First item position address -1] + [Cursor positon] + ([Cursor position -1])
 
Example for expanded bag items in Pokémon Red and Blue:
*D365 (exit destination) = D31D (number of items) + (x) + (x-1)
*D365-D31D=0x48
*0x48/2=0x24
*D31D + 0x24 + 0x23 = D364
 
From this we can gather that item 36 (0x24 in hexadecimal) represents D364 (which is the 'block-x' value that is either 00 ("j." or "x") or 01 (Master Ball)). This means that D365 (map exit) represents item 36's quantity.
 
Note that this equation does not apply for items 129 (0x81) through to 256 (0x00) because those items represent items 1-128 again.
 
= Activation =
Line 26 ⟶ 52:
 
=== "Dry" item underflow glitch ===
This glitch was documented by luckytyphlosion ([http://forums.glitchcity.info/index.php?topic=7175.0 thread]).
According to ChickasaurusGL's Youtube video, this has been found by Luckytyphlosion.
 
It is a better method because it doesn't require the Saffron guards to be thirsty, neitheror a Fossil.
<br />
Also, it can be done with the PC items, allowing one to edit more RAM addresses that werecould only accessedbe throughmanipulated ACEwith [[arbitrary code execution]] or [[Map_254_(Yellow)|map FE]].
 
You will need 2 different tossable items, and a stack of 255 items.
Line 44 ⟶ 70:
You can also do this with items below the third (and initial) 255 stack. You need to count how many items you have, then after step 3 toss the top item x255 the number of items you initially had -2.
 
== Expanded party list methods ==
 
=== By Savesave corruption ===
This method has many downsides (similar to the Japanese Dokokashira door glitch) but can be triggered very early in the game and is sometimes used to beat the game in 0:00
<br/><br/>
Line 63 ⟶ 90:
# A Continue button appears on the homescreen, and you can access a glitchy Pokémon menu. Swap any of the first 6 Pokémon (first or second is recommended) with the tenth (it should be just offscreen). Now you can access 255 items in your pack !
 
===By the [[ZZAZZ glitch]]===
Using the ZZAZZ glitch, it is possible to make all FF bytes up to the terminator in the player's bag disappear and then perform the [[ZZAZZ glitch#party Pokémon box data shift glitch|party Pokémon box data shift glitch]].
 
The party Pokémon box data shift glitch will shift all bytes in the player's inventory up to the FF upwards, therefore, having an item such as a TM01 (hex:BF) in the first position of the bag would allow for hex:BF (dec:191 items).
== By ACE ==
 
If you can use arbitrary code execution, you may run the following code (both with 8F and ws m)
This glitch may stop working later in the game due to FF values appearing in the memory before the bag addresses.
 
== By arbitrary code execution==
If you can use arbitrary code execution (ACE), you may run the following code (both with 8F and ws m)
<br/>
<code>
Line 79 ⟶ 112:
== Using Gameshark ==
The code 01FF1CD3 should set the expanded item pack correctly ; although with Gameshark, you don't much need this trick because you can edit RAM without this trick.
 
 
 
= Using this trick =
Line 89 ⟶ 120:
Here is a list of interesting items to mess with :
<help is needed there>
 
 
 
= Returning the Item pack to normal =
Line 109 ⟶ 138:
[[Category:Generation I glitches]]
[[Category:Miscellaneous glitches]]
[[Category:Stubs]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.