X2CommunityCore / xcom2-launcher

The Alternative Mod Launcher (AML) is a replacement for the default game launchers from XCOM 2 and XCOM Chimera Squad.
GNU General Public License v3.0
348 stars 51 forks source link

After moving X-COM 2 to another disk via Steam Library, all entries have been duplicated #184

Open YauheniL opened 4 years ago

YauheniL commented 4 years ago

Steps To Reproduce:

  1. Install X-Com2 WOTC and Xcom2-launcher
  2. Specify mod folder in Xcom2-launcher
  3. Move X-Com2 WOTC to another disk
  4. Update mod folder in Xcom2-launcher (new mod folder is located on another disk, since it was moved with X-Com2 WOTC by Steam)
  5. An issue occurs. Please find attache screenshot "duplicated mod entries.jpg"

duplicated mod entries AML_log and settings_json.zip

RevZero commented 4 years ago

This is behavior is pretty much by design. All "old" mods have been properly marked as "not loaded". It indicates that those mods are no longer available. You could just sort the list by "State" column, select all "not loaded" mods and remove them. Starting with v1.4, there is also a way to quickly filter mods by state and it is better visualized. Maybe we could suppress the "Duplicate" warning in this scenario, because a "Not loaded" counterpart normally wouldn't cause a problem.

Xymanek commented 4 years ago

We should consider some sort of support for moving game between drives in AML, so that tags, configs, categories, etc are preserved. I've done so myself and the only way so far is manually editing settings.json with mass replace, and that's very error-prone

YauheniL commented 4 years ago

Could you advise how can I remove duplicate records? If I try to uncheck a record, the record with same ID is unchecked too. My steam workshop contains unstable mods, which are disabled on mod-launcher level, and I don't want to activate unstable mods.

RevZero commented 4 years ago

@YauheniL

  1. sort the list by "State" column (by clicking on it)
  2. select all mods with state "not loaded" (by clicking the group header OR by holding SHIFT+left mouse)
  3. use the context menu (right click) and select "Delete"