If the "Documents/Klei/OxygenNotIncluded/mods" directory has unusual permissions, or is locked externally by common client software like OneDrive, mods that fail to install can easily get stuck in a restart loop.
The culprit is this code in Mod.cs:
If the DeleteDirectory or CreateDirectory calls fail, the code silently swallows the exception and leaves the mod stuck in "Reinstall Pending" state, which causes the game to continually prompt for restarts. As this code installs mods before any other mods load, the victimized mod can do nothing to fix the issue, nor is it possible to work around in a mod like Mod Updater. Please consider adding proper handling for failures in this area (including in file_source.CopyTo), possibly including a popup with a link to the problems caused by OneDrive Documents Folder Sync and Protected Folder Access (the most common culprits).
Note that the attached log does not reproduce this issue as I do not have OneDrive enabled and cannot reproduce the bug locally.
- Install game on a device with OneDrive Documents Sync enabled
- Install a large number of mods
- Restart the game
- The game is likely to be stuck in a restart loop with some or all mods constantly sitting on "Reinstall Pending"
-
4
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now