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
  • No one is chatting at the moment.
  • K3Nv2 @ K3Nv2:
    I'll reformat and have a 3tb raid0 m. 2 at least
    +1
  • K3Nv2 @ K3Nv2:
    Lmao that sold out fast
    +1
  • Veho @ Veho:
    Yeet the cat.
    +1
  • K3Nv2 @ K3Nv2:
    Good idea
    +1
  • The Real Jdbye @ The Real Jdbye:
    i thought everybody knew cocktails are like 75% ice
  • Veho @ Veho:
    Yeah but not like this.
  • Veho @ Veho:
    It's not like they're complaining that their Slurpee is 99% ice or something, but if the cocktail calls for "shot of vodka, shot of vermouth, shot of gin, shot of Campari, three shots of juice, squirt of lemon" and ends up being a thimbleful of booze, that's a problem.
  • The Real Jdbye @ The Real Jdbye:
    the funny thing is cocktails in norway are only allowed to have 1 20ml shot of booze
  • The Real Jdbye @ The Real Jdbye:
    so..... yeah
  • The Real Jdbye @ The Real Jdbye:
    we're used to only having a thimbleful of booze
  • Veho @ Veho:
    Booo.
  • The Real Jdbye @ The Real Jdbye:
    same thing if you want whisky on the rocks or something, you can't get a double
  • The Real Jdbye @ The Real Jdbye:
    but you could buy as many shots of whisky (or anything else) as you want and ask for a glass of ice and pour them in
  • The Real Jdbye @ The Real Jdbye:
    it's dumb
  • Veho @ Veho:
    Maybe.
  • Veho @ Veho:
    There was a comparison of the number of Ibuprofen poisonings before and after they limited the maximum dosage per box or per pill (i'll look that up). No limit on the number of boxes you can still buy as many as you want, so people argued it was pointless.
  • Veho @ Veho:
    But the number of (accidental) poisonings dropped because drinking an entire package of ibuprofen pills went from "I need a new liver" to "I need a new box of Ibuprofen".
  • Veho @ Veho:
    Here we have ketoprofen that used to be prescription-only because of the risk of toxic dosages, but then they halved the dose per pill and sell them in bottles of six pills apiece instead of twenty and it doesn't need a prescription any more. Yes you can buy more than one bottle but people simply don't.
  • Psionic Roshambo @ Psionic Roshambo:
    Usually accidentally overdose of ibuprofen here is from people taking like cold medicine then ibuprofen for a headache and the combination is over what they need
    Veho @ Veho: https://imgur.com/gallery/QQkYnQu