Main Menu
Main Page
Forums
Recent changes
Random page
Help

Databases
GlitchDex
AttackDex
ItemDex
TrainerDex
TypeDex
UnownDex
More

Major Glitches
Trainer escape glitch
Old man trick
Celebi Egg trick
Select glitches (Japan)
SRAM glitch
CoolTrainer♀ corruption
LOL glitch
Rival LOL glitch
Super Glitch
ZZAZZ glitch
Pomeg corruption glitch (Glitzer Popping)
Tweaking
Elite Four door glitch (Japan)
Pokémon merge glitch
Pokémon cloning
Time Capsule exploit
Arbitrary code execution
Coin Case glitches
More

Other Glitch Categories
Glitches by generation
Glitches between two generations
Japan-only/language specific glitches
Music glitches
Natural glitches
Non-core series glitches
Non-Pokémon glitches
Officially acknowledged glitches
Recurring glitches
Dead glitches

References
Pokémon GameShark codes
The Big HEX List
Glitch Pokémon cries
GB programming
Curiosities
Debugging features
Easter eggs
Error traps
Glitch areas
Glitch myths
Non-glitch exploits
Placeholder texts
Pokémon glitch terminology
Unused content and prerelease information

Useful Tools
8F Helper
GBz80 to Items
Old man trick name generator
PATH (Prama's Advanced Tweaking Heaven)
Save file editors
Special stat/Pokémon converter
Trainer escape Trainer Pokémon finder

Affiliates
Legendary Star Blob 2 (Hakuda)
Pokémon Speedruns wiki
PRAMA Initiative
Become an affiliate!

Technical
Site Source Code

Search Wiki

 

Search Forums

 

Author Topic: Save restoreation with 8F  (Read 1252 times)

0 Members and 1 Guest are viewing this topic.

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Save restoreation with 8F
« on: June 27, 2017, 07:12:11 pm »
So today I was going stuff with 8F when my game crashed. I rebooted the game and to my horror the save data was lost. If anyone knows a way to restore a save please tell me. (I am on virtual console) I need to be able to do this without hacking my 3DS so no gamesharks or anything of the like. Additionally if someone knows a way to back up a save please tell me that to.
I need to double check codes before I use them


Parzival

  • The Betrayed, The Cleansed, The Reborn
  • GCLF Member
  • *
  • Offline Offline
  • It begins.
    • View Profile
    • YT Channel
Re: Save restoreation with 8F
« Reply #1 on: June 27, 2017, 07:49:47 pm »
No 3ds hacks? No backups/recovery. If you had hacks and got us a SAV file, well, that'd be a different story.
Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.


likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Save restoreation with 8F
« Reply #2 on: June 27, 2017, 08:10:44 pm »
I don't have backups but if there is a safe way (for my 3DS sense Nintendo will destroy it if I hack) to hack to get my save back.
I need to double check codes before I use them


Parzival

  • The Betrayed, The Cleansed, The Reborn
  • GCLF Member
  • *
  • Offline Offline
  • It begins.
    • View Profile
    • YT Channel
Re: Save restoreation with 8F
« Reply #3 on: June 27, 2017, 09:47:09 pm »
sense Nintendo will destroy it if I hack
Where'd you hear that? The most they can do is ban you from online services. As long as you do it right, they don't even fucking know you did it.
Ask me about betrayal.
Ask me about depression.
Ask me about death.
Ask me about destruction.
Ask me about hardship.
I've been through s**t.
If you need to talk to someone, my PM inbox is always open.


TheSixthItem

  • Game breaker
  • GCLF Member
  • *
  • Offline Offline
  • Gender: Male
  • ZZAZZDZZGZZUZZKZZ#ZZXZZUZZ7ZZ#ZZ
    • View Profile
Re: Save restoreation with 8F
« Reply #4 on: June 28, 2017, 12:57:19 am »
If you haven't started a new game yet, you can do the SRAM glitch to get your save back (save but before the textbox switches to "saving..." and after the yes/no box disappears, reset). If you corrupt your file, try again, if you can access the pokemon menu, great! You restored some of your save data! And if you can't access the pokemon menu,
RIP
likebeingawesome's save file
2017-2017
"My biggest dream was to send a mew through pokebank"
And yes, if you turn off "share usage with nintendo" or whatever it's called they'll just think you're a stupid idiot who doesn't want to improve future nintendo consoles while you hack your ass off
« Last Edit: June 28, 2017, 01:06:47 am by TheSixthItem »
I do things

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Save restoreation with 8F
« Reply #5 on: June 28, 2017, 05:06:18 am »
How much of my save data can I restore with the SRAM glitch
I need to double check codes before I use them


ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Save restoreation with 8F
« Reply #6 on: June 28, 2017, 05:52:02 am »
Party Pokémon data only. And they will be considered as "foreign", obviously.
The SRAM glitch is done by accepting to save, and resetting before the "SAVING..." text appears. Better do it too early than too late.
If you reset too early, the "Save data is corrupt !" message will pop up, but you can try again.
If you do it right, you will be able to access the Pokémon menu after ladong your save. Yay !
If you do it too late, you won't be able to access the Pokémon menu. Part Pokémon data has been overwriteen, so RIP.

Tbh it's possible to restore save data with 8F, but it's probably corrupted, so it would serve you much.


Also, Nintendo won't destroy your 3DS if you hack it, but if you're like me and you want to keep it clean, have it your way.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Save restoreation with 8F
« Reply #7 on: June 28, 2017, 07:43:47 pm »
Welp i screwed up but can I see the resoreation code even if the save is courupt it would still be cool to see
I need to double check codes before I use them


ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Save restoreation with 8F
« Reply #8 on: June 29, 2017, 02:55:29 am »
I just came up with a setup that does the job. Probably the most bloated I ever created, and definitely not worth it.
But I tested it, and it works !
Surely a genius will come after me and squeeze it. But for now...

In your bag, starting from item #3 :
Code: [Select]
Lemonade x28 (hex:1C)
Poké Ball x6 (hex:06)
Parlyz Heal x205 (hex:CD)
TM17 x53 (hex:35)
Fresh Water x62 (hex:3E)
Moon Stone x234 (hex:EA)
Great Ball x1 (hex:01)
Lemonade x2 (hex:02)
Soda Pop x234 (hex:EA)
Antidote x64 (hex:40)
Carbos x165 (hex:A5)
X Accuracy x152 (hex:98)
Awakening x139 (hex:8B)
TM05 x58 (hex:3A)
TM13 x[Any qty]

In your item PC :
Code: [Select]
Max Potion x71 (hex:47)
TM13 x213 (hex:D5)
Lemonade x123 (hex:7B)
TM45 x209 (hex:D1)
Repel x159 (hex:9F)
Soda Pop x213 (hex:D5)
TM01 x234 (hex:EA)
HP Up x181 (hex:B5)
Poké Ball x195 (hex:C3)
Master Ball x1 (hex:01)

Once you're set up, use ws m and the game will reset with glitched palettes (unless your save file is *exactly* right, but whatever). Until you loaded your save, DON'T SHUT THE CONSOLE DOWN THE SLIGHTEST BIT. You might lose save data !!
Now, your save file will be uncorrupted :D So load it ! What are you waiting for ?

(You don't need to save after it's uncorrupted, but you can :)



Code: [Select]
Commented source code :


@ 1:D321 :

ld a, $1C
inc b ; Padding
ld b, $0F ; Carried over to the ROP chain
call $35D9 ; BankswitchHome
inc a ; Padding
ld a, $0A
ld [$0103], a ; Enable SRAM
ld a, 2
dec a ; ld a, 1
ld [$400B], a ; Switch to bank 1
ld h, $A5
ld l, $98
ld c, $8B
call $D53A ; Jump to part 2 (it never returns)


@ 1:D53A :

ld de, $D53A ; Part 3
push de
ld a, $7B
push af
pop de ; ld d, $7B  , backwardest-way (c)ISSOtm 2017 :D
ld e, $9F ; de points to checksum function
dec a ; Padding
push de
ret ; Enable ROP chain
ld [$B523], a ; sMainDataCheckSum
inc b ; Padding
jp $0101 ; Jump to game init to avoid losing SRAM


Tech explanation :

1. We switch to ROM bank $1C because that's where all save functions are stuffed
2. We open SRAM for writing
3. We switch to SRAM bank 1
4. We set the parameters for the later checksumming
5. We *call* the second part, without a RET (you'll see why)
Obviously both bytes of each parameter won't compile as valid items so I'm going at it the most backwards way possible (notice how b is set at the beginning of the whole thing...)

6. The checksum function's address is a b***h, and hl is locked-up, so we HAVE to use a ROP chain. Yay. Starting by pushing Part 3's address
7. We can't change anything but a and d, and we must load it when both `ld d, XX` and `$7B` compile to invalid items :/
Thus, GVHFWDéfFZ (to sum up)
8. We "return" to the checksum function, correct parameters and all, then to Part 3.

9. We set the stored checksum to match the calculated sum, thus "uncorrupting" the file
10. We'd have to close SRAM, switch to the correct ROM bank and let the user reset the game. However that'd be fairly heavy, and you're aware that users are stupid, so they will power cycle their console and lose data. We address both issues by resetting ourselves
(Note : 0100 is a NOP, so 0101 does reset the game. Plus it avoids that nasty 00 byte.)
« Last Edit: June 29, 2017, 05:55:02 am by ISSOtm »
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

jfb1337

  • ACE trainer
  • GCLF Member
  • Offline Offline
    • View Profile
Re: Save restoreation with 8F
« Reply #9 on: June 30, 2017, 02:20:53 pm »
In future, look at a pokemon's sprite before doing anything risky, that way if it crashes it's unlikely to corrupt the save since it would need to change SRAM banks

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Save restoreation with 8F
« Reply #10 on: July 02, 2017, 05:33:44 am »
I just came up with a setup that does the job. Probably the most bloated I ever created, and definitely not worth it.
But I tested it, and it works !
Surely a genius will come after me and squeeze it. But for now...

In your bag, starting from item #3 :
Code: [Select]
Lemonade x28 (hex:1C)
Poké Ball x6 (hex:06)
Parlyz Heal x205 (hex:CD)
TM17 x53 (hex:35)
Fresh Water x62 (hex:3E)
Moon Stone x234 (hex:EA)
Great Ball x1 (hex:01)
Lemonade x2 (hex:02)
Soda Pop x234 (hex:EA)
Antidote x64 (hex:40)
Carbos x165 (hex:A5)
X Accuracy x152 (hex:98)
Awakening x139 (hex:8B)
TM05 x58 (hex:3A)
TM13 x[Any qty]

In your item PC :
Code: [Select]
Max Potion x71 (hex:47)
TM13 x213 (hex:D5)
Lemonade x123 (hex:7B)
TM45 x209 (hex:D1)
Repel x159 (hex:9F)
Soda Pop x213 (hex:D5)
TM01 x234 (hex:EA)
HP Up x181 (hex:B5)
Poké Ball x195 (hex:C3)
Master Ball x1 (hex:01)

Once you're set up, use ws m and the game will reset with glitched palettes (unless your save file is *exactly* right, but whatever). Until you loaded your save, DON'T SHUT THE CONSOLE DOWN THE SLIGHTEST BIT. You might lose save data !!
Now, your save file will be uncorrupted :D So load it ! What are you waiting for ?

(You don't need to save after it's uncorrupted, but you can :)



Code: [Select]
Commented source code :


@ 1:D321 :

ld a, $1C
inc b ; Padding
ld b, $0F ; Carried over to the ROP chain
call $35D9 ; BankswitchHome
inc a ; Padding
ld a, $0A
ld [$0103], a ; Enable SRAM
ld a, 2
dec a ; ld a, 1
ld [$400B], a ; Switch to bank 1
ld h, $A5
ld l, $98
ld c, $8B
call $D53A ; Jump to part 2 (it never returns)


@ 1:D53A :

ld de, $D53A ; Part 3
push de
ld a, $7B
push af
pop de ; ld d, $7B  , backwardest-way (c)ISSOtm 2017 :D
ld e, $9F ; de points to checksum function
dec a ; Padding
push de
ret ; Enable ROP chain
ld [$B523], a ; sMainDataCheckSum
inc b ; Padding
jp $0101 ; Jump to game init to avoid losing SRAM


Tech explanation :

1. We switch to ROM bank $1C because that's where all save functions are stuffed
2. We open SRAM for writing
3. We switch to SRAM bank 1
4. We set the parameters for the later checksumming
5. We *call* the second part, without a RET (you'll see why)
Obviously both bytes of each parameter won't compile as valid items so I'm going at it the most backwards way possible (notice how b is set at the beginning of the whole thing...)

6. The checksum function's address is a b***h, and hl is locked-up, so we HAVE to use a ROP chain. Yay. Starting by pushing Part 3's address
7. We can't change anything but a and d, and we must load it when both `ld d, XX` and `$7B` compile to invalid items :/
Thus, GVHFWDéfFZ (to sum up)
8. We "return" to the checksum function, correct parameters and all, then to Part 3.

9. We set the stored checksum to match the calculated sum, thus "uncorrupting" the file
10. We'd have to close SRAM, switch to the correct ROM bank and let the user reset the game. However that'd be fairly heavy, and you're aware that users are stupid, so they will power cycle their console and lose data. We address both issues by resetting ourselves
(Note : 0100 is a NOP, so 0101 does reset the game. Plus it avoids that nasty 00 byte.)
How many saves back does this go and is there a way to set the save you want to recover
I need to double check codes before I use them


ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Save restoreation with 8F
« Reply #11 on: July 02, 2017, 08:27:28 am »
Once you save, the previous save is overwritten, no exceptions. So this goes to the last save only. And OF COURSE, if you saved while attempting to recover your corrupted save... you can't anymore.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Save restoreation with 8F
« Reply #12 on: July 09, 2017, 11:08:05 am »
Ok well I sadly have use for the code again. I noticed you said use W MS item. Is this code for yellow or by W MS did you mean 8f too?
« Last Edit: July 09, 2017, 12:35:26 pm by likebeingawesome »
I need to double check codes before I use them


ISSOtm

  • The French Lord of Laziness (and a huge The Legend Of Zelda fan)
  • Wiki Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Pewter City (B)rocks !
    • View Profile
    • My Little Website
Re: Save restoreation with 8F
« Reply #13 on: July 09, 2017, 02:16:36 pm »
No, as I said, it's for ws m. The setup is different for Red/Blue.
"THOU SHALL NOT PASS !!"  RIVAL's effect, Gandalf.

Proudly glitching Pokémon Red and Yellow on a Black & White GB, Pocket GB, GB Color, GBA SP and new 3DS.

My Twitter (beware, I'm French)
My YouTube (same warning)

Here is an online tool to build 8F setups : GBz80 to Items !

They see me layzin', they ha-tin'...
Heavy contributor of the global augmentation of entropy (my room's is too damn high !)

likebeingawesome

  • The game reset master
  • GCLF Member
  • Offline Offline
  • Gender: Male
  • DARN IT I RESET MY GAME
    • View Profile
Re: Save restoreation with 8F
« Reply #14 on: July 09, 2017, 04:15:08 pm »
Any advise on quickly getting this code ready for use. Also can some explain how to back up saves.
I need to double check codes before I use them