Emulation Anyone know how PocketNES assigns SRAM and Savestates?

Lemmy Koopa

M3 Perfect fanboy
OP
Member
Joined
Sep 17, 2012
Messages
347
Trophies
0
Age
34
Location
Ohio
Website
twitter.com
XP
282
Country
United States
I got some hacks of a game that I'd like to have designated/individual SRAM files.

It's sharing one with another hack and making the saves corrupt, having to play all over again.

I've read that PocketNES saves by checking if the ROM data is similar in some section of the ROM, but I don't know where. Can anyone help?
 

Lemmy Koopa

M3 Perfect fanboy
OP
Member
Joined
Sep 17, 2012
Messages
347
Trophies
0
Age
34
Location
Ohio
Website
twitter.com
XP
282
Country
United States
The only piece of advice I have, and it's probably something you've already seen, is this: http://wiki.pocketheaven.com/index.php?title=How_to_exchange_SRAM_between_the_GBA_emulators_and_PC

It might just be easier to create two entirely separate PocketNES compilations, each with its own *.gba and *.sav files.


Isn't that if I want to inject SRAM files from hex? Could I use this to create 2 seperate SRAMs?

I really don't get how PocketNES differentiates between two games. I swore it did a ROM check at a block of data in the game, but I really don't know where and how much.

Some hacks don't impede on the original game, some do. It's weird.
 

Lemmy Koopa

M3 Perfect fanboy
OP
Member
Joined
Sep 17, 2012
Messages
347
Trophies
0
Age
34
Location
Ohio
Website
twitter.com
XP
282
Country
United States
Use Hoe's POCKETNES ROM Builder. In the Tools menu there is an SRAM manager that can save/load NES saves to/from the PocketNES .sav.

I'll check it out. I'm not sure if it'll work with the recent builds of PocketNES that DWedit made though.

I still think PocketNES is the best portable NES emulator between DS and Phone NES emulators so I'm always using it.
 

kuwanger

Well-Known Member
Member
Joined
Jul 26, 2006
Messages
1,510
Trophies
0
XP
1,783
Country
United States
How does PocketNES choose SRAM and savestate files? The short and the long of it is, there's no automagical way to differentiate games from each other with PocketNES because of its checksum algorithm that's used to differentiate roms. So, short of getting lucky like CKY-2K did or modifying PocketNES to use something other than the checksum to choose the SRAM/Savestate, you'll have to do something like disassemble the code at one of the offsets used by the checksum algorithm and either replace it with cognate code, reorder the code while retaining its meaning, or hope some of the code is dead and thereby trivially mutable.
 

Lemmy Koopa

M3 Perfect fanboy
OP
Member
Joined
Sep 17, 2012
Messages
347
Trophies
0
Age
34
Location
Ohio
Website
twitter.com
XP
282
Country
United States
How does PocketNES choose SRAM and savestate files? The short and the long of it is, there's no automagical way to differentiate games from each other with PocketNES because of its checksum algorithm that's used to differentiate roms. So, short of getting lucky like CKY-2K did or modifying PocketNES to use something other than the checksum to choose the SRAM/Savestate, you'll have to do something like disassemble the code at one of the offsets used by the checksum algorithm and either replace it with cognate code, reorder the code while retaining its meaning, or hope some of the code is dead and thereby trivially mutable.


That was me who made that topic as well. Figured I'd ask here too since this is about 100 times more active than PocketHeaven.
 

kuwanger

Well-Known Member
Member
Joined
Jul 26, 2006
Messages
1,510
Trophies
0
XP
1,783
Country
United States
That was me who made that topic as well. Figured I'd ask here too since this is about 100 times more active than PocketHeaven.


I figured such was likely so, but then as here is 100 times more active than PocketHeaven, it seemed a good idea to redirect everyone else to the "best" answer so far. :) Sorry I couldn't be of more help on the issue, though.
 

Lemmy Koopa

M3 Perfect fanboy
OP
Member
Joined
Sep 17, 2012
Messages
347
Trophies
0
Age
34
Location
Ohio
Website
twitter.com
XP
282
Country
United States
I figured such was likely so, but then as here is 100 times more active than PocketHeaven, it seemed a good idea to redirect everyone else to the "best" answer so far. :) Sorry I couldn't be of more help on the issue, though.

You've done a lot of help honestly, probably the best answer I've got so far.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: @salazarcosplay, no sabría cómo decirte