Corrupted Save File After Adding More Mods?

annahimesama

Greenhorn
I am near the end of year 2 on a modded SVE file, which has run with no issues so far. Today, I decided to add a few more mods, but after doing so my save file would not load. It gives me the option to click it from the Home Screen, but after an abnormal loading time the entire game crashes. I immediately removed all of the new mods I'd added, but that didn't do the trick either. I tried to follow Ape's troubleshooting tips, including deleting/replacing the files named "old", but after that tinkering I've apparently lost about a week and a half in-game...? Based on what data displays for my save file from the Home Screen now (back in Summer when I was in week 2 of Fall).

I'm really inept with computers, and I'm worried I'm making everything worse with my attempts, so sending out a Hail Mary here. I'm attaching my SMAPI log and my most recent SMAP back-up save file (hopefully?). If there's anything else I can add here please let me know.

SMAPI log: https://smapi.io/log/0ea286d910ce4153a5b27abdb2f7a7a2
 

Attachments

Thanks for the log, and save. I'm not seeing an error. Though, I do see you were in Fall as you mentioned.

Code:
22:10:20    TRACE    game    SaveGame.Save() completed without exceptions.
22:10:24    TRACE    SMAPI    Context: after save, starting fall 8 Y2.
I see you still have the SMAPI SaveBackup mod installed. You could try checking the backups there if it has your Fall save:
Start at this part,
If the files are missing but you have SMAPI installed, here's how to recover a backup:
----
The summer save you posted seems to load okay for me with my few mods. I see the custom Npcs, but otherwise loadable.
Are you able to at least load that one, or does this also have issues?
 

annahimesama

Greenhorn
Thank you so much for checking!

I do have that folder of SMAPI backups open, thankfully. The one titled for 2-28 is the save I attached here, although I'm worried I'm starting to get them all a bit confused because of the save names. When I boot that one up, it shows the Summer save on the Home Screen, but when I click to load in then the game crashes (after a long loading time). It's the same as when I was trying to load the original Fall save unfortunately.

Also, I guess I want to 100% check I'm even running the backup save correctly. What I've done is unzip the SMAPI backup titled for 2-28, and it opened up a save folder that looks identical to the one in my actual Stardew "Saves" folder. So, I took the current Save out of there (and left it on my desktop), then copy and pasted the unzipped 2-28 backup into it. Now I get that Summer save. Is that the correct way to do that? Sorry for the dumb q, complete novice here with this stuff..
 
No prob!

Ah okay; yea I was hoping it had a more recent backup from the Fall season. But, that's okay.
And yes, you're correct in copying over, and placing the files in the normal save location.
No worries; it's not a dumb question; they're good questions to verify, and learn!

Could you try temporarily removing the SDV Expanded mod? Sometimes the larger mods can slow down loading a late-game save.
Alternatively, you could also try starting a new save with the current mods; just to verify that the game can load in the first place.
 

annahimesama

Greenhorn
I tried your second option first, just wanted to document here. I was able to create a new save file and open up the game as expected (still with all my current mods, including Expanded), saved and quit to title. However, now that new save is the only one displaying in Load? But it looks like both save files for my two farms (original = Puqi, new = Qiandeng) are still present in my Saves folder? Not sure if this helps locate an issue.

Would you still recommend that I try removing Expanded to see if that helps?

Screenshot 2023-02-28 at 8.50.25 PM.png

Screenshot 2023-02-28 at 8.51.25 PM.png
 
Last edited:

annahimesama

Greenhorn
Another little update: while tinkering with a fresh head tonight, I realized that the game was no longer launching my Terminal alongside it as it had always previously done (while modded). I managed to get my Summer 27 save loading on the Home Screen again now, so I tried directly launching the game via the Terminal (following some instructions from this thread), and the Summer save still crashed.

But now, I can see some errors in my Terminal that may be helpful? This is part of it:

Could not find file '/Users/annadgrinstead/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/Resources/Content/Characters/MarlonFay.xnb'.

File name: '/Users/annadgrinstead/Library/Application Support/Steam/steamapps/common/Stardew Valley/Contents/Resources/Content/Characters/MarlonFay.xnb'


Would it be of any help to paste that whole chunk here? I feel like I've seen this phrase about "MarlonFay" in one of the dozen help threads I've been reading haha :sweat:
 
Thanks, for testing.
Yea, with the new save loading with all the mods; it sounds like it's just the late-game, modded data causing it to load slowly.
And, eventually crashing due to not enough memory.

The terminal shouldn't disappear normally; kinda odd. Did you modify the launch script or anything?

Glad to hear you were able to bring the save back up on the load screen.
The new error is that "MarlonFay" is a SDV Expanded character saved to that savefile. But, that you removed the SDV Expanded mod for us to test; so it can't find the character data.
That's an expected error to see, but usually the "Error Handler" mod can fix most of those issues. Though, it sometimes fails.
You can add SDV Expanded back.

Earlier, I tried installing SDV Expanded to test the save. On first load it crashed, but on 2nd; after closing out some programs it loaded.
I'd try doing the same if possible; close out any unneeded programs; see if it has enough memory to load then.
 

annahimesama

Greenhorn
I haven't modified any launch script that I know of! Ever since I got SMAPI + all the mods I'm using on this file, my Terminal would launch every time I ran the game, and I believe I read somewhere that this was normal for Mac? Never had any issues with it, so I've always left it alone. Just realizing that since this issue began, the Terminal stopped launching as well -- not sure if that indicates any possible issues with my SMAPI itself?

Also, I should've clarified better, sorry! I never tried removing SDV Expanded thus far. So that error code about MarlonFay seems to be generating despite the fact that I still have Expanded in my Mods folder as of right now (I was a bit nervous to try removing it, so I tried your other recommendations first~!).

I just tried launching that save again with practically nothing else open on my computer, still crashed. I took a video this time to show you, although that may not be much good:


Would you still recommend that next I should try removing the SDV Expanded mod, then adding it back in? Thank you again so much for all the help here ;;;;;
 
Awesome, thanks for the video; that helps a lot!
For now; you can leave your mods alone; don't remove SDV Expanded or anything else. We should verify SMAPI runs okay again.

This current issue of SMAPI being weird, and the MarlonFay error; that's all due to you accidentally launching the vanilla, unmodded game.
I could see that you're running "Stardew Valley", which is the original game binary. Note the space between the words.

You should be launching either the "StardewValley" script(no space), or the "StardewModdingAPI" binary directly.
When SMAPI installs; it overwrites the original SDV launch script; renaming it to "StardewValley-original". And, replaces it with one that launches the "StardewModdingAPI" binary on your behalf.

So, if you switch back to that; it'll bring up SMAPI again.

It won't crash on MarlonFay anymore; though it may bring us back to your original issue; of the save attempting to load forever before crashing.
So I'd definitely recommend again; trying to close out any other apps to optimize the resources on your computer when loading that Puqi save.
 

annahimesama

Greenhorn
Oh I'm so glad the video shed some light on this haha!

So to make sure I'm understanding this right, how exactly should I get back to launching either the "StardewValley" script (no space), or the "StardewModdingAPI" binary? Should I launch it from a specific file somewhere, to see if that helps SMAPI take over again? Nothing has changed in how I've been launching it (since downloading/removing those mods a few days ago). I always either launched from Steam or from the shortcut it made for me on my desktop (like how you saw in the vid).
 

annahimesama

Greenhorn
Such an exciting development!!

Screenshot 2023-03-01 at 10.23.57 PM.png


I couldn't leave it alone, so I went into the Properties->Local Files and found the "StardewModdingApi" executable(?), and lo and behold it opened up!!

Screenshot 2023-03-01 at 10.24.13 PM.png


I would still love to make sure I don't screw everything up again in the future, so if you have any insight into how I may avoid this I would love to know. Also, just confirmed that this hasn't fixed the launch procedure happening when I launch from Steam/my desktop -- that still launches the regular Stardew, not the ModdingAPI. Not the world's biggest deal, but wondering if there's something I should touch up with my SMAPI?

I really, really appreciate your help through all this -- losing one in-game week feels like nothing now in the grand scheme of things haha!!
 
Awesome, glad you got it to load!

In terms of your question about how to launch SMAPI as before. I'm still a little confused on how it broke in the first place; maybe Steam or something.
But, I believe your "StardewValley" SMAPI script got reset to vanilla. That script is what Steam executes to launch the game normally.

I've added a copy of the Linux/Mac launcher script. You can extract it, and paste it into your game folder; overwriting the previous file.
Then launch the game through Steam normally, or through your Steam shortcut; it should now run SMAPI again.

Note: This is just the renamed copy of the file inside the SMAPI installer.
Original Filename:
SMAPI 3.18.2 installer/internal/macOS/install.dat_FILES/unix-launcher.sh
 

Attachments

Top