retrixe/modpack

[Feature Request] Option to exclude certain mods from the installation

0xVR opened this issue · 2 comments

0xVR commented
[Feature Request] Option to exclude certain mods from the installation

Hmm, this will need some changes in how I was thinking of being able to update mods in place as well. Currently I was thinking of creating a modversion.txt in the mods folder that says the version of the mod pack installed, and an oldmods.txt file in the zip that would contain the list of mods that are now old. Unzip the mods on top, then move the mods listed in oldmods.txt to mods/oldmods. But this will break if people selectively install mods. I think we will need a mods.json instead of oldmods.txt to infer what mods the person has installed and only update those.

In the zip, or perhaps in the main mod folder, a mods.json like this:

{
  "mods": {
    "mod name": "new.jar"
  },
  "oldmods": {
    "old.jar": "mod name"
  }
}

Instead of overwriting all mods like what the idea was before, read all mods, see if any are old, then update them to new mod.

As for this feature in general, it's more low priority but will be plumbing the support for this to add it in future.

Support for this has been plumbed, now I only need to actually implement this in the GUI.