Repository navigation
sf-mod-check 0.28.0
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,--jsonand--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-masterrenumbers 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. Noweditasks 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 --outis proved under its own name. The gap and check proofs now run on the new file under the name it is kept as.editrefuses an--outnamed like one of the new file's masters, and an.esl--outfor a plugin that isn't light (the game loads every.eslas light, so its own FormIDs would point at the wrong records; add--set-lightfor a full plugin, or keep the extension), and an.esmor.esp--outfor an.eslwithout the light flag (which the game loads as light by its name alone).
Fixes
lines: thefindhint keepseid:for an EditorID thatfindwould read as a console FormID, solines eid:0000ABCDnow hintssf-mod-check find eid:0000ABCD, not a FormID lookup.scenes --hubtakeseid:,editorid:and a quoted name as an EditorID, asfindandlinesdo, and refuses an empty one.scenes: thefindhint for a record that is neither an NPC nor a quest no longer quotes a quoted EditorID twice (scenes '"ScHub"'hintedfind ""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.