New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SOROM games not loading/saving PRG RAM (WRAM) correctly #178
Comments
using nstdatabase.xml |
So, how to fix this dragon2snow? |
try two solution: 2.SOROM |
Thank you, if we opt for solution 2. Then what file is that in the source? I will probably add that entry into the database as well. |
For the 2nd solution, it would be source/core/board/NstBoard.hpp. I still don't know which is the "proper" solution, nor have I verified either of them work. My concern with the 2nd solution is, just at first glance (I have not looked at how that enum is being used), that it increases the PRG RAM size to 16KB in some manner. Does this mean 16KB gets written to the .sav file? If so, I don't see how that's accurate -- information clearly shows that only PRG RAM page 1 is battery-backed, and each page is 8KB. |
Ill give these a try when I get home. have you tried either one of these koitsu yet? |
Nope; I don't have a VM built for Visual Studio projects. |
I've only been provide test solution, but is not accurate, I don't want to promise |
So really, neither route is accurate? |
Wouldn't the easy way to fix this just be to edit these three games entries in the nestopia database.xml file to save? |
Correction, editing the xml is definitely not the way to do it and hacking up the xml to save in 32kb is NOT correct either. Looks like save and load functionality will need to be looked at in NST board for MMC1 i think instead. |
100% working... |
So, what did you do dragon to fix? How? |
There are 3 Koei games (Romance of the Three Kingdoms, Nobunaga's Ambition, and Genghis Khan), all of which are SOROM games, whose native save capability (i.e. PRG RAM/WRAM) doesn't appear to work correctly. After saving, when power-cycling and attempting to load saved data, the games will simply say "No saved data".
It's suspected that the reason this doesn't work is that Nestopia is either loading or saving the wrong 8KB PRG RAM page. Specific to SOROM boards, we have this, per the nesdev wiki -- note the last line:
I don't have a patch for this because the PRG RAM/WRAM and save file code is very complex, so I'm not even sure where the problem lies.
Steps to reproduce:
It's hard to tell from the .sav file if the data stored is correct or not (e.g. character names in ASCII are there, but that could be data from PRG RAM page 0 rather than 1; unsure!), so it's difficult to determine if the issue is with loading, or with saving.
Discussion thread: http://forums.nesdev.com/viewtopic.php?f=3&t=14205
SxROM details: http://wiki.nesdev.com/w/index.php/SxROM
HVC-SOROM games: http://bootgod.dyndns.org:7777/search.php?unif=HVC-SOROM
NES-SOROM games: http://bootgod.dyndns.org:7777/search.php?unif=NES-SOROM
The text was updated successfully, but these errors were encountered: