Posts for kaizoman666


1 2
5 6
Experienced Forum User, Published Author, Active player (421)
Joined: 3/21/2011
Posts: 127
Location: Virginia (United States)
As much as I kind of hate to say it, Mister's explanation is a bit wrong. ^^; Also, I did a little bit more research on the glitch. While he has most of it right, he's wrong about the error in the stack. The game doesn't crash because of "an unexpected program", but because the stack overflows. Since sprite IDs as high as #255 were not made to exist, the stack fills up with all those empty values (which there are only 245 of). To quote the SMWC:
BIG FAT NOTE: Keep the push/pull in balance. Otherwise the stack will overflow, causing the game to crash eventually.
Since the stack is never meant to overflow, and has no codes related directly to the stack, the game crash does in fact end up randomized, based on how many values are in the stack and what they are set to. When the stack contains certain values, however, results such as the powerup incrumentation glitch will occur. In short summary, the reason the PI glitch happens is because the stack overloads, and while the crashes the stack causes are randomized, certain values will always produce similar results. Now to figure out what values do what and how to control the results of collecting powerups afterwards.
YouTube Channel - Twitter Current projects: Sutte Hakkun, Hyper VI, RTDL, own hacking projects
Experienced Forum User, Published Author, Active player (421)
Joined: 3/21/2011
Posts: 127
Location: Virginia (United States)
Zowayix wrote:
How does power-up incrementation work? I searched through a bunch of the previous pages to try to find if someone had explained it and couldn't find anything. What I know is that power-up #0 is small, #1 is big, #2 is caped, #3 is fiery, and everything beyond that causes glitched palettes. #4 appears to make a star show up at the gate when holding an item, and #106 causes the keyhole/goal glitch shown just previously. But I can't find how the glitch actually works.
Basically, the glitch is about crashing the game. By releasing a null sprite while on a revolving sprite like the platform (one that moves based on Mario), the game will encounter an error and crash. If done at certain points in the level, this crash will read a specific set of data and increase $19, among other values. Since you're not supposed to get $19 above #$03, the game will check the wrong data values when an item is collected (due to the way their routines are coded). Since most of the data they read are not in the regular range of actions, they'll often cause crashes, or errors like the keyhole. The randomness of these values has not been determined yet, but I'm currently looking through all.log to see if I can figure out what we're getting. Hopefully I explained that well enough, I'm not the best at explaining. ^^; Basically, this just means the keyhole and all that are a result of crashing the game. We literally broke the game with powerup incrumenting. Also, hi, its me.
YouTube Channel - Twitter Current projects: Sutte Hakkun, Hyper VI, RTDL, own hacking projects
1 2
5 6