Page 1 of 3

SNES Save State Test core

Posted: Tue Oct 08, 2024 1:15 pm
by paulbnl

Hi,

I have been busy working on save states for the SNES core. It is done in a way that is more like how it would be done on real hardware like with an SD2SNES. It overrides the NMI interrupt and runs some code on the SNES to save the state.

Here is your chance to help test the feature. You will need the attached SNES core and then load the savestates.bin file with "Load SS bin" before loading a game. This only needs to be done once.

Also currently the unstable Main is needed otherwise loading the bin file won't work. It can be found at the bottom of this link: https://github.com/MiSTer-unstable-nigh ... r/releases


Re: SNES Save State Test core

Posted: Tue Oct 08, 2024 3:38 pm
by gamesfan

Wow! This is amazing and I tested it on a few games including some MSU ones.
No issues so far!
Thank you so much for your efforts and sharing.


Re: SNES Save State Test core

Posted: Tue Oct 08, 2024 4:08 pm
by PikWik

while i personally dont use save states, this is a very anticipated release and will absolutely be appreciated by my fellow kaizo enthusiasts

fantastic work, Paul


Re: SNES Save State Test core

Posted: Tue Oct 08, 2024 6:09 pm
by ItalianGrandma

Really amazing! I'll definitely try this out soon!


Re: SNES Save State Test core

Posted: Tue Oct 08, 2024 7:23 pm
by Wave

Whoa, never expected this. Nice work!!

Is this expected to merge into mainline eventually?


Re: SNES Save State Test core

Posted: Tue Oct 08, 2024 8:46 pm
by amano

Wow, that came out of the realm of unexpectedness. The always great paubl-nl to the rescue πŸ›Ÿ


Re: NΓΊcleo de teste de estado de salvamento SNES

Posted: Tue Oct 08, 2024 10:16 pm
by Dudu

What an amazing job! I've always been waiting for this moment! I've tested several games! I haven't had any problems with any of them!


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 3:58 am
by Neocaron

I have tested it on a few games and no problem so far, this is awesome! Bravo!


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 5:34 am
by HuggingIntense

found one game that doesn't work with ss...Garou Densetsu Special.


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 6:41 am
by mook8515

Thank you for the update! But I’m confused I cannot find unstable Main. Is this from the mister-unstable-nightlies github? Is this referring to an unstable build of the SNES core?

EDIT: instructions are posted here https://www.youtube.com/watch?v=MZ9H_3AcSC8.
You have to override the "MiSTer" file on root of sd card with the unstable version found on discord.


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 7:41 am
by lordelan
paulbnl wrote: ↑Tue Oct 08, 2024 1:15 pm

Hi,

I have been busy working on save states for the SNES core. It is done in a way that is more like how it would be done on real hardware like with an SD2SNES. It overrides the NMI interrupt and runs some code on the SNES to save the state.

Here is your chance to help test the feature. You will need the attached SNES core and then load the savestates.bin file with "Load SS bin" before loading a game. This only needs to be done once.

Also currently the unstable Main is needed otherwise loading the bin file won't work.

Are you serious? You drop one of the most anticipated features so casually? :D

This is nothing short of amazing! Thank you so much! Hopefully bugs can be ironed out and this can somehow find its way into the main repo.


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 7:56 am
by iamTeddyNL

Hi paul, I want to start off with my sincere appreciation to you and also srg320 for the efforts on the SNES core. It is nothing short of amazing. I will gladly assist in testing. Does this core have any known/intended limitations, eg for special chip support?


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 8:56 am
by Wabbajack

Hi paulbnl, I have tested your implementation of savestates and it's working like a charm! Tested on well knows gmes as SMA, SMW, Super Metroid, DKC1/2/3... all is working perfectly and no issue founded


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 9:05 am
by PixelCherryNinja

Thanks Paul

If you have a Patreon/KoFi please let me know, so that I can add it to video descriptions.


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 9:19 am
by lordelan
PixelCherryNinja wrote: ↑Wed Oct 09, 2024 9:05 am

Thanks Paul

If you have a Patreon/KoFi please let me know, so that I can add it to video descriptions.

PCN my boy. Are you showing this off in a new video? =)


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 9:29 am
by PixelCherryNinja
lordelan wrote: ↑Wed Oct 09, 2024 9:19 am
PixelCherryNinja wrote: ↑Wed Oct 09, 2024 9:05 am

Thanks Paul

If you have a Patreon/KoFi please let me know, so that I can add it to video descriptions.

PCN my boy. Are you showing this off in a new video? =)

Video just dropped πŸ˜„
https://youtu.be/MZ9H_3AcSC8?si=JeyxJNkWKeH3mrav


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 11:49 am
by Newsdee

Amazing addition, well done!


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 12:12 pm
by lordelan
PixelCherryNinja wrote: ↑Wed Oct 09, 2024 9:29 am
lordelan wrote: ↑Wed Oct 09, 2024 9:19 am
PixelCherryNinja wrote: ↑Wed Oct 09, 2024 9:05 am

Thanks Paul

If you have a Patreon/KoFi please let me know, so that I can add it to video descriptions.

PCN my boy. Are you showing this off in a new video? =)

Video just dropped πŸ˜„
https://youtu.be/MZ9H_3AcSC8?si=JeyxJNkWKeH3mrav

Nice, something to pretend me from working. :D


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 2:02 pm
by MiSSes

You are my hero. Keep on keeping on!


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 4:16 pm
by holaplaneta

This is nothing short of amazing! Thank you!!!! Been waiting for 6 years for this! You made my 2024. Keep up the great work.


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 4:46 pm
by xstahsie

This is amazing πŸ‘ Are there any plans to release this for the Analogue Pocket ?


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 5:15 pm
by Escape-To-88

Anyone else having issues with this saving and the QMTech clone board? I'm guessing a RAM issue?


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 5:51 pm
by Waifu4Life
paulbnl wrote: ↑Tue Oct 08, 2024 1:15 pm

Here is your chance to help test the feature. You will need the attached SNES core and then load the savestates.bin file with "Load SS bin" before loading a game. This only needs to be done once.

Once per session or once per game?


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 7:13 pm
by Retro-Nerd

As he said. Only once. Not per session or game. Load "savestates.bin" file once and you can save & load the states for all games.


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 8:42 pm
by Follow
Escape-To-88 wrote: ↑Wed Oct 09, 2024 5:15 pm

Anyone else having issues with this saving and the QMTech clone board? I'm guessing a RAM issue?

Me, glitches and crash any rom

https://www.youtube.com/watch?v=7rLcFAwZoW0


Re: SNES Save State Test core

Posted: Wed Oct 09, 2024 9:54 pm
by jandal

Ive installed and will test. This looks fantastic!

one more general question: how come these kind of things dont appear as PRs or forks on the main mister github? Is it just that OP keeps it private/local until theyre ready to do that?


Re: SNES Save State Test core

Posted: Thu Oct 10, 2024 1:36 am
by gamesfan

Works really well on most games, I did find that mortal Kombat 2 will not work with save states , saving or restoring doesn’t seem to work. Others have said games with special chips may not work but I was not aware of MK2 being a special chip game.
All others I have tested so far work fine it seems .

Great work!


Re: SNES Save State Test core

Posted: Thu Oct 10, 2024 5:53 am
by SwedishGojira

It would be interesting to know more bout how this is done. Will it be able to set the chips into the correct states when loading a savestate, since I believe that was what they had trouble with for the flashcarts?

You can read about the method used for SD2SNES here, as I understand it is similar.


Re: SNES Save State Test core

Posted: Thu Oct 10, 2024 8:53 am
by Gymcrash

Is there a patreon or kofi for you paul? I would like to donate as I had a personal bounty for anyone who solved this!


Re: SNES Save State Test core

Posted: Thu Oct 10, 2024 9:36 am
by Follow

More test:
https://youtu.be/BOws_FCcxhE

Used same rom Contra (PixelCherryNinja) crash
Donkey Kong 2 glitch/crash
Super Mario World 2 , save "disabled"

I can't say if it's Qmtech's memory, the states of the other cores are working.