Barotrauma
Barotrauma copied to clipboard
Enabled mods get disabled when they are updated.
Disclaimers
- [X] I have searched the issue tracker to check if the issue has already been reported.
- [X] My issue happened while using mods.
What happened?
When you update mods that are enabled via the settings menu, they get disabled for some reason. This is quite annoying.
Reproduction steps
- Have an enabled mod that needs updating.
- Update via settings menu.
- Mod will be disabled automatically.
Bug prevalence
Happens every time I play
Version
0.17.15.0
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response
Fixed in https://github.com/Regalis11/Barotrauma-development/commit/0f071e7bd2820e01f3fbd0af108e7029603c07ae
I was able to get mods to disable if I used the update button which updates all the mods, using the update button that is shown on the mod itself on the list keeps the mod enabled after the update.
Should be fixed in https://github.com/Regalis11/Barotrauma-development/commit/116d96e225a742c78a4d3a41f67361e655450f38
I also noticed another issue with the previous changes: the mod got moved to the end of the list when updated. That should now be fixed too.
Tested, working correctly. Closing.
In testing issue #5717 on version 0.18.12.0 I have found this behavior still appears to exist. Updating all mods caused one of three to disappear from both lists that was active and perhaps have no files in the installed AppData directory for the disabled/disappearing mods, additionally updating one at a time worked fine unless you press the "Accept" button in the specific mod preview when clicking on the update button for it (Without backing out before or after it completes updating). The giant accept/cancel buttons are far more easy to click than the little back arrow at the top left.
When a mod disappears from both lists, refreshing the mod list or reopening it will not bring it back, only a game restart will. It is likely I caused a mod to disappear on update by clicking update individually -> updating it, and then "Accepting" the page.
Not clicking accept and clicking the smaller back out button at the top left updates the mod correctly, those buttons should likely be hidden when previewing an updated mod.
Note: this was replicated by modifying the installed (In Appdata) mods filelist installtime's and mod versions.
I'm afraid I couldn't reproduce this. If you can repro this consistently, could you please provide exact step-by-step instructions on how to do that? What do you mean by the "Accept" button (do you mean "Apply?").
Nvm, found one way to get it to happen now:
- Move an outdated mod to the enabled mods list, but don't apply the changes yet
- Go to the mod's details
- Update the mod
- Apply the changes in this view, without going back to the mod list
Addressed in https://github.com/Regalis11/Barotrauma-development/commit/7d9f422ed556afe7270438cd0a1e72ec46e103fc by disabling the "apply" button everywhere else except the mod list view.
Tested against dev commit https://github.com/Regalis11/Barotrauma-development/commit/17a4e29619e49adc0a329be654296cf8f8ddc5d6
noticed you can still update a mod and then have it disable if you do the steps below:
- Move an outdated mod to the enabled mods list, but don't hit apply
- Click the individual mod update button (Which opens its details).
- Update the mod individually
- Find the apply changes lights back up once it is finished
- ~~Hit apply~~ - Edit, the mod will change from enabled to disabled regardless of hitting apply or not, but the button probably shouldn't become enabled before backing out of the mod details
- Back out and find the mod has changed back to the disabled list.
Edit: Noting the above is actually possible without hitting explicitly apply
Yet another shot at this https://github.com/Regalis11/Barotrauma-development/commit/da30c3e9725c45e20b8c3ac945cdb358ffe500e6
Tested using the above repro steps, works correctly now. Closing.