bcssov / IronyModManager

Mod Manager for Paradox Games. Official Discord: https://discord.gg/t9JmY8KFrV
https://bcssov.github.io/IronyModManager/
MIT License
356 stars 41 forks source link

Irony Cannot Detect Mods After Moving Workshop Folder #419

Closed DovahFett closed 1 year ago

DovahFett commented 1 year ago

Describe the bug After moving my Hearts of Iron IV installation to a new drive, including all of its Steam Workshop mods, Irony Mod Manager no longer detects the mods located on the new drive, even if the directory address is defined in the Custom Mod Directory option in the mod manager. I have checked, and the mods are actually there, but it appears that Irony can't recognize them.

To Reproduce Steps to reproduce the behavior:

  1. Open Steam.
  2. Open the Settings window and navigate to the Downloads tab.
  3. Click the button labeled Steam Library Folders and move Hearts of Iron IV to a different drive.
  4. Open Irony Mod Manager and note the popup window notifying the user that their mods are now missing.

Expected behavior The mod manager would recognize that the game and its mod had moved, and ask for their new locations, or at least be able to do so after being told where those new locations were via the directory configuration options within the mod manager.

Screenshots Steam Storage Manager Storage Manager Missing Mods Error Missing Mods Directory Settings Configuration Options

Logs None

Version:

Additional context Irony is no longer located on the same drive as Hearts of Iron IV. I do not know if this issue is purely a product of the game being on a completely different drive, or just an issue with it being in a different directory. Ultimately, this issue might be more a feature request than a bug report.

bcssov commented 1 year ago

I suspect maybe steam needs to redownload all those mods. Irony autodetects workshop folders (plural). So meaning if you move it upon Irony restart it will be aware of all workshop folders by parsing steam files. The fact that custom mod directory does not detect anything is also proof of it (also will generate duplicate mod detections so remove that setting).

EDIT: Or all could be well (difficult to see from the screenshots) as Irony is indeed telling you that existing mod configuration is pointing towards the invalid paths (game thing) and all descriptors need regeneration.

DovahFett commented 1 year ago

So what do you think my best course of action is? Unsubscribing from the mods and then resubscribing? Deleting the mods manually, then resubscribing? Just deleting the descriptor files? I'd rather not redownload 60 GB of mods if I can help it, but if that's what needs to be done, then so be it.

If there's any more information (i.e. screenshots) that I can provide that may help, please let me know.

bcssov commented 1 year ago

What I'm about to suggest is potentially destructive operation therefore:

  1. Backup Irony's database.json (database_1.24.json) or the whole Irony appdata folder.
  2. Backup the game mod directory (due to descriptor.mods)
  3. Launch Irony and do Delete all and reload and see the results

If you lost some mods from the collections restore (database.json). If nothing worked report back here and restore backups.

DovahFett commented 1 year ago

The "Delete All And Reload" command seems to have solved the issue. I no longer get the missing mod error when starting Irony. I had the same issue with my Stellaris mods (which I also moved to a different drive), and the "Delete All And Reload" command appears to have worked on that game as well. None of my mods seem to have been lost after running the command.

Thank you for your assistance.

bcssov commented 1 year ago

Usually Delete and reload is not a destructive operation (provided everything is setup properly -- no mods missing and such). You would have to perform a similar operation with pdx launcher to refresh descriptors since all of them were pointing towards the old location.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.