Skip to content

Releases

sf-mod-check 0.30.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 14:45

Changes you may notice

  • patch --name refuses another mod's name. When the load order already holds a plugin with the --name you gave, patch used to leave that plugin out of the conflicts it fixes and write the patch under its name in --out, with only a note on stderr. Now it does that only for an older patch: a plugin whose author field is sf-mod-check patch, which every patch has. Any other mod of that name stops the run with exit 2 and RESULT: CANNOT BUILD (--name <name> is another mod in the load order), and nothing is written. Pick another --name. This also applies to the default name ConflictPatch.esm when you give no --name; the RESULT line then reads (the patch's default name ConflictPatch.esm is another mod in the load order). When that plugin's header can't be read (another program has it open, or the file is damaged), the run stops with exit 2 and says the file can't be read, and nothing is written.
  • find --where "<field> != <value>" no longer lists records that lack the field. A record whose kind has no such field now never matches, with any operator, as the README says. In 0.29.0, != listed it. This matters for OMOD's ObjectModificationTargetName, which only some kinds of object mod have: --type OMOD --where "ObjectModificationTargetName != X" used to list every armor and weapon mod too.

What's new

  • find --stages lists a quest's stages, log entries and objectives. On a quest (QUST), in a load order or with --plugin, it prints every stage of the winning copy with its flags and log entries (text, note and conditions), then every objective with its flags, display text and targets. For each log entry with a stage fragment, it reads the compiled script and says which stages the fragment sets and which objectives it shows, completes or fails. Each objective lists the stages that change it. Scripts are looked for as loose files first, then in the load order's archives, last-loaded first (the game's order when StarfieldCustom.ini sets bInvalidateOlderFiles=1). A call whose quest or number is only known while the game runs (a value picked on one branch of an if, or a number held in a property, for example) is listed as one sf-mod-check can't read, and a missing script is said plainly. Other objective calls (CompleteAllObjectives, FailAllObjectives, SetObjectiveSkipped and the like) are shown as written, for example calls CompleteAllObjectives(). With --plugin <archive>, the scripts the archive holds loose (.pex) are read too: a mod archive given to find, overrides, summary, cell or text now also has its loose compiled scripts unpacked. With --json, each match gains a stages key. Any other record type is refused with exit 2. README "A quest's stages and objectives" and AGENTS.md task 18 say what it reads and what it can't.
  • find --full points to the whole record. When the text tree stops at 2,000 lines, the last line now says to use --json --full for the whole record (up to 20,000 values), or --stages when the record is a quest.

Fixes

  • find --where accepts every field find prints for the type. An OMOD's DataName, MaxRank and LevelTierScaledOffset were refused as unknown, though find prints them. A record that lacks the field doesn't match (see "Changes you may notice" for !=).
  • No false ONAM ERROR with light or medium masters. gap, release's mutagen-gap rule, --gap-check and edit's gap check compared a reference's FormID with the whole master list, so a plugin with light or medium masters had its own temporary references counted as a master's, and got an ONAM ERROR that counted them. Only full masters are counted now.

Example

Made-up plugins: SqBase.esm adds the quest SQ_FragQuest, whose stage fragments are in the made-up script SQ:QF_FragQuest (a loose .pex). SQ:QF_Missing isn't there:

sf-mod-check find SQ_FragQuest --stages --quiet
SQ_FragQuest [000802:SqBase.esm] QUST
  defined in: SqBase.esm
  winner: SqBase.esm
  stages: 3 (from the winning copy in SqBase.esm)
    stage 10
      log entry 0: "Made-up stage 10."
        fragment SQ:QF_FragQuest.Fragment_Stage_0010_Item_00: sets stage 20; shows objective 10
    stage 20
      log entry 0: "Made-up stage 20."
        fragment SQ:QF_FragQuest.Fragment_Stage_0020_Item_00: sets stage 20 of SQ_Quest [000801:SqBase.esm]; completes objective 10
          a call sf-mod-check can't read the value of: SetStage(StageProp) on self (the stage number is worked out while the game runs)
          a call sf-mod-check can't read the value of: SetStage(::temp2) on self (the stage number is worked out while the game runs)
          a call sf-mod-check can't read the value of: SetObjectiveFailed(10, True) on ::temp0 (the quest it runs on can't be told)
      fragment SQ:QF_FragQuest.Fragment_Stage_0020_Item_03 (for log entry 3, which stage 20 doesn't have): can't be read: the script SQ:QF_FragQuest has no function Fragment_Stage_0020_Item_03
    stage 30
      log entry 0: "Made-up stage 30."
        fragment SQ:QF_Missing.Fragment_Stage_0030_Item_00: can't be read: the script SQ:QF_Missing was not found
  objectives: 1
    objective 10: "Made-up fragment objective."
      changed by stage 10 (log entry 0): shows it
      changed by stage 20 (log entry 0): completes it
RESULT: FOUND 1 record (1 s)

Check each download against its .sha256 file.

sf-mod-check 0.29.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 01:16

Changes you may notice

  • patch check exits 2 when it checked nothing. When the patch isn't in the load order (RESULT: NOT CHECKED), it used to exit 0, the same as "up to date". It now exits 2, the code for "could not check". A script that relied on the old 0 will see a change: test for exit 0 (up to date) or 1 (rebuild or review) and treat 2 as "not checked". README, AGENTS.md and --help say so. sf-load-order 0.4.0 and earlier report a turned-off merged patch as "couldn't check" when run with this version; its next release reads exit 2 with a patch-off finding as "not enabled".
  • A FormID past the master list is one WARNING per plugin, not an ERROR per record. A record whose FormID points at a master the plugin doesn't list is read as the plugin's own, as xEdit and Mutagen read it. check says plainly that the game's handling is not proven. check can therefore exit 0 on such a plugin. summary counts the records as new, and summary --json has a new pastMasterList key.

What's new

  • Plugins with layouts the Creation Kit never writes are read, with a warning. A stored-traversals component with no STRD data, and interior cells straight in the CELL group (not in a block group), made Mutagen stop, so check, summary and triage ended with CANNOT CHECK. They now read a repaired copy in memory and print one WARNING (or LOOK) line for each kind. Nothing on disk changes. summary --json has a new readWarnings key.
  • edit --out warns when the new name loses files. A localized plugin's string tables and the <name> - *.ba2 archives beside it are found by the plugin's name. edit --out with a new name gives a WARNING when either exists. edit --json has a new warnings key, and the RESULT KEPT line says "N warning(s) about the new name". The exit code is unchanged.
  • Archives with several plugins. find --plugin <archive> with no record and scenes --plugin <archive> now cover every plugin of the archive that loaded (they used the last one only). find --json's listing has a new plugins array. summary <archive> names a plugin it left out in a left out: line, in the RESULT line and in a new leftOut JSON key.
  • Condition functions 961 GetGamePlayOptionCurrentValue, 965 IsInVehicle and 966 AreVehiclesUnlocked are known to check and triage, so a condition that uses them no longer gets the "isn't one sf-mod-check knows" warning.
  • release knows _ps archives. <plugin> - <part>_ps.ba2 is treated like the _xbox copy: the archive-name checks pass, and the creations-xbox note says "PlayStation archive present" and asks for no twin.
  • The shared PMT test sets (tests/shared) are now part of the repo and run with the tests.

Fixes

  • One --out, --json and --log guard everywhere. --log (every command) now has the guard: before, it refused only .esm, .esp, .esl and .ba2, so a mistyped --log could overwrite a .zip, .strings, .pex or .dll. The guard follows links to the real file and also refuses .exe, .ini, loose assets, a second name (hard link) for another file of the run, and an existing file whose first bytes are a plugin, archive, script, program or texture. --out equal to --log is refused in text, scenes and voice-lines. patch check --json also refuses the patch's patch-sources.json, the --manifest file, Plugins.txt and the --log file. A refusal's RESULT line now names the reason.
  • check names a master loop in one ERROR ("A.esm and B.esm list each other as masters (a master loop)").
  • Names print on one line. Triage LOOK lines, the check: header and patch check findings clean control characters out of names. gap, --gap-check and the release gap step do the same for a master name, and a master name that holds a path says "is a path, not a plugin name, so it was not looked up" instead of "not found".
  • A repeated --plugin says the command "takes one --plugin (one plugin or one mod archive)".
  • triage "Official changes undone" lays an official partial-form copy over the mod's base copy before comparing. A mod is no longer said to undo a repeated field the partial copy left alone.
  • The asset check counts a .nif's material path only when a shader property block uses it, so old paths left in the string table are not reported missing.
  • overrides help and README say the winner is "among the mods" (wording only).

Known limits

The README's "Known limits" section lists what was found and left alone, with the reason.

Example

A made-up patch ConflictPatch.esm that is in the build folder but not in Plugins.txt. patch check has nothing to check, and says so with exit 2 (it was 0 before 0.29.0):

sf-mod-check patch check sf-mod-check-patch\ConflictPatch.esm --plugins Plugins.txt
NOTE [patch-off] ConflictPatch.esm isn't in the load order (it isn't active in Plugins.txt), so nothing else was checked.
RESULT: NOT CHECKED (the patch isn't in the load order; nothing was checked)
(exit code 2)

Check each download against its .sha256 file.

sf-mod-check 0.28.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 15:59

Fixes

  • check and release no longer crash on a plugin that masters itself, or on two plugins that master each other. The master walk looped without end and ended in a stack overflow with no RESULT line. Each master is now read once, and the run ends with an ERROR and a FAILED RESULT line. A plugin that lists itself gets the existing "the plugin lists itself as a master" ERROR. For two plugins that master each other, the ERROR is the read error, which names one of the two as "its own master" (there is no separate loop message yet).
  • One --out guard. scenes --out, voice-lines --out and patch check --json now refuse a mod file's name (a plugin, archive, string file, script or DLL, also with the trailing dots or spaces Windows drops), a file stream and a folder, as text --out does (exit 2). Before, a typo such as --out MyMod.esm could overwrite the mod.
  • check: finding text is cleaned of control characters before it is printed (SafeText.OneLine), as in the other commands.
  • A repeated --plugin to a command that reads one plugin is exit 2 with a message, not a silent pick of one.
  • Console FormIDs accept an upper-case 0X prefix (0X0001295A), as 0x always did.

Example

A typo that points --out at a mod file now stops with exit 2 and leaves the file alone (a real run):

sf-mod-check scenes MyQuest --out MyMod.esm
--out writes a Markdown file, not a .esm file: give it a name such as scenes.md.
RESULT: CANNOT CHECK (--out names a mod file)

Check each download against its .sha256 file.

sf-mod-check 0.28.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 23:49

What's new

  • text <plugin | archive> lists every string a player can see that a plugin adds or changes: item, book, message and terminal text, quest names and objectives, dialogue, and every other text the game translates, each with its field path. A new record lists all its strings; an override lists only the strings it changes, each with the master's text as "was", and a string it clears or leaves out as "(no text)" (not in a partial form or a localized plugin). When the winning master version is a partial form, the fields it leaves out are read from the version under it, as the game does. List entries such as message buttons are matched by their text, so an entry an override adds or leaves out lists only that entry. A localized plugin's text is read from its string files, with a warning when they can't be found, and a warning naming each localized master whose string files are missing (its text as "was" can't be shown). --type, --json and --out (which refuses a mod file's name, also with the trailing dots or spaces Windows drops, and a file stream name).

Changes

  • edit --drop-master renumbers only real links. Before 0.28.0 it renumbered every 4-byte value that equaled one of the plugin's link values, in any field, so a number that only looked like a FormID (a value, a weight, a byte list) was changed too: the proof then refused the edit, or, in a field nothing reads, the number was changed silently. Now edit asks Mutagen which values it reads as links (a probe read of a copy in memory) and renumbers only those. A look-alike number that names no record is left as it is, and the report says "left N look-alike values alone"; one that names a real record is refused, as a FormID in a text field already was.
  • edit --out is proved under its own name. The gap and check proofs now run on the new file under the name it is kept as. edit refuses an --out named like one of the new file's masters, and an .esl --out for a plugin that isn't light (the game loads every .esl as light, so its own FormIDs would point at the wrong records; add --set-light for a full plugin, or keep the extension), and an .esm or .esp --out for an .esl without the light flag (which the game loads as light by its name alone).

Fixes

  • lines: the find hint keeps eid: for an EditorID that find would read as a console FormID, so lines eid:0000ABCD now hints sf-mod-check find eid:0000ABCD, not a FormID lookup.
  • scenes --hub takes eid:, editorid: and a quoted name as an EditorID, as find and lines do, and refuses an empty one.
  • scenes: the find hint for a record that is neither an NPC nor a quest no longer quotes a quoted EditorID twice (scenes '"ScHub"' hinted find ""ScHub"").

Example

A made-up mod Camp.esm with a message that tells the player the hall is closed:

sf-mod-check text Camp.esm --type MESG
sf-mod-check 0.28.0 text of Camp.esm and its 1 master

Camp.esm (2 strings in 1 record)
  MESG (1 record, 2 strings)
    MESG CampNotice [000801:Camp.esm] new
      Name: Camp Notice
      Description: The hall is closed until spring.
RESULT: text: 2 strings in 1 record (1 new, 0 changed) in Camp.esm

A made-up plugin Rations.esm whose edit --drop-master leaves a number that only looks like a FormID alone:

sf-mod-check edit Rations.esm --out Rations-fixed.esm --drop-master OldMaster.esm
edit drop-master: master OldMaster.esm removed; renumbered 2 record IDs, 0 group labels, 0 ONAM entries and 3 FormIDs in fields; left 1 look-alike value alone
RESULT: KEPT (3 proofs passed; Rations-fixed.esm; 8.4 s)

Check each download against its .sha256 file.

sf-mod-check 0.27.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 17:03

What's new

  • cell <cell> lists what is in a cell: every reference with its base, position, flags, enable parent and location reference types, which plugin added it and which changed it, references moved out or deleted by a later plugin, counts by base type and enable parent, and the persistent references a quest alias or a MoveTo can use. cell --ref <reference> lists the cell that holds a reference; cell --near <worldspace> <x> <y> <radius> lists the references near a point. --max N and --json.
  • find --type <SIG> --where "<field> <op> <value>" lists every record of a type whose winning copy matches simple field filters (=, !=, ~, has, exists; several --where must all match; dotted paths such as Factions.Faction). An unknown field is refused with that type's field list. find --editorid-match <regex> lists records by EditorID, with or without --type. With --plugin, only the records that plugin holds are listed.
  • ba2 find <pattern> lists which loaded archives and loose folders hold a file name or a glob, in game order, and marks the copy that wins. --archives <folder> also searches archives that aren't loaded. When a name is both loose and in a loaded archive and the INIs don't set bInvalidateOlderFiles=1 and sResourceDataDirsFinal= (the loose-file setup), a note says the game may use the archived copy. Each load-order problem is listed, since a plugin that didn't load has its archives left out.
  • find --where shows a flag field's unnamed bits in hex (for example Female, Unique, 0x2000010), so a flag the library has no name for is not lost.
  • Existing findings do not change.

Example

A made-up mod Camp.esm that adds the cell CampHall:

sf-mod-check cell CampHall
Cell CampHall [000801:Camp.esm] "Camp Hall" (interior)
...
Persistent anchors (1):
  CampAnchor [000806:Camp.esm] base CampMarker [000807:Camp.esm] (STAT) at (0.0, 0.0, 0.0)
RESULT: CampHall holds 3 references, 1 persistent (2 s)

sf-mod-check find --type NPC_ --where "Flags has Unique" --editorid-match "^Camp"
...
CampLeader [000810:Camp.esm] "Reva Holt" (NPC_, winner Camp.esm)
...
RESULT: FOUND 1 record (2 s)

sf-mod-check ba2 find "textures\camp\banner_d.dds"
textures\camp\banner_d.dds
  1. Starfield - Textures01.ba2 (...)
  2. Camp - Textures.ba2 (...)   <- wins
RESULT: 1 file matched in 2 of 31 archives and 0 loose folders

Check each download against its .sha256 file.

sf-mod-check 0.26.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 10:07

What's new

  • Archive input: --plugin and --extra-data take a .zip, .7z or .rar, for find, conflict, lines, scenes, overrides and summary, so a downloaded mod can be looked at without unpacking it by hand. The archive is unpacked into the run's own temp folder, which is deleted when the run ends, with the same guards as triage (no entry outside the folder, no name twice, no encrypted archive, a size cap). Only plugins and their strings (loose .strings files and the non-texture .ba2 files, so a localized plugin's names read right) are written, except for conflict, lines and scenes, which also need the archive's other files (textures, sounds, voice files, scripts). A plugin in an --extra-data archive that Plugins.txt doesn't list is read as the last plugin, with a note. patch and voice-lines refuse an archive and ask for the installed or unpacked folder (voice-lines: the unpacked plugin file). A plugin of a --plugin archive whose master isn't found (an optional patch for a mod you don't have) is left out with a note, and the rest run.
  • overrides lists the records that two or more non-official plugins hold, by record type, with the plugins in load order and the winner marked. Options: --type DIAL,INFO, --min N (default 2), --records <file> (who edits these FormKeys or FormIDs, official copies shown too), --max N and --json. --plugin may be given more than once (plugins or archives, for a set of mods that aren't installed); a later input wins a name clash, and an input whose master is missing is left out with a note (of an archive with several plugins, only that plugin, named in the left out: lines and in leftOut). Exit 0 records listed, 1 none, 2 couldn't run.
  • summary <plugin or archive> says what a plugin adds and changes: its masters, records per type (new, override, deleted), ITMs, the fields its overrides change with the old and new values, the cells it touches per worldspace and in the interiors, and its placed references by base type. An archive with several plugins gets one summary per plugin. --max N and --json. Exit 0 or 2.
  • The zip unpacker (also used by triage, release and diff) now refuses a password-protected entry by name, with a clear message.
  • Existing findings do not change.

Example

Three made-up mods as downloaded zips, each overriding records of the base game, with nothing installed:

sf-mod-check overrides --plugin A-1.0.zip --plugin B-1.0.zip --plugin C-1.0.zip
sf-mod-check 0.26.0 overrides: records held by 2 or more non-official plugins, in 4 plugins (3 --plugin inputs (A-1.0.zip, B-1.0.zip, C-1.0.zip) and their 1 master)
KYWD (2 records)
  000800:A.esm A_New: A.esm (adds), B.esm (wins)
  000800:Starfield.esm S_A: A.esm, B.esm, C.esm (wins)
MISC (1 record)
  000803:Starfield.esm S_Misc: A.esm, B.esm (wins)
RESULT: 3 records held by 2 or more non-official plugins (KYWD 2, MISC 1)

And what one of them changes:

sf-mod-check summary Mod.esm
sf-mod-check 0.26.0 summary of Mod.esm and its 1 master

Mod.esm (full plugin)
  Masters (1):
    Starfield.esm (full), in C:\Program Files (x86)\Steam\steamapps\common\Starfield\Data
  Records: 5 records (1 new, 4 overrides, 1 of them deleted)
    KYWD: 1 new, 2 overrides (1 deleted), 1 ITM
    MISC: 0 new, 2 overrides
  ITMs (overrides identical to their master version): 1
    KYWD (1)
      000800:Starfield.esm S_A
  Changed fields: 1 field changed in 2 overrides
    MISC Value: 2 overrides
      000802:Starfield.esm S_Misc: 5 -> 50
      000803:Starfield.esm S_Part: 7 -> 70
  Cells touched: none
RESULT: Mod.esm: 5 records (1 new, 4 overrides, 1 deleted), 1 ITM, 1 field changed in 2 overrides

Check each download against its .sha256 file.

sf-mod-check 0.25.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 05:08

What's new

  • edit <plugin> --out <new plugin> makes a few narrow changes to a finished plugin and writes them to a new file; the plugin itself is never changed. Three edits, which can be combined: --drop-master <name> (remove a master nothing uses, renumbering the FormIDs after it, in records, group labels and field data, compressed records included), --set-light (set the light flag) and --set-text <INFO or MESG> --text "<new text>" [--response N] (replace one INFO response's text or one MESG's description). The record is an EditorID, a FormKey (000B23:Mod.esm) or a console FormID (8 hex digits, 00000B23, naming an own record by its last six digits; refused when those digits also match an override the plugin carries); a bare 6-hex value is read as an EditorID. The new file has its own name: give it the original's name (keeping a copy of the original) before you test it, since the game finds the plugin's archives by file name. After --set-light, re-save any plugin that has this one as a master.
  • Three proofs before the file is kept: the new file is read back, diff must show only the intended changes, gap no new loss and check no new ERROR. A failed proof deletes the new file and exits 1. Exit 0 kept, 2 refused or couldn't run; --json reports each proof.
  • Refusals (exit 2, each with the reason and the fix): --out missing, equal to the input or already existing; an input inside a zip; a master still used (Mutagen's links and a raw FormID scan must both find none); a --drop-master that would have to renumber a value Mutagen doesn't read as a link but that names a real record (for example a FormID inside a component's raw data), or two overlapping values that both look like FormIDs; --set-light on a light or medium plugin or with own records outside 000800 to 000FFF; --set-text on a localized plugin, a record not found or a response number out of range; a second --drop-master in one run; two --set-text on the same record in one run.
  • The README and AGENTS.md now say that sf-mod-check never changes your files, and that edit writes a checked new copy.
  • Existing findings do not change.

Example

A made-up full plugin Demo.esm in C:\Mods, run in that folder:

sf-mod-check edit Demo.esm --out Demo-fixed.esm --set-light --set-text DemoGreeting --text "Welcome aboard, traveler."
sf-mod-check 0.25.0 edit: Demo.esm -> Demo-fixed.esm
edit set-light: type: full -> light
edit set-text 000801:Demo.esm: response 1 text (NAM1)
proof diff: passed: only the intended changes: 1 header change, 1 changed record, 0 renumbered without a change in meaning, 11 the same
proof gap: passed: no new loss (0 error(s) and 0 warning(s), all in the input too)
proof check: passed: no new ERROR (0 in all, each in the input too)
kept C:\Mods\Demo-fixed.esm
RESULT: KEPT (3 proofs passed; Demo-fixed.esm; 14.2 s)

Fixes

  • The gap check (in gap, --gap-check, release and edit's proof) no longer looks up a master whose name in the plugin holds a path (..\, a drive or a \\host\share network name); such a master counts as not found. Before, a plugin with a network name as a master could make Windows contact that computer.
  • release reads each master's sound GUIDs once per run, not once for every plugin that has a missing sound event (each plugin opens its own copy of the game data, so the old per-plugin cache never hit; a release of several plugins over a large master such as Starfield.esm was slow).
  • lines, find and scenes read a prefixed name (eid:00005788) as an EditorID, even when it is exactly 8 hex digits, which would otherwise be read as a console FormID. (Quotes the shell removes don't count; use eid:.)

Check each download against its .sha256 file.

sf-mod-check 0.24.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 23:35

What's new

  • scenes <NPC or quest> prints an NPC's or a quest's conversations as a tree and checks them. One section per scene, with when it can start. Each part is the NPC's lines (or "one of these at random") or a table You say | <NPC> answers | Then. The "Then" column says where the talk goes: the conversation ends, back to these choices, back to part N, on to part N, goes to another scene (at a part), back to the talk menu, or the scene ends. Random picks, perk, faction and stage conditions and stage sets are in plain words. A Problems list and a stage table (stage, the author's note, what sets it, what needs it) follow. Options: --plugin, --hub <scene>, --out <file.md>, --json, --max <n> (default 50 scenes), and the load-order options of lines. Exit 0 found, 1 not found, 2 couldn't run.
  • The talk menu is found, not named: in each quest it is the scene that the most other scenes jump to (a jump to any of its parts counts), when at least two do. A tie between a menu and a submenu that jump to each other goes to the one no other tied scene enters before its choices. --hub overrides it.
  • Five rules, each with a hint: scene-phase-missing (ERROR: a line starts a scene at a part name the scene doesn't have; it suggests the part whose name matches with spaces and case ignored; also runs in check), scene-no-exit (WARNING: every choice leads back to the same choices), stage-gate-unset (WARNING, or NOTE when scripts can't be read: a condition needs a stage that nothing in the plugin sets), stage-set-unchecked (NOTE: a stage is set and nothing in the plugin checks it) and scene-topic-unused (WARNING: a Scene topic with spoken lines that no scene uses). The stage and topic rules cover only the plugin that adds the quest or topic, and never an official plugin. The stage table also lists a stage that something sets but the quest doesn't have, as "(no such stage)".
  • lines and voice-lines read OR conditions as a group. A line whose condition is GetIsID <another NPC> OR GetIsAliasRef <an alias the NPC fills> now counts for the NPC in lines (before, the other NPC's GetIsID ruled it out), and voice-lines gives such a line the voice types of both. Only an AND group whose every alternative is another NPC's GetIsID rules the NPC out. This changes which lines are reported only for that rare mixed shape (2 lines in Starfield.esm, none in the two plugins checked).
  • find --layout: a read failure part way through a file marks only the records the walk never reached (before, every listed record said it was unreadable); a record that one plugin holds twice shows its first copy with a note giving the other copy's offset, and --json adds otherCopies.
  • patch: the NOTE about entries one plugin removed from a quest stage's log entries or an objective's targets keeps its 0.22.0 wording when the patch holds all the other plugin's entries, and gives the counts when it holds fewer. A NOTE is dropped when a later plugin's whole entry, a --pick or a whole-value replace replaced the entry it was about.
  • Smaller: voice-lines --help gives the full order voice types are found in, and the no-voice-type NOTE names the templated-NPC reason; --out with no value suggests each command's own file name; find --full topic lines are cleaned of control characters; the README lists the unreadable key of infos.
  • The release job takes its notes from the version's own section of this file, fails when that section is empty, and no longer overwrites a published release's files.
  • Existing findings do not change.

Example

A made-up plugin Demo.esm whose talk scene starts the ship scene at the part "SHIPPART" when the ship scene's part is named "SHIP PART":

sf-mod-check scenes DemoQuest --plugin Demo.esm
## DemoQuest_Talk
Scene 000810:Demo.esm (quest DemoQuest). It can start only after DemoQuest stage 10.
Part 2 "ASKPHASE". Your choices:
| You say | Hana answers | Then |
| "Tell me about the ship." | "Made-up answer." [sets stage 20] | Meant to jump to "SHIPPART", a part that doesn't exist. |
| "Never mind." | "Made-up goodbye." | The conversation ends. |
## Problems
- ERROR scene-phase-missing: DemoQuest_Talk: line 000820:Demo.esm starts DemoQuest_Ship [SCEN:000830:Demo.esm] at the part "SHIPPART", which it doesn't have, so the jump doesn't go where it should. Did you mean "SHIP PART"?
- NOTE stage-set-unchecked: ...
RESULT: 2 scenes, 1 error, 0 warnings, 1 note (12 s)

Check each download against its .sha256 file.

sf-mod-check 0.23.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:44

What's new

  • Sound events. A record can name a Wwise sound event that no loaded sound bank holds, and then the sound is silent in the game. release (rule sound-event-missing, WARNING), check and conflict (under the assets check) now find these. A record names an event by its Wwise GUID; the tool reads every loaded bank and its manifest (sound\soundbanks\<id>.json) from the game's, the masters' and the mod's own archives and loose files, and reports a GUID that no manifest has, or that a manifest has but its bank doesn't. A GUID the overridden record already names, or that a master's record names, is not reported, and an official plugin's own are counted in the log only. When a master is missing, release skips the check and gives one NOTE instead. At most 25 per plugin are listed, then a count.
  • release rule sound-bank-manifest-missing (WARNING): a bank of the mod's own with no .json manifest beside it, which the game needs to play its sounds (a bank that replaces a game or master bank whose manifest still loads isn't reported). Rule sound-bank-name (NOTE): a bank not named by the Wwise ID of the plugin's lower-case name. Rule music-track-silent (NOTE): a single music track with no start event. --accept takes sound-event-missing and sound-bank-manifest-missing.
  • voice-format <plugin | archive | folder>... reports how many voice files (.wem) have each codec, channel count and sample rate, and how many have their .ffxanim lip file in an archive, loose or nowhere. It is a report and never flags a format (the game ships 32, 44.1 and 48 kHz).
  • find --full prints a sound GUID also in the form a Wwise bank manifest uses.
  • Existing findings do not change.

Example

A made-up mod Demo.esm whose weapon names a sound event, with no bank of its own:

sf-mod-check release Demo-1.0.0.zip
WARNING  [sound-event-missing] Demo.esm: sound event {0B6F2A4C-1D3E-4A5B-8C7D-9E0F1A2B3C4D} is in no loaded sound bank's manifest, so the sound won't play. If the mod has its own bank, ship sound\soundbanks\<bank id>.json beside the .bnk; if the sound comes from another mod, make that mod a master; used by DemoRifle [WEAP:000800:Demo.esm] Idle.Start. 64 archives and 1 loose folder were searched for sound banks, and banks were found in Starfield - WwiseSounds01.ba2, Starfield - WwiseSounds02.ba2, Starfield - WwiseSoundsPatch.ba2, SFBGS003 - Main.ba2 and 10 more.
RESULT: OK (0 problems, 0 to review, 1 warnings)

sf-mod-check voice-format "Demo - Voices.ba2"
Demo - Voices.ba2 (archive): 12 voice files (.wem)
  wwise-vorbis     mono        32,000 Hz        10   e.g. sound\voice\demo.esm\npcfdemo\00000801.wem
  wwise-vorbis     mono        48,000 Hz         2   e.g. sound\voice\demo.esm\npcfdemo\00000810.wem
  lip files (.ffxanim): 11 in an archive, 0 loose, 1 with none (first: sound\voice\demo.esm\npcfdemo\00000810.wem; those lines play, but the lips don't move)
RESULT: REPORT (12 voice files in 1 input, 2 formats, 1 with no lip file, 0 unreadable)

sf-mod-check 0.22.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 09:28

What's new

  • find --full on a topic (DIAL) lists its dialogue lines after the tree: each INFO's FormKey, EditorID and winning plugin, and each response's number, text, emotion and face fields. An INFO's own tree already showed those fields. With --json the match gains infos. Without --full nothing changes.
  • find --layout lists the winning copy's subrecords as the file stores them: offset, signature, size and a short preview (never more than 48 characters or 16 bytes). A damaged record lists the subrecords before the bad spot and says what is wrong. It works in a load order and with --plugin (also the --plugin listing), and with --json the match gains layout.
  • ba2 list <archive> [<pattern>] and ba2 extract <archive> <pattern> --out <folder> list and extract files of a general (GNRL) BA2 archive (stored, zlib and LZ4 files). Texture (DX10) archives can be listed but not extracted. A name that would leave --out is refused, an existing file is kept unless --force is given, folder links are never followed, and --max-size (default 2 GB) caps what is written.
  • diff prints the field-by-field detail under each changed record, as triage does: the changed values, a reordered list, and dropped or added translations. It shows 10 lines per record (--all shows every line); --json adds detail and detail_not_shown. The summary lines and counts are the same as before.
  • patch adds a NOTE when one plugin removed entries from a quest stage's log entries or an objective's targets and the other plugin changed the same list. The merge and the patch plugin are the same as in 0.21.0; the NOTE asks you to check that quest in the game.

Fixes

  • find --refs: when the run already used --plugin, the memory-limit message no longer suggests --plugin. A record whose winning copy is a partial form with its own EditorID shows that EditorID.
  • The release workflow (ci.yml) on a tag rerun no longer overwrites the .nupkg on the GitHub release: it uploads the package only when the release doesn't have it, so the GitHub copy can't differ from nuget.org's.
  • The voice-lines help and README say that a --utf8 file needs SVC_EXPORT_ENCODING=utf-8 set on the Voice Cloner side.

Example

A made-up mod, Demo - Main.ba2 with two scripts:

sf-mod-check ba2 list "Demo - Main.ba2"
         812  zlib     scripts\demo\questscript.pex
         240  stored   scripts\demo\helper.pex
RESULT: 2 of 2 files listed (GNRL)

sf-mod-check ba2 extract "Demo - Main.ba2" "scripts\demo\q*" --out C:\Work\out
wrote scripts\demo\questscript.pex (812 bytes)
RESULT: OK (wrote 1 of 1 files, 812 bytes, to C:\Work\out)