Lime-3DS-Emulator icon indicating copy to clipboard operation
Lime-3DS-Emulator copied to clipboard

Save State Crashes My Game

Open Litbolt123 opened this issue 1 year ago • 34 comments
trafficstars

Is there an existing issue for this?

  • [X] I have searched the existing issues

Affected Build(s)

Nightly 2109

Description of Issue

To have the save state function work. I know its built into Lime but it hasn't worked for me, it just crashes the game. Could you get this working properly? Lemonade was going to get rid of it but they went down. Please don't get rid of it :) I think its a very nice feature.

It shows as it saved the state to a slot which is good, although, when i click the load that state, it instantly crashes Lime. I was playing Pokémon Rumble Blast but I don't think that is affecting it.

Also, where can I find the log/crash file I need to share with you guys? Just wanted to get it to you for the best problem solving.

Expected Behavior

The saved state in its appropriate slot would load what was saved.

Reproduction Steps

Open a game. Click save state. Play for any amount of time afterword. Try and Load that state. Crashes.

Log File

citra_log.txt.old.txt

System Configuration

CPU: Ryzen 7 6800H GPU/Driver: RTX 3070ti (Mobile) RAM: 32gb ddr5 OS: Windows 11

Litbolt123 avatar Apr 18 '24 11:04 Litbolt123

Have you only experienced crashes with a single specific saved state? Have you tried creating a new save state and then loading from that?

OpenSauce04 avatar Apr 18 '24 11:04 OpenSauce04

I have not. I will test that out right now. 👍

Litbolt123 avatar Apr 18 '24 11:04 Litbolt123

So, its funky. I just save 2 more states and one of them worked, but then I went ahead in a level and tried to load that same state again and it was jumped forward in the game, not the original state I saved. And then I saved another state farther in the level but when I tried to load that, it crashed like it had with the save state I've been having problems with in the first place.

Litbolt123 avatar Apr 18 '24 11:04 Litbolt123

That's strange, I've never experienced any issues like that

OpenSauce04 avatar Apr 18 '24 11:04 OpenSauce04

Does it save the crash log somewhere? I could send you that although I don't know where it is.

Litbolt123 avatar Apr 18 '24 11:04 Litbolt123

Does it save the crash log somewhere? I could send you that although I don't know where it is.

File->Open Lime3DS Folder->Log

rtiangha avatar Apr 18 '24 16:04 rtiangha

Hey, is there anything I need to do to help solve this?

Litbolt123 avatar Apr 24 '24 14:04 Litbolt123

Long shot, but does one of these builds help? I'm working off of PabloMK7's fork, but I've got more updated dependencies than his fork.

https://github.com/rtiangha/bravely-offline-citra/releases

From what I understand, save states mostly rely on Boost serialization libraries and zstd (for save state compression). I've got the latest Boost in my builds (1.85.0), so I wonder if that helps. That said, I noticed that there are also local Boost libraries that haven't been updated in a while, so when I have time, I'm going to see if those can be updated without breaking things (I've already noticed that things don't work with dropping in 1.85.0 versions) and see if that helps. Who knows. I'm just playing around.

rtiangha avatar Apr 24 '24 15:04 rtiangha

Ok, what would I need to get from your fork, if that's what you want me to try. Also, I could always wait I guess for Lime to add or fix it too.

Litbolt123 avatar Apr 24 '24 17:04 Litbolt123

Also, I could always wait I guess for Lime to add or fix it too.

I can only assume that the point of the question was to see if those changes should be merged into Lime3DS, hence fixing the issue

OpenSauce04 avatar Apr 24 '24 17:04 OpenSauce04

Yes.

Litbolt123 avatar Apr 24 '24 17:04 Litbolt123

If that is what it took to fix it and if that was a viable solution.

Litbolt123 avatar Apr 24 '24 17:04 Litbolt123

Ok, what would I need to get from your fork, if that's what you want me to try. Also, I could always wait I guess for Lime to add or fix it too.

Try the latest release and see if it fixes things (or makes things worse, lol).

rtiangha avatar Apr 24 '24 17:04 rtiangha

The latest release of Lime right?

Litbolt123 avatar Apr 24 '24 17:04 Litbolt123

How to I update without losing all my data? I have downloaded the newest release but don't know how to update my current release.

Litbolt123 avatar Apr 24 '24 17:04 Litbolt123

Of this: https://github.com/rtiangha/bravely-offline-citra/releases

And Lime too, while you're at it (2110).

rtiangha avatar Apr 24 '24 17:04 rtiangha

How to I update without losing all my data? I have downloaded the newest release but don't know how to update my current release.

You can have different instances on your computer as long as they're in different folders; they all pull from the same settings at the moment as Lime3DS still shares the stock Citra settings folder (Edit: Well, it does if you originally used the Citra installer; on Windows, that saved settings to the Roaming directory and Lime3DS pulls from that if it exists. Things may be saved to the Lime3DS local directory if you started with just Lime3DS, but it doesn't matter for testing; we just want to see if Save States work in general). So for now, just download a release, unzip it, and run the executable to test things.

rtiangha avatar Apr 24 '24 17:04 rtiangha

So, I was playing around in Pokemon Rumble Blast again and I again saved the state at the start of the level and then progressed in the level. I was able to load the state I had saved at the start of the level, so yay! But I had also saved a state farther in the level. When I tried to load that it crashed the game as usual. So thats not good.

Litbolt123 avatar Apr 24 '24 18:04 Litbolt123

heres my log after the crash

Litbolt123 avatar Apr 24 '24 18:04 Litbolt123

hmmmm, I just opened the game again and was off the bat able to load the first and second state, but when I tried to load the third state, it crashed as it had before :/

Litbolt123 avatar Apr 24 '24 18:04 Litbolt123

Btw, I am playing on the Citra download you gave me in these comments (I also downloaded the newest release of Lime)

Litbolt123 avatar Apr 24 '24 18:04 Litbolt123

For the moment, just test creating new save states from this point on and opening them and see if that's working reliably; I wouldn't be surprised if older save states saved under older versions of Boost and zstd didn't work consistently. Also, don't be switching save states between Citra and Lime3DS; my builds use a different Boost version (I'm on 1.85.0 and I believe Lime3DS still uses what the last Citra Nightly did which is 1.82.0) and that could cause issues.

rtiangha avatar Apr 24 '24 18:04 rtiangha

Ok, I didnt switch saves between Citra and Lime. I only used Citra. I deleted my old save states and only created ones and tested them in the Citra you sent me.

Litbolt123 avatar Apr 24 '24 19:04 Litbolt123

hmmmm, I just opened the game again and was off the bat able to load the first and second state, but when I tried to load the third state, it crashed as it had before :/

This is the new saves on the Citra you sent me

Litbolt123 avatar Apr 24 '24 20:04 Litbolt123

Anything else I need to do to help?

Litbolt123 avatar May 08 '24 12:05 Litbolt123

So wait, are things better now? If so, I'll make a Lime3DS version for you to test just to make sure. If not, then I'm out of ideas.

rtiangha avatar May 08 '24 13:05 rtiangha

Things are not better :/

Litbolt123 avatar May 08 '24 13:05 Litbolt123

I save a state in a Pokémon Rumble Blast. Try and load the state. It crashes Lime. That's all I can find out.

Litbolt123 avatar May 08 '24 13:05 Litbolt123