Jump to content

SRAM glitch: Difference between revisions

→‎Save corruption: Changed the description for the frame window. Still need some research on the time window between the visual cues.
(→‎Variants: Added Pokémon cloning as a variant, and made a grammar correction.)
(→‎Save corruption: Changed the description for the frame window. Still need some research on the time window between the visual cues.)
 
(One intermediate revision by the same user not shown)
Line 18:
# Select "Yes" in the "Yes/No" dialog box, but at a very precise moment, power off or reset the console.
#* [[Reset|Soft resetting]] (holding Start+Select+A+B) will not work, as the game prevents soft resets while it is saving.
#* The cue istiming to power off or reset is after the "Yes/No" dialog box has disappeared, but before the text changes to "SavingNow saving..." The(Red/Blue) exactor timing is"Saving..." version-dependent(Yellow).
#** InThe {{RB}}, thetime window ofbetween opportunitythose two visual cues is aaround few20 frames only,(depending locatedsomewhat right afteron the boxversion and the disappearscircumstances), makingbut the glitchwindow relyto moresuccessfully onperform luckthis thanglitch onis timingonly 4 frames.
#* Note that on the Game Boy Player the [[reset fadeout delay]] applies, so the player needs to press the reset button earlier accordingly, before the player selects "Yes" by pressing A, and possibly even before the "Yes/No" dialog box appears (this is often the case when speedrunning).
#** In {{Y}}, there are more frames where the glitch will be successful, and the window is further away from the Yes/No box disappearing, making the glitch more viable on console.
#* Note that on the Game Boy Player the [[reset fadeout delay]] applies, so the player needs to press the reset button earlier accordingly.
 
If the glitch was successful, a Continue option will be present when the game is started again, but the player's party will be replaced by the existing party data in the SRAM. In particular, the player will be able to access their Pokémon screen even if they never received the starter (unless the party data in the SRAM had 0 Pokémon).
Line 52 ⟶ 51:
==Explanation==
When saving the game in Generation I, the game calls three functions, each only saving a part of it, and the parts are in fact overlapping:
* The first function<ref>[https://github.com/pret/pokered/blob/6ba3765c5932996f5da6417ae703794ff10bb1cb1dcaede8b5e41dbec9bf3f2b18c77d1b7d2de708/engine/menus/save.asm#L198L201 The first function for saving the game]</ref> saves everything, ''except the party data''.
* The second function<ref>[https://github.com/pret/pokered/blob/6ba3765c5932996f5da6417ae703794ff10bb1cb1dcaede8b5e41dbec9bf3f2b18c77d1b7d2de708/engine/menus/save.asm#L231L234 The second function for saving the game]</ref> only saves the current box data.
* The third function<ref>[https://github.com/pret/pokered/blob/6ba3765c5932996f5da6417ae703794ff10bb1cb1dcaede8b5e41dbec9bf3f2b18c77d1b7d2de708/engine/menus/save.asm#L251L254 The third function for saving the game]</ref> saves the party data, the Pokédex data, and (in Yellow) Pikachu's happiness and mood.
Besides being used for a full save, the third function is also used after trading a Pokémon in the Cable Club. Presumably at least one of the first two functions is also intended to be used somewhere else, but they don't seem to be in the final game.
 
Cookies help us deliver our services. By using our services, you agree to our use of cookies.