Closed FORMless000 closed 5 months ago
Thanks for pointing out! So it only happens when three (or more) mods conflict with each other, right? I'll take a deeper look at it, as soon as I got the time to do so.
I'm looking over it, but I'm not sure if I'm competent enough to make an actual contribution to the code. Glad that I can get in touch!
Describe the bug When I tried to migrate the Vortex collection Gate to Sovngarde to MO2, this happened:
The mod "ELFX Shadows - Official Patches Hub - USSEP patch" should load after "ELFX Shadows Patches Hub" according to the Vortex rules, but it's not properly addressed in the generated MO2 load order.
I noticed this when I was trying to improve the loadorder generation from conflict rules to address for each mod's category. (Right now still struggling through everything) There are exactly 11 improperly addressed conflicts when I was migrating GTS. The script in the following can help to verify this:
Problem lies in the mod sorting, at ln 610 of src/manager/vortex.py:
My guess of what it does is simply iterating through every mod A once, and move it to smaller indices when some mod B that's supposed to be overwriting mod A is loaded before mod A. The move makes sure that mod A will be before mod B (and every mod that should be overwriting mod A).
I'm thinking it may break some other mod C that was and should be loaded before mod A, and is now loading after mod A after moving mod A. That might cause the improperly handled conflicts like the screenshots I listed above.