Cyberpunk-utility icon indicating copy to clipboard operation
Cyberpunk-utility copied to clipboard

Add option to click on a conflict to swap load order

Open MarkKoz opened this issue 1 year ago • 2 comments

Currently, here are the steps to resolve a conflict:

  1. Find a conflict in the conflicts list
  2. Find the name of the archive in the load order list on the left (there is no filter, so this is tedious with a long list)
  3. Drag it above the archive it conflicts with (which also has to manually be found in the list)

It'd be easier to instead click on a conflict to automatically place it above the other archive.

MarkKoz avatar Nov 17 '24 05:11 MarkKoz

There is a problem with this naive approach. Let's say we have three archives:

  1. a
  2. b
  3. c

I first fix a conflict between b and c, which places c before b. The order is now:

  1. a
  2. c
  3. b

Then, I fix a conflict between b and a, which places b before a. The order is now:

  1. b
  2. a
  3. c

This is wrong because I want c to be before b.

To avoid this, I think we'd need a system more akin to the LOOT tool for Bethesda games. It allows a user to establish a dependency graph between plugins, and then it sorts plugins according to that graph.

MarkKoz avatar Nov 17 '24 05:11 MarkKoz

Hej, I actually have a small app that can topologically sort archives according to rules (like LOOT) here: https://github.com/rfuzzo/plox

I originally made it for Morrowind, but I added CP77 support as well.

I would need to polish it a bit, and we don't have any rules yet, but it would work.

rfuzzo avatar Nov 24 '24 16:11 rfuzzo