Expanded item pack: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
No edit summary
>Torchickens
No edit summary
Line 64: Line 64:
Then the player should remove an item from their inventory with an event. Then, opening the item pack allows the player to edit unrelated portions of the memory as if they were items.
Then the player should remove an item from their inventory with an event. Then, opening the item pack allows the player to edit unrelated portions of the memory as if they were items.


=== Explanation ===
=== Methods to obtain x255 stack ===
When the first item stack is tossed, the game decreases the owned item counter (located at hex:D31C) by 1. It then makes the item x255 erase the item tossed. But because dec:255 equals hex:FF and the game considers FF as the ending marker, the 255 items aren't overwritten, nor the following ones.
<br/>
The process repeats until the item counter reaches 0, which makes the first item act as the Cancel button. Then giving out an item makes the game decrease the item counter once more, which underflows to hex:FF. The player can then access 255 items, which is far beyond the normal limit.

=== "Dry" item underflow glitch ===
This glitch was documented by Luckytyphlosion ([http://forums.glitchcity.info/index.php?topic=7175.0 thread]).

It is a better method because it doesn't require the Saffron guards to be thirsty or a Fossil.
<br />
Also, it can be done with the PC items, allowing one to edit more RAM addresses that could only be manipulated with [[arbitrary code execution]] or [[Map_254_(Yellow)|map FE]].

You will need 2 different tossable items, and a stack of 255 items.

Below are methods to obtain a x255 stacks:


'''Method 1 (MissingNo.):'''
'''Method 1 (MissingNo.):'''
Line 100: Line 86:


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.
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.


=== Explanation ===
When the first item stack is tossed, the game decreases the owned item counter (located at hex:D31C) by 1. It then makes the item x255 erase the item tossed. But because dec:255 equals hex:FF and the game considers FF as the ending marker, the 255 items aren't overwritten, nor the following ones.
<br/>
The process repeats until the item counter reaches 0, which makes the first item act as the Cancel button. Then giving out an item makes the game decrease the item counter once more, which underflows to hex:FF. The player can then access 255 items, which is far beyond the normal limit.

=== "Dry" item underflow glitch ===
This glitch was documented by luckytyphlosion ([http://forums.glitchcity.info/index.php?topic=7175.0 thread]).

It is a better method because it doesn't require the Saffron guards to be thirsty or a Fossil.
<br />
Also, it can be done with the PC items, allowing one to edit more RAM addresses that could only be manipulated with [[arbitrary code execution]] or [[Map_254_(Yellow)|map FE]].

You will need 2 different tossable items, and a stack of 255 items.

Refer to above for methods of obtaining a x255 item quantity slot for this glitch:


== Expanded inventory methods ==
== Expanded inventory methods ==