loot/libloot

Regex "after" rule not applying with regex-matched plugins

WilliamImm opened this issue · 1 comments

Reported as loot/loot#1130, originally diagnosed by @CptMcSplody & me.

LOOT does not seem to properly apply regex "load after" rules with plugins that are regex matched. This is shown when attempting to sort Scarcity together with Wrye Bash's Bashed Patch. The proper order is for the Bashed Patch to load after Scarcity, as shown in this snippet:

  - name: 'Bashed Patch.*\.esp'
    group: *dynamicPatchGroup
    after:
      - 'Scarcity - .*\.esp'
      - 'TES5Merged.esp'

Expected Result

Scarcity's plugins load after Bashed Patch, after LOOT is finished running.

Actual Result

Scarcity's plugins do not move after LOOT is run, remaining after the Bashed Patch if they were initially sorted that way.

Version Used:

libloot v0.14.8 (via LOOT v0.14.5)

after entries must be exact filenames, as documented, so that Scarcity - .*\.esp needs to be replaced with an actual filename.

Closing this as LOOT is working as intended.