SNES Save State Test core

paulbnl
Core Developer
Posts: 217
Joined: Sun May 24, 2020 8:48 pm
Has thanked: 50 times
Been thanked: 300 times

SNES Save State Test core

Unread post 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

Attachments
SNES_ss_20241008.zip
(1.89 MiB) Downloaded 739 times
gamesfan
Posts: 72
Joined: Mon Jun 07, 2021 7:15 pm
Has thanked: 3 times
Been thanked: 12 times

Re: SNES Save State Test core

Unread post 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.

PikWik
Posts: 279
Joined: Sat May 30, 2020 7:00 pm
Has thanked: 208 times
Been thanked: 74 times

Re: SNES Save State Test core

Unread post 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

User avatar
ItalianGrandma
Posts: 211
Joined: Sun May 24, 2020 7:09 pm
Has thanked: 45 times
Been thanked: 52 times
Contact:

Re: SNES Save State Test core

Unread post by ItalianGrandma »

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

User avatar
Wave
Posts: 132
Joined: Tue Jan 04, 2022 6:57 pm
Has thanked: 93 times
Been thanked: 42 times

Re: SNES Save State Test core

Unread post by Wave »

Whoa, never expected this. Nice work!!

Is this expected to merge into mainline eventually?

she/her
amano
Posts: 7
Joined: Fri Sep 06, 2024 7:57 pm
Has thanked: 6 times
Been thanked: 3 times

Re: SNES Save State Test core

Unread post by amano »

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

Dudu
Posts: 3
Joined: Tue Oct 08, 2024 10:11 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Núcleo de teste de estado de salvamento SNES

Unread post 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!

Neocaron
Top Contributor
Posts: 375
Joined: Sun Sep 27, 2020 10:16 am
Has thanked: 209 times
Been thanked: 87 times

Re: SNES Save State Test core

Unread post by Neocaron »

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

Remastering Classic Game Cinematics: My new Youtube fun, check it out :D
https://www.youtube.com/@neocaron87

HuggingIntense
Posts: 2
Joined: Mon May 27, 2024 6:26 pm
Been thanked: 2 times

Re: SNES Save State Test core

Unread post by HuggingIntense »

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

mook8515
Posts: 1
Joined: Wed Oct 09, 2024 6:29 am
Has thanked: 1 time
Been thanked: 1 time

Re: SNES Save State Test core

Unread post 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.

lordelan
Posts: 17
Joined: Tue Aug 16, 2022 9:36 am
Has thanked: 31 times
Been thanked: 4 times

Re: SNES Save State Test core

Unread post 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.

iamTeddyNL
Posts: 9
Joined: Thu Aug 19, 2021 7:54 am
Has thanked: 2 times
Been thanked: 3 times

Re: SNES Save State Test core

Unread post 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?

Wabbajack
Posts: 19
Joined: Tue Mar 29, 2022 11:46 am
Has thanked: 1 time
Been thanked: 1 time

Re: SNES Save State Test core

Unread post 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

PixelCherryNinja
Posts: 6
Joined: Wed Oct 12, 2022 6:52 am
Has thanked: 6 times
Been thanked: 6 times

Re: SNES Save State Test core

Unread post by PixelCherryNinja »

Thanks Paul

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

lordelan
Posts: 17
Joined: Tue Aug 16, 2022 9:36 am
Has thanked: 31 times
Been thanked: 4 times

Re: SNES Save State Test core

Unread post 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? =)

PixelCherryNinja
Posts: 6
Joined: Wed Oct 12, 2022 6:52 am
Has thanked: 6 times
Been thanked: 6 times

Re: SNES Save State Test core

Unread post 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

User avatar
Newsdee
Top Contributor
Posts: 873
Joined: Mon May 25, 2020 1:07 am
Has thanked: 104 times
Been thanked: 239 times

Re: SNES Save State Test core

Unread post by Newsdee »

Amazing addition, well done!

lordelan
Posts: 17
Joined: Tue Aug 16, 2022 9:36 am
Has thanked: 31 times
Been thanked: 4 times

Re: SNES Save State Test core

Unread post 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

User avatar
MiSSes
Posts: 7
Joined: Mon May 25, 2020 8:56 pm
Has thanked: 7 times
Been thanked: 2 times

Re: SNES Save State Test core

Unread post by MiSSes »

You are my hero. Keep on keeping on!

User avatar
holaplaneta
Posts: 22
Joined: Thu May 28, 2020 5:55 am
Has thanked: 28 times
Been thanked: 5 times

Re: SNES Save State Test core

Unread post 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.

xstahsie
Posts: 1
Joined: Wed Oct 09, 2024 4:44 pm
Been thanked: 1 time

Re: SNES Save State Test core

Unread post by xstahsie »

This is amazing 👏 Are there any plans to release this for the Analogue Pocket ?

Escape-To-88
Posts: 45
Joined: Fri Apr 30, 2021 7:07 pm
Has thanked: 11 times
Been thanked: 2 times

Re: SNES Save State Test core

Unread post by Escape-To-88 »

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

User avatar
Waifu4Life
Posts: 271
Joined: Fri Jun 19, 2020 5:30 am
Has thanked: 21 times
Been thanked: 47 times

Re: SNES Save State Test core

Unread post 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?

User avatar
Retro-Nerd
Posts: 279
Joined: Fri Jul 08, 2022 2:47 am
Has thanked: 12 times
Been thanked: 80 times

Re: SNES Save State Test core

Unread post 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.

User avatar
Follow
Posts: 14
Joined: Mon Aug 05, 2024 9:53 pm
Has thanked: 6 times
Been thanked: 2 times

Re: SNES Save State Test core

Unread post 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

jandal
Posts: 3
Joined: Wed Oct 09, 2024 9:52 pm
Been thanked: 2 times

Re: SNES Save State Test core

Unread post 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?

gamesfan
Posts: 72
Joined: Mon Jun 07, 2021 7:15 pm
Has thanked: 3 times
Been thanked: 12 times

Re: SNES Save State Test core

Unread post 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!

User avatar
SwedishGojira
Posts: 64
Joined: Sun May 24, 2020 7:26 pm
Location: Sweden
Has thanked: 27 times
Been thanked: 28 times
Contact:

Re: SNES Save State Test core

Unread post 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.

Gymcrash
Posts: 22
Joined: Tue Jun 16, 2020 11:08 am
Has thanked: 4 times
Been thanked: 2 times

Re: SNES Save State Test core

Unread post 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!

User avatar
Follow
Posts: 14
Joined: Mon Aug 05, 2024 9:53 pm
Has thanked: 6 times
Been thanked: 2 times

Re: SNES Save State Test core

Unread post 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.

Post Reply