loot / libloot

A C++ library for accessing LOOT's metadata and sorting functionality.
GNU General Public License v3.0
32 stars 12 forks source link

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

Closed WilliamImm closed 5 years ago

WilliamImm commented 5 years ago

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)

Ortham commented 5 years ago

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.