Lemmings Forums

NeoLemmix => Community Edition => Closed => Topic started by: WillLem on March 09, 2025, 11:53:19 PM

Title: [✓][BUG][PL] Data loss when running multiple instances
Post by: WillLem on March 09, 2025, 11:53:19 PM
Steps to reproduce:

1) Open 2 instances of NeoLemmix CE
2) We'll call them instance A and instance B, where instance A is the first one opened
3) In instance B, complete a level that hasn't already been completed (choose an easy one!), and change one of the settings in the F2 menu
4) Check that the level is shown as completed in instance B, and that the setting has been saved (closing and opening the F2 menu will be enough to verify this)
5) Close instance B
6) In instance A, the level you completed in instance B will show as not completed, and the setting will be as it was originally (i.e. before it was changed in instance B)
7) Close instance A
8) Open a new instance of NeoLemmix CE

Expectation: the level that you completed in step 3 should show as completed, and the setting should be whatever you changed it to in step 3.

Actual behaviour: the level is shown as not completed, and the setting is as it was originally before it was changed.



This bug is fixed in:

NeoLemmix CE commit 78026b2
SuperLemmix commit 6cfa4b8

A warning is shown when closing the first open instance (instance A in the example above); the user has the option to click "OK" to save the updated settings & userdata, and "Cancel" to revert.

We could also simply load the latest settings silently if people think that would be better? Is there ever a reason to click "Cancel"?
Title: Re: [✓][BUG][PL] Data loss when running multiple instances
Post by: WillLem on March 11, 2025, 05:19:13 AM
Quote from: WillLem on March 09, 2025, 11:53:19 PMWe could also simply load the latest settings silently if people think that would be better? Is there ever a reason to click "Cancel"?

Quote from: namida, from Discord Yesterday at 12:06 AMyeah, i don't think a popup is needed
reloading silently sounds good

Let's skip the popup then and just load the latest settings/userdata silently.

NL CE commit 37247ac
SLX commit 50e7409


Closing this one as solved.