Hacking FE100 Savefile unpacker/packer

MarkARC

Member
Newcomer
Joined
May 31, 2008
Messages
9
Trophies
0
XP
237
Country
Canada
Hello, I am having a problem using FE100 v2b.

I am using in on the Virtual Console game Ogre battle.

I got my keys.txt file no problem.

I used that keys.txt and the VC save of ogre battle in the key grabber to get all my info and it worked.

I then extracted the data.bin file and that worked.


Here is the directory structure it made:
000100014a435445------------nodata----------dummy
-------------###icon0###.ppm
-------------###icon1###.ppm
-------------###icon2###.ppm
--------------###icon3###.ppm
--------------###icon4###.ppm
--------------###icon5###.ppm
--------------###icon6###.ppm
--------------###icon7###.ppm
--------------###title###.ppm
--------------savedata.bin

I edit the changed I want in savedata.bin and then packed the savefile and copied it back to my wii and the game doesn't load. I also noticed that the new data.bin file is 17KB big where the original data.bin file was 410KB. I thought there was a problem with the nodata/dummy file, so I moved the file out of the nodata folder and deleted that folder. I then packed the savefile and the data.bin file was 411 KB. I copied it to the WII and the game loaded, but would not let me load the file.

I think it has something to do nodata/dummy file, but i have no idea how to get this to work. Can anybody help me?

Thanks!
 

teq

Well-Known Member
Member
Joined
May 13, 2008
Messages
1,232
Trophies
0
XP
5
Country
United States
MarkARC said:
Hello, I am having a problem using FE100 v2b.

I am using in on the Virtual Console game Ogre battle.

I got my keys.txt file no problem.

I used that keys.txt and the VC save of ogre battle in the key grabber to get all my info and it worked.

I then extracted the data.bin file and that worked.


Here is the directory structure it made:
000100014a435445------------nodata----------dummy
-------------###icon0###.ppm
-------------###icon1###.ppm
-------------###icon2###.ppm
--------------###icon3###.ppm
--------------###icon4###.ppm
--------------###icon5###.ppm
--------------###icon6###.ppm
--------------###icon7###.ppm
--------------###title###.ppm
--------------savedata.bin

I edit the changed I want in savedata.bin and then packed the savefile and copied it back to my wii and the game doesn't load. I also noticed that the new data.bin file is 17KB big where the original data.bin file was 410KB. I thought there was a problem with the nodata/dummy file, so I moved the file out of the nodata folder and deleted that folder. I then packed the savefile and the data.bin file was 411 KB. I copied it to the WII and the game loaded, but would not let me load the file.

I think it has something to do nodata/dummy file, but i have no idea how to get this to work. Can anybody help me?

Thanks!

Having the same problem; it seems like it doesn't handle the nocopy directory properly.
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
3,004
Trophies
2
XP
2,817
Country
Does this let you extract sram save data (in raw .sav format) from VC games so that you can use them with other emulators?
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
3,004
Trophies
2
XP
2,817
Country
WiiCrazy said:
@nl255 : Find my c64 save injection video on youtube, it works at least for c64...

The question is how to extract the sram save data from the snapshot (save state). I am refering to nes, snes, n64, genesis, and other console games btw, where the game carts had a small amount of memory for saving. I assume you would need to find the offset where the sram save data is stored and then extract the 8k (or whatever) of data following that address.
 

WiiCrazy

Be water my friend!
OP
Member
Joined
May 8, 2008
Messages
2,395
Trophies
0
Location
Istanbul
Website
www.tepetaklak.com
XP
387
Country
nl255 said:
WiiCrazy said:
@nl255 : Find my c64 save injection video on youtube, it works at least for c64...

The question is how to extract the sram save data from the snapshot (save state). I am refering to nes, snes, n64, genesis, and other console games btw, where the game carts had a small amount of memory for saving. I assume you would need to find the offset where the sram save data is stored and then extract the 8k (or whatever) of data following that address.

Well yeah, possibly this can't be used. but that depends on how emulator is programmed. Certainly it won't work for the latest systems like n64 and snes... but for the others programmers may have chosen to dump the rom as well as ram...

Another interesting point about all this stuff is, hosting C64 VC games is illegal, dunno if there are any though...

ps: examined the saves of a few systems (genesis, nes, turbografx) and can say that they all doesn't have the rom in the save...

ps2: by the way just got your question now correctly... indeed you can find and replace the sram... for nes games there is a file called savework.bin in the nocopy directory in the unpacked contents of the data.bin... file is 0x2240 bytes... which is 0x240 bytes more of an nes sram...

ps3: dragon warrior game (if it exists - otherwise may be injected into another game) could be used to understand how to do this, there is documentation as well as programs regarding that game : http://www.gamefaqs.com/console/nes/file/563408/47175
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
3,004
Trophies
2
XP
2,817
Country
@WiiCrazy : Found a simpler way for NES games, just take savedata.bin and remove the first 64 bytes (dd if=savedata.bin of=Zelda_1.sav bs=1 count=64). I haven't tried it the other way (might be a checksum in the header) or with other games yet.
 

WiiCrazy

Be water my friend!
OP
Member
Joined
May 8, 2008
Messages
2,395
Trophies
0
Location
Istanbul
Website
www.tepetaklak.com
XP
387
Country
nl255 said:
@WiiCrazy : Found a simpler way for NES games, just take savedata.bin and remove the first 64 bytes (dd if=savedata.bin of=Zelda_1.sav bs=1 count=64). I haven't tried it the other way (might be a checksum in the header) or with other games yet.

Well mine was just assumption, never dealed with the nes stuff actually...

What's the main purpose here?

moving saves to vc from emu or from emu to vc?
 

nl255

Well-Known Member
Member
Joined
Apr 9, 2004
Messages
3,004
Trophies
2
XP
2,817
Country
WiiCrazy said:
nl255 said:
@WiiCrazy : Found a simpler way for NES games, just take savedata.bin and remove the first 64 bytes (dd if=savedata.bin of=Zelda_1.sav bs=1 count=64). I haven't tried it the other way (might be a checksum in the header) or with other games yet.

Well mine was just assumption, never dealed with the nes stuff actually...

What's the main purpose here?

moving saves to vc from emu or from emu to vc?

Yes, both. Save extraction works, but save injection does not. Trying to add the header from savedata.bin (first 64 bytes) to my save file doesn't work at all. Not only that, but editing savework.bin is useless because the nocopy hack for 4.0 does not work with save files that have a nocopy folder (the stuff in the nocopy folder can't be copied back). If the problem with the checksum in the header could be solved, savedata.bin would be more useful to edit than savework.bin as savedata.bin is just the sram save plus a header.
 

Wack0

Well-Known Member
Member
Joined
Apr 29, 2009
Messages
129
Trophies
0
XP
196
Country
Hey, I am reporting a bug.

Unpacking savefiles works like a charm, great!

But I modify the save, go to pack it .. and i get the error report window when I click pack. I have the latest versions of everything, and libeay32.dll is in the folder.

~Wack0
 

WiiCrazy

Be water my friend!
OP
Member
Joined
May 8, 2008
Messages
2,395
Trophies
0
Location
Istanbul
Website
www.tepetaklak.com
XP
387
Country
Wack0 said:
Hey, I am reporting a bug.

Unpacking savefiles works like a charm, great!

But I modify the save, go to pack it .. and i get the error report window when I click pack. I have the latest versions of everything, and libeay32.dll is in the folder.

~Wack0

Did you select the folder that you unpacked the save? (the folder that has title id in it)
 

Wack0

Well-Known Member
Member
Joined
Apr 29, 2009
Messages
129
Trophies
0
XP
196
Country
..the error is just the windows crash screen with error report stuff .. and yes i did get the keys using keygrabber
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, and since the default emulator is below average i downloaded some "replacements" like snes9x for snes games for example
    +1
  • Xdqwerty @ Xdqwerty:
    And I also have my ps3
    +1
  • BigOnYa @ BigOnYa:
    Yea ps3 is a beast still to today compared to most "sticks"
  • K3Nv2 @ K3Nv2:
    If you just want pi for emulation no point when Anbernic releases new shit every two seconds
    +1
  • BigOnYa @ BigOnYa:
    What's really cool about Pi's tho is you can have multiple SD cards with different OS on each SD card and change from say a gaming machine to a full fledged pc if wanted
  • K3Nv2 @ K3Nv2:
    Plus all bios are set up and usually includes at least 128gbs or 64
  • K3Nv2 @ K3Nv2:
    Yeah but if your main goal is just to play n64 and GameCube you can save about $50 and have the portability option
    +1
  • BigOnYa @ BigOnYa:
    True, but on 2 monitors at 4k. Its just want you want really, to each they own.
  • K3Nv2 @ K3Nv2:
    For a kids aspect Anbernic would be the better option they'd probably melt over the price on a good 4k display
    +1
  • BigOnYa @ BigOnYa:
    For that texasroo guy, I'd recommend the Spell and speak as his first system.
    +1
  • K3Nv2 @ K3Nv2:
    So they buy a pi5 kit for about $150 and say a 28" 4k display probably looking around $400 total
  • K3Nv2 @ K3Nv2:
    They'll be getting in the territory of portable Pcs anyway
    +1
  • BigOnYa @ BigOnYa:
    Again you get what you pay for, its like buying a S series for $300 but its only 1440p native, if you want true 4k, gotta get the X model for $500. But yea you right, when moms buying it anyways, you gotta stay cheap.
  • K3Nv2 @ K3Nv2:
    They could use HD out on their TV no real need for a monitor these days tbh the purists will disagree
  • K3Nv2 @ K3Nv2:
    I'm kind of phasing out on the need for wanting all these consoles cool to have but they just become dust build ups
  • BigOnYa @ BigOnYa:
    I here ya there, I have too many myself, and have hard time letting them go, since most of mine I've modded at some point. Anymore I just play Switch on the go, seriesx at home.
  • Xdqwerty @ Xdqwerty:
    ack my throat
  • K3Nv2 @ K3Nv2:
    I need to invest in some storage totes tbh
  • BigOnYa @ BigOnYa:
    Tots?
  • K3Nv2 @ K3Nv2:
    Tootles
  • BigOnYa @ BigOnYa:
    Tootles? Wtf
  • K3Nv2 @ K3Nv2:
    Oh tootles
  • BigOnYa @ BigOnYa:
    Oh totes , lol, like Tupperware storage, I gotcha
  • BigOnYa @ BigOnYa:
    I'm designing my own entertainment cabinet for my man cave, to store all my systems, then I'm also designing a power supply/HDMI switcher so I can switch to whichever system I want, and power it also. Already picked up the cabinet board, but tinkering with my drawings before start
  • BigOnYa @ BigOnYa:
    But yea, I have frogger arcade cabinet that I gutted and put a Pi4 then Pi5 into, but it never gets played much anymore, should sell it. Even when the kids come over, they don't want to play on it, just the xbox. TMNT and Simpson's arcade is still so fun on it, esp w 2 players.
    BigOnYa @ BigOnYa: But yea, I have frogger arcade cabinet that I gutted and put a Pi4 then Pi5 into, but it never...