Repository navigation
sf-load-order 0.3.4
What's new
A fix-up release for 0.3.3. No option was removed or renamed, the exit codes are the same, and no report.json key was removed or renamed. report.json gains one key: hoisted_by in the data of a "loads before its master" problem (the master plugin that makes the game load the plugin early).
- A master plugin that another master plugin needs is no longer reported when it is listed below it. The game loads it just before the first master plugin in the list that needs it (the rule LOOT and Vortex use), so a list such as
ExampleQuestsPatch.esm,ExampleQuests.esm, with the patch needingExampleQuests.esm, is fine in game. 0.3.3 called it a problem with a move that changed nothing. - Every "loads before its master" fix is checked before it is given. The tool tries the move it suggests against the game's rules. When moving the plugin down doesn't help, it suggests moving the master up above the master plugin that makes the game load the plugin early, or, when the master is itself loaded early for another master plugin, moving that master plugin up. When no order helps (a plain plugin that a master plugin needs, whose own master is a plain plugin no master plugin needs), the problem says so and names the master plugin to disable or the author to ask.
- The archives section picks each file's winner in the order the game loads the plugins. A plain plugin listed above a master plugin loads after it, so its archived files win. 0.3.3 used the list's order there and could name the wrong winner. When the loser loads with the master plugins and the winner doesn't, the fix says the list's order can't change it.
- Clearer reasons. A plain plugin that the game loads with the master plugins is no longer called "a master plugin" in
sort,rules explainand the recommended order; the reason names the master plugin that needs it. A recommended move for a master the game already loads first gives the "lists it where the game loads it" reason instead of "it must load after its master". --depth heavyshows its progress. The cleaning check runs sf-mod-check once per plugin and can take many minutes. It now prints one line per plugin on stderr ([records] sf-mod-check check 3/40: ExampleQuests.esm), so a long run doesn't look hung. Stdout still holds only the RESULT line, and--quietturns the lines off.- Clearer cautions. The caution about record data made for another load order tells you to leave out
--conflictsonly when you gave that file; after a run where sf-mod-check ran in this run, it says what to do instead. The caution about plugins sf-mod-check loaded from an MO2 profile names only the ones the game drops. The skip text for an sf-mod-check older than 0.16.0 under MO2 now also offers--conflicts. - report.html lists the game's load order. The folded list "The order the game loads" now shows the order the game really uses (master plugins first), not the order of your list.
--logrefuses the wrong file. A--logpath that is an input file named on the command line, a load order file name (Plugins.txt,loadorder.txt,modlist.txtor a Vortex export), a plugin or archive name, a stream name or a link now stops with exit 2 and a message that names--log, instead of writing over the file.- Master names in a plugin's header are escaped when printed, so a damaged or hostile header can't put control characters, line breaks or text-reversing (bidi) characters in the report or terminal. Joiners, soft hyphens and direction marks, which real names use, are kept, so such a master still matches its plugin.
- The Vortex route in the README starts with the Plugins.txt that Vortex writes when it deploys. The Modlist Backup extension stays the option for
--vortex-loadorderand--vortex-profile. The old text told you to click an Export button on Vortex's Load Order page, which could not be confirmed, so the claim is gone from the README, AGENTS.md,--helpand the error messages. - A "Known limits" section in the README lists what is known and left as it is.
- Five shared test sets now run in the tests (output paths, damaged input files, damaged plugins, terminal text, paths and programs). The cases that are left as known limits are in
tests/shared/ADOPTION.json.
Example
The sort run of the README on its made-up load order. ExampleQuestsPatch.esm is listed above its master ExampleQuests.esm; 0.3.3 counted that as a problem, but the game loads ExampleQuests.esm first, so the run now has no problem. The sort still lists the master first.
> .\sf-load-order.cmd sort --plugins-txt Plugins.txt --data Data --depth light --no-state --no-loot --rules my-rules.json
sf-load-order 0.3.4 by Richard Bejtlich - GPL-3.0 - https://github.com/taosecurity/sf-load-order
RESULT: 0 problem(s), 1 caution(s), 1 note(s) (report: out\report.txt)
The "Sorted order" part of the report:
Sorting moves 2 plugins; the order wasn't rated (no record-conflict data).
Moves (2):
1. Load ExampleArmor.esm after ExampleLights.esm. Why: Your rule (my-rules.json, entry 1) says
ExampleArmorRetexture.esm loads after ExampleArmor.esm.
2. Load ExampleQuests.esm after ExampleArmorRetexture.esm. Why: ExampleQuestsPatch.esm has ExampleQuests.esm as a
master.
Rules not met (1):
1. Your rule (my-rules.json, entry 2) says ExampleQuests.esm loads after ExampleQuestsPatch.esm, but
ExampleQuestsPatch.esm has ExampleQuests.esm as a master. The rule wasn't used.
Check each download against its .sha256 file.