Lemmings Forums

NeoLemmix => Bugs & Suggestions => Closed => Topic started by: Simon on June 15, 2017, 04:14:49 AM

Title: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: Simon on June 15, 2017, 04:14:49 AM
NeoLemmix_11-14-19_1cf3523 extracted into fresh dir, run in Wine.

I get Msgboxes with "An error occurred while trying to save data." frequently during seemingly standard operation on this new NL set-up. Dismissing the msgboxes continues the expected program flow. No crashes. These msgboxes spawn e.g.:
The second issue is that this error is not informative. What failed? Dir not exist? Maybe only hits on Linux? This uninformative error wording is the bigger issue -- with clear error, I might work around the original issue and continue testing. Now instead, I abort testing after 5 minutes because too painful. <_<

The log file has a datetime of the session, but no errors.

-- Simon
Title: Re: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: namida on June 15, 2017, 05:05:40 AM
Cause of BASS.DLL issue: I forgot to include BASS.DLL when I uploaded the latest version. Will fix soon. To save you redownloading, you can simply obtain a copy from Un4seen Developments (https://www.un4seen.com/bass.html); download link is near the top, and is somewhat easy to miss.

Running in WINE message is expected if you're running in WINE. This is because NeoLemmix's fullscreen mode has issues on some Linux desktops, in particular Unity.

Not sure what's happening with the level failing to load. Data is saved on any screen transition (should probably change this to a more intelligent system); the error message simply states that some kind of exception occurred during the transition. Will need to fire up the VM at some point to investigate this, as no such issue seems to occur when run natively on Windows. Can you check whether a "save" folder has been created in NeoLemmix's folder, and if so, whether there's anything in it? (There should be, if all works well, "config.ini", "hotkeys.ini" and "userdata.nxsv".)
Title: Re: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: Simon on June 16, 2017, 12:58:01 AM
Downloaded most recent, ran NL to get a couple save errors, then I exited NL. Game didn't generate directory "save".

I created the "save" directory myself, and the game is very happy, it created hotkeys.ini, settings.ini, and userdata.nxsv inside. Settings persist as expected between settings. Thanks!

Speculation: Your makedir call breaks in Wine, no idea why, and everybody else uses Windows.

-- Simon
Title: Re: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: namida on June 17, 2017, 11:53:03 AM
Actual cause: There was a recent change to what gets saved, which occurs before the folder creation check does. This is now fixed for next update.
Title: Re: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: mobius on June 18, 2017, 12:41:36 AM
was this fixed update released yet?

I ask because I just downloaded the latest player update and I get this error before the program even opens and it fails to start (then another access violation error message).

I tried Simon's workaround but this doesn't seem to work for me.

[I'm on Windows 10 right now, btw. But I won't be for long]
Title: Re: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: namida on June 18, 2017, 06:50:44 AM
mobius: Did you use the upgrade or fresh install? If it was the upgrade, can you try the fresh install (preferably to a new, empty folder; but don't forget to create the "save" folder in it due to this bug) and see if it works?
Title: Re: Frequent "An error occurred while trying to save data" [bug] [player]
Post by: mobius on June 18, 2017, 01:17:28 PM
I had used the upgrade.

I tried the fresh install now and that worked [still needing to manually create a "save" folder] :)