SRAM bug

Found a bug? Please report it, but remember to follow the bug reporting guidelines.
Missing a sane feature? Let us know!
But please do NOT request ports to other systems.

Moderator: ZSNES Mods

Post Reply
Exin
New Member
Posts: 7
Joined: Sat Aug 14, 2004 6:32 am

SRAM bug

Post by Exin »

There seems to be a bug in the 10/19 WIP concerning the SRAM. I'm not smart enough to say what is going on, so I'll have to give an example and let other people figure it out.

I had two games that use srm files, Final Fantasy 3 and FM - Gun Hazard. I opened up FF3 in Zsnes and before I loaded the save I opened Gun Hazard. Without doing anything in Gun Hazard I opened up FF3 and the save was erased. I don't know if it matters, but Gun Hazard's srm is now 64kb instead of the 8kb it should be.

It isn't just these two games that are the problem. I've now lost four save games (Chrono Trigger once, Monstania once, and Gun Hazard twice) due to this bug.

Monstania didn't even require loading another game. I had a save at the end of the game, but just started a new game to quickly look at the bug mentioned in the "Official Bugs" thread. When it froze I just quickloaded Monstania again and the save was gone.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Was this present in previous versions?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Exin
New Member
Posts: 7
Joined: Sat Aug 14, 2004 6:32 am

Post by Exin »

I just downloaded and tested in the 9/20 WIP. It didn't erase the saves.

Edit: If I just open a game that normally doesn't leave any srm (I used Castlevania 4) it leaves a 64k srm file for some reason.

My computer buggered up earlier this week and now I'm worried/thinking that that might be the cause of this problem. I thought I fixed any problems, but perhaps there's some stray dll somewhere that isn't quite working properly that's causing this problem (I downloaded a fresh install of the 10/19 and it was borked as well). I just can't remember which came first, the computer buggering or the first save deletion.
grinvader
ZSNES Shake Shake Prinny
Posts: 5632
Joined: Wed Jul 28, 2004 4:15 pm
Location: PAL50, dood !

Post by grinvader »

Questions:
Options->Sram check&Save toggled on or off ?


Cannot reproduce this bug in zsnesl cvs.
皆黙って俺について来い!!

Code: Select all

<jmr> bsnes has the most accurate wiki page but it takes forever to load (or something)
Pantheon: Gideon Zhi | CaitSith2 | Nach | kode54
Exin
New Member
Posts: 7
Joined: Sat Aug 14, 2004 6:32 am

Post by Exin »

Yeah, I tried it once with sram check and save toggled on and it still deleted the save.

I just downloaded the dos 10/19 because I figured it wouldn't use any windows files that might be buggered, but it had the same problem for me. Maybe the solution is as simple as my computer being evil and hating me.
Shogun of Truth
New Member
Posts: 5
Joined: Sun Oct 24, 2004 5:30 pm

Post by Shogun of Truth »

I'm having the same problem, since I've started using ZSNES WIP 10/19, I've lost saves in a good deal of my games, including all of the DKC games, Crono Trigger, Final Fantasy 6 and a bunch of others that don't come to mind at the moment.
I've tried messing around with Sram check & Save, but it doesn't seem to help. I treid going back to older ZSNES versions to see if 10/19 was just failing to load certain .srm files, but the I only found that my saves we're indeed erased.

I hope this is corrected soon, so I can enjoy the new SuperFx fixs without risking losing my save data.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

I think I know what's going on, I will try to fix this time permitting.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Okay I got in a fix for this problem. Unforunetly ZSNES has some major SRAM/Battery issues and I don't have the time or the energy right now to fix it all the way it should be.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
ipher
ZSNES Developer
ZSNES Developer
Posts: 269
Joined: Wed Jul 28, 2004 2:37 am
Contact:

Post by ipher »

The 10/24 WIP is now, which should fix this.
[url=http://www.ipherswipsite.com]ipher's WIP Site[/url]
Exin
New Member
Posts: 7
Joined: Sat Aug 14, 2004 6:32 am

Post by Exin »

10/24 seems to be working fine for me, so thanks a lot for the quick fix.
Cecil
Paladin
Posts: 75
Joined: Fri Jul 30, 2004 2:25 am

Post by Cecil »

I just read the changelog for the 10/24 WIP, and was wondering what the other SRAM problems were?
System Specs:

2.2GHz Athlon64 X2 4400+, 2GB DDR 400 SDRAM
EVGA Geforce 7600GT 256MB
Realtek AC '97
Microsoft Windows Vista Home Premium
Shogun of Truth
New Member
Posts: 5
Joined: Sun Oct 24, 2004 5:30 pm

Post by Shogun of Truth »

Yeah, thanks for the swift action to get this WIP so I can enjoy Zsnes again.

Again, many thanks to Nach and Ipher.
Bent
Lurker
Posts: 193
Joined: Wed Jul 28, 2004 5:16 am

Post by Bent »

So that's why my brother's breath of fire save file got deleted this weekend. Luckily he had a recent save state.
~Bent
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Cecil wrote:I just read the changelog for the 10/24 WIP, and was wondering what the other SRAM problems were?
Some games that don't have a battery are saving SRAM. Some games also don't have large enough SRAM.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
gamer767

Having a stange problem with SRAM too...

Post by gamer767 »

Hello. I was going to start another topic regarding my problem but it seems like this thread is SRAM related so...

I have assigned the exit key of Zsnes to the space bar for convenience but every time I exit via my assigned exit key a .srm file for that particular game is created in the Zsnes directory.(This only happens for games with the battery save feature. Normal games are not effected) I have set my save path to a save directory and Zsnes will save .srm files in that path. This problem only manifests itself when I press an assigned exit key and not when I choose quit through the GUI. Have I found a bug or is this normal for Zsnes to do this?

This problem is not a big one it's just that I'm curious why Zsnes does this. Also I'm worried that there might be a conflict having two .srm files for the same game. And I like to keep things tidy on my comp too. ;) Is there a way to stop Zsnes from saving .srm files in its home directory when pressing the exit key? I’m using ZSNESW_1024 Thank you
ipher
ZSNES Developer
ZSNES Developer
Posts: 269
Joined: Wed Jul 28, 2004 2:37 am
Contact:

Post by ipher »

hmm, that is odd... for me it'll make a SRAM save in BOTH places, the ZSNES directory, and the Save directory, both the exact same file, both made on exit.
[url=http://www.ipherswipsite.com]ipher's WIP Site[/url]
Astxist
Rookie
Posts: 32
Joined: Wed Jul 28, 2004 12:40 pm

Post by Astxist »

Yeah it seems to be doing the same thing here.


Astxist
Post Reply