FSG_Mod_Assistant icon indicating copy to clipboard operation
FSG_Mod_Assistant copied to clipboard

[BUG] Crash for "Manage local game saves" option

Open KITT3000 opened this issue 1 year ago • 15 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

Program crashes when I try to use "Manage local game saves"

Expected Behavior

Something should appear, but certainly not an error message.

Steps To Reproduce

  1. Click the option "Manage local game records".
  2. Immediately an error message appears and the program shuts down.

Environment

- Mod Assistant Version: 4.0.0 (but I had it on earlier ones too, certainly on 3.5.2 too)
- OS: Win10 and 11
- Virtualized: No

Anything else?

crash.log

I don't know if this is related but the link in the documentation to this option returns "404" xD

KITT3000 avatar Apr 06 '24 22:04 KITT3000

Huh. ok, i see where that is happening, but not why. any chance you wanna do me a huge favor and send me over an archive of your savegames? maybe include the backup folder?

jtsage avatar Apr 06 '24 22:04 jtsage

https://mega.nz/file/pKtACQiL#QfEAwRLTOKtZqHtkhXNLQbGfpMpV8CMKVkDYzoA9D_g

KITT3000 avatar Apr 06 '24 22:04 KITT3000

thanks. fwiw, it's save number 8. but of course it should fail more gracefully than that.

jtsage avatar Apr 06 '24 22:04 jtsage

AH sorry to potentially reopen this but I had the same issue but it seems it was because of a nonstandard folder in my SaveGameBackup folder (I had a Manual Save Backup) folder there. I just moved it out and now it works. You might want to put that warning in the docs real quick. Great software by the way!

SimPaulJack avatar May 06 '24 20:05 SimPaulJack

all good - how was that folder structured? I'd prefer to set up MA so it just ignored stuff it can't handle like that

jtsage avatar May 06 '24 20:05 jtsage

For me it was just the standard "SaveGameBackup" folder and then I had another "Manual Save Backup" folder under it where I put other subfolders in that one for the various series I'm making (YT) before starting just in case I run across a FS22 "feature"(not a bug) during play haha.


For example:
.\SaveGameBackup\
  ManualSaveBackup\
    Series1\
      EpXX\
        savvegame#

Of course to solve it I just moved it to the root of the FS22 profile folder so it just ignores it now.

(there we go, got the comment formatted right)

SimPaulJack avatar May 06 '24 20:05 SimPaulJack

cool. thanks. I'll do some more checking to make sure it won't error out when it hits unexpected things :)

jtsage avatar May 06 '24 20:05 jtsage

Just FYI. I too had a crash with this feature..

Caught rejection: TypeError: Cannot set properties of undefined (setting 'active')

Origin: [object Promise]

TypeError: Cannot set properties of undefined (setting 'active') at C:\Users\Mark\AppData\Local\Programs\fsg-mod-assistant\resources\app.asar\lib\modCheckLib.js:1690:36 at async saveGameManager.getInfo (C:\Users\Mark\AppData\Local\Programs\fsg-mod-assistant\resources\app.asar\lib\modCheckLib.js:1634:3)rejection Timestamp : 2024-05-13T13:05:55.833Z

As with SimPaulJack this was caused by a non standard folder "savegame2.calmsden.old" (a backup from ages ago). Deleted that and all well.

onehandclapping avatar May 13 '24 13:05 onehandclapping

will be fixed in 4.0.2, later today most likely

jtsage avatar May 17 '24 14:05 jtsage

will be fixed in 4.0.2, later today most likely

I'm using 4.06 and have same issue:

rejection Timestamp : 2024-06-27T23:08:50.778Z

Caught rejection: TypeError: Cannot set properties of undefined (setting 'active')

Origin: [object Promise]

TypeError: Cannot set properties of undefined (setting 'active') at C:\Users\Toby\AppData\Local\Programs\fsg-mod-assistant\resources\app.asar\lib\modCheckLib.js:1690:36 at async saveGameManager.getInfo (C:\Users\Toby\AppData\Local\Programs\fsg-mod-assistant\resources\app.asar\lib\modCheckLib.js:1634:3)rejection Timestamp : 2024-06-27T23:09:22.427Z

Caught rejection: TypeError: Cannot set properties of undefined (setting 'active')

Origin: [object Promise]

TypeError: Cannot set properties of undefined (setting 'active') at C:\Users\Toby\AppData\Local\Programs\fsg-mod-assistant\resources\app.asar\lib\modCheckLib.js:1690:36 at async saveGameManager.getInfo (C:\Users\Toby\AppData\Local\Programs\fsg-mod-assistant\resources\app.asar\lib\modCheckLib.js:1634:3)

GrimGadget avatar Jun 27 '24 23:06 GrimGadget

Gross. I'll take a look at this later tonight or sometime this weekend

jtsage avatar Jun 27 '24 23:06 jtsage

I just took another look at mine, though. I had two folders named savegame1 - Backup A and savegame1 - Backup B where I created manual backups of my main game after what I considered to be key events.

I deleted those two folders and the problem has gone away.

You still might want to put in a safety net of some sort, though.

GrimGadget avatar Jun 28 '24 01:06 GrimGadget

Just curious - like, those folders were a copy of an existing backup folder? or one of the individual saves copied over? (I do like to explicitly recreate so I can find exactly where my logic bug is)

jtsage avatar Jun 28 '24 02:06 jtsage

Just curious - like, those folders were a copy of an existing backup folder? or one of the individual saves copied over? (I do like to explicitly recreate so I can find exactly where my logic bug is)

I copied the save to a new folder, then renamed it from savegame1 - (Copy) to savegame1 - Backup A

At the time I was receiving this error, I had actually erased all the content from these backup folders because I had decided to abandon the savegame and start over with a different map.

GrimGadget avatar Jun 28 '24 17:06 GrimGadget

ah, so they were empty folders at the time - thank you - that gives me several varieties to test so I can kill this bug off for good. Appreciate the feedback!

jtsage avatar Jun 28 '24 17:06 jtsage

this is fixed in the testing version

jtsage avatar Aug 18 '24 16:08 jtsage