-
Notifications
You must be signed in to change notification settings - Fork 17
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
Save file format questions #283
Comments
Yes. Because 8-bit SRAM is connected to the low byte of the 16-bit bus.
Right.
I don't plan to change it.
Yes. |
Hello,
|
@mhmetalheart : Thank you for that overview! It matches up with what I've seen in my research, and I'm planning on supporting all of those formats (full memory image, .BUP, MiSTer, and Saroo) on the savefileconverter site and you'll be able to convert between them. You added some great details that I didn't know because I don't have access to all of the hardware to test with. May I ping you in the future for some testing? You can find my email or discord here: https://savefileconverter.com/#/about |
@srg320 Thank you for your quick reply, and everything sounds great! I just have a couple more questions about when you support cartridge saves in the future:
Thank you again for your reply: it was very helpful! |
@euan-forrester just only 'separate file'. That will use the SD card to make the 'internal' to be an infinite save device which named by the game name. Easy to find out. That save file can contain the bios, PSKAI, and savedata. And needn't to do another painful thing: to make a custom internal or cartridge which have HUUUUUUGE space like saroo did (if still like the original one, that space is not enough to contain a lot of games, so, need 'change' another internal or cartridge, painful). Easy, and very elegant. @srg320 Actually, I have a save issue, because of no 'save cartridge', so, one game cannot play: [Sega Saturn de Hakken!! Tamagotchi Park]. On console that stupid game need check the cartridge which contain a save file in it. Otherwise, cannot start the game. So, how to play that game on MiSTer? |
Most likely, but I'm not sure yet.
Common file. First 64Kb of internal memory.
I've seen this issue #166. You'll have to wait. |
@srg320 That all sounds perfect and makes sense. Thank you very much for all of your answers, and I'm looking forward to getting Saturn support added to the site! |
@srg320 Hey, one thing I noticed in the example files I was provided is that one of them had some semi-random garbage data in the "expanded" bytes for the first Is this an artifact of an older version of the core or is it something I should expect going forward? If so, is there a maximum offset that this garbage can occur, or should I expect it throughout the file? I've attached the file if you're curious to take a look: Sega Rally Championship Plus (Japan).sav.zip Thank you as always for all of your help! |
The high byte is ignored in the game code. The value of the byte does not matter. In the original it is an open bus, read as 0xFF. |
Gotcha -- thanks for that! |
@mhmetalheart Backup cart support is added, will need also a new Main MiSTer file. |
Oh nice -- excellent! Thank you! I had a look through the commit but wasn't able to understand it: can someone please attach a sample file save file that includes backup cart data that I can test with? |
Please see that savefile with a complete Rayman playthrough on the internal RAM + a save after the first level on the Backup Cart. Once you could understand the format, I will need some help for converting a Tamagotchi Save Cart to a MiSTer compatible file. |
Just ignore my last comment. |
Just use the: SS_Backup_RAM_Parser. Load that Rayman.sav. Then, insert the BUP (or whatever, for example, I use my own bin file). Then, save, and rename to TAmagotchi.sav, put it back to MiSTer save folder. Load game, will start. |
I change the *.sav to *.bin. Loaded the Rayman.bin. can found that backup cart. But I didn't see my inserted TAMAGOTCHI file. Let me keep try. Please wait. |
@euan-forrester Sir, I'm totally failed. Now, I can do nothing. |
@Zet-sensei Thank you for providing that file! @mhmetalheart Once I've added support for these formats to the savefileconverter site it will cover the use cases you outlined and I'll be able to support you on the savefileconverter discord. @srg320 I took a look at the file, and I see that at offset What I found unexpected though was that block So before I add support for this to the savefileconverter site I just wanted to check if the format is finalized or if you plan any further changes. Thank you as always! |
@Zet-sensei @srg320 |
The Load Cartridge menu is for ROM cartridge only.
I don't know what reason mednafen fills
The core loads/saves the backup cartridge memory only when the option Cartridge->Backup is selected. Just select the option for those specific games and don't select for the rest.
First you have to reach a consensus, and then I'll figure out how to do it. |
@euan-forrester I have a question like I said above. Yes, we need think about which way is the best way. As a common user, I thought the external backup cart as a single save file is a good idea, not combine with the internal ram. In this way, you can make the convert tool much more easier, right? And I tried a lot of way, I haven't any idea that how to import the tamagotchi save file into the external. Please help. |
Huh, well fair enough then! I assumed it was so that you can infer the block size of the file. I took a quick look through their source code and found that you're right and they do indeed set that string manually rather than through the BIOS.
If you're asking my opinion, I vote to be consistent with the Sega CD core and have the cart memory optionally appended to the internal memory, only when it contains data. I think that having a common cart memory was fine back in the day when we all had only a few games. But nowadays, especially on devices like the mister, users can try a lot of games quickly and could end up quickly filling a common cart memory. Then we've put the burden of managing that memory on the user:
I'd be wary of assuming that save file I/O was a bottleneck without profiling, but if it is there's a few things I can think of to improve it:
|
This will be supported on the savefileconverter.com site once I release the various Saturn tools I'm working on for the site. Until then I can't help you, but once I release these tools you'll be able to do this and I can support you on the savefileconverter discord. |
Sega Saturn de Hakken!! Tamagotchi Park (Japan).zip And I still think make the external cart as a single cart *.bin file is much better than together with game sav files. But I'm just a gamer, so, you can do what you like. I will always agree on it. |
Hello, I'm the author of savefileconverter.com: https://github.com/euan-forrester/save-file-converter and I'm looking into adding support for MiSTer Saturn files to https://savefileconverter.com/#/mister
From what I've seen, it looks like MiSTer Saturn save files are the same as mednafen's (i.e. just what's written by the Saturn BIOS) but are "byte expanded" from 8 -> 16 bits by inserting bytes containing
0x00
. It looks like only the Saturn's internal memory is emulated at the moment, and users currently can't save to cartridge memory?Is this format set in stone now, or are there plans to change it in the future? Did I miss any details about how it works? Are there plans in the future to emulate cartridge save memory as well?
Thanks for all of your work on this core, and for any help you're able to give me adding support for it to savefileconverter!
The text was updated successfully, but these errors were encountered: