Unterminated name glitch item: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
No edit summary
>Sherkel
(Is this a bit clearer?)
Line 1: Line 1:
[[File:Y item 74 inventory.png|thumb|right|[[DHNhIT4 89 ゥ N (disambiguation)|DHNhIT4 89 ゥ N (0x74)]], an unterminated name glitch item, as it appears in Yellow.]]
[[File:Y item 74 inventory.png|thumb|right|[[DHNhIT4 89 ゥ N (disambiguation)|DHNhIT4 89 ゥ N (0x74)]], an unterminated name glitch item, as it appears in Yellow.]]
An '''unterminated name glitch item''' is a [[glitch item]] with a name that has at least 20 unterminated (non-50) bytes.
An '''unterminated name glitch item''' is a [[glitch item]] with a name that doesn't end with the terminator byte 0x50.


Depending on a copy of the game's screen data that is saved after actions such as when the items menu is opened, pressing A on the item will cause the corruption of bytes at memory address CF4B and onward. If there is no [[0x50 sub-tile]] present on the screen the game will likely freeze due to the corruption being too long.
Depending on a copy of the game's screen data that is saved after actions such as when the items menu is opened, pressing A on the item will cause the corruption of bytes at memory address CF4B and onward. If there is no [[0x50 sub-tile]] present on the screen the game will likely freeze due to the corruption being too long. (The game will attempt to continue reading the name of an item, attack, or other string of text until a terminator byte is found, and so unterminated name glitch items cause the game to keep reading input beyond where the item name would normally end. See [https://github.com/pret/pokered/blob/master/wram.asm wram.asm] for more details.)


They are useful for multiple [[glitch technique]]s, such as [[LOL glitch]], [[instant encounter infinite chain glitch]], [[LGFly]] and [[Yami Shop glitch]].
They are useful for multiple [[glitch technique]]s, such as [[LOL glitch]], [[instant encounter infinite chain glitch]], [[LGFly]] and [[Yami Shop glitch]].