Part 1: For modders · 7 sections · page built 2026-12-05 00:35 UTC

Fix what an evaluation found

Do this with an agent

When sf-mod-check check, release or triage reports a problem in a plugin, you find the record, fix it in xEdit or the Creation Kit (or rebuild it from code), and run the same check again until it is clean.

Richard is modding

What's new

  • 2026-12-03. The page now has a Richard is modding panel that links to Richard's mods at Creations and Nexus Mods, and to Help Richard Help You.
  • 2026-11-29. This page has a new look, the same as the other Richard Presents pages, with a menu that lights the section you are reading, a short summary at the top and this What's new box.
  1. 1Run the check and read each finding.
  2. 2Find the record it names.
  3. 3Fix it in xEdit, the Creation Kit or your builder.
  4. 4Run the same check again.
  5. 5Repeat until the result is clean.

What you need

  • sf-mod-check 0.30.0, installed as in Getting started. It needs the game's Data folder for masters. The Steam default path is found by itself. For Game Pass, add --data "<drive>:\XboxGames\Starfield\Content\Data".
  • A tool that can edit the plugin. That is xEdit or the Creation Kit (CK) for most authors. Code builders use BuildKit and sf-mod-build instead. See the other free tools for links.
  • Vortex or MO2. Vortex deploys into the Data folder, so the checks work as they are. For a plugin that sits in a Vortex staging folder, add --data pointing at the real Data folder. For Mod Organizer 2 (MO2), give the plugin path inside mods\, add --data for the real Data folder, and add --masters-dir for each master mod's folder. (check doesn't take --mo2. conflict, patch and find do.)
  • A backup. Copy the plugin before you change it. The tools only read, so any damage would come from your editor.

Steps

1. Run the check

check tests a single plugin for structure, links, conditions, dialogue, scenes, deleted records and missing assets. Each line is an ERROR, a WARNING or a HINT, and the run ends with a RESULT: line.

Command Prompt
sf-mod-check check MyMod.esm

If you have a release zip, release checks the whole package. Its lines are PROBLEM, REVIEW, WARNING, NOTE and ACCEPTED.

Command Prompt
sf-mod-check release MyMod-1.0.0.zip

If the plugin came from someone else and you only want to know where to start reading, use triage. Its findings are NOTE and LOOK, never a verdict.

Command Prompt
sf-mod-check triage SomeMod-1.2.0.zip

Since sf-mod-check 0.17.0 (released 2026-11-24), triage shows each changed field of each official record the mod overrides, so you can see what to fix. For a record in a cell or a worldspace (placed objects, navmeshes) it names only the field type, because those records are compared raw. Each record shows at most 200 rows, plus up to 200 more for the two translation kinds, and each value is cut at 2,000 characters. The whole report holds at most 10,000 rows, with real changes first. Each cut says how much it left out. The rows "same entries, other order", "same English text, translations dropped" and its reverse, "same English text, translations added", are often harmless, so fix the other rows first.

2. Find the record

Each finding names a record or a file. To read the record without opening an editor, run sf-mod-check find <EditorID or FormKey> --plugin MyMod.esm (with --masters-dir <folder> for each master that isn't in the plugin's folder or the game's Data folder). It prints the record's fields, including each condition on its own line. To edit it, open the plugin in xEdit or the CK and search for the Editor ID or FormID in the finding. Link the finding to its cause before you change anything. A link to a record that doesn't exist, for example, usually means a master is missing or a record was deleted.

3. Check what you can't see by eye

If you rebuild a plugin with Mutagen, gap finds data that Mutagen 0.54.4 loses when it writes a plugin. It is the same test as the mutagen-gap rule in release.

Command Prompt
sf-mod-check gap MyMod.esm

To see what an update of someone's mod changed, compare the old and new files.

Command Prompt
sf-mod-check diff SomeMod-1.1.0.zip SomeMod-1.2.0.zip

4. Fix it

Fix the record in xEdit or the CK. Code builders change the builder and rebuild:

Command Prompt
sf-mod-build build

Match how the game's own records and their siblings do it. Don't copy the quirks of the broken mod.

Three small fixes don't need an editor. Since sf-mod-check 0.25.0 (released 2026-11-26), edit can drop a master that nothing uses (--drop-master <name>), set the light flag (--set-light) and replace the text of one dialogue response or one message (--set-text <record> --text "<new text>"). It never changes your plugin. It writes a new file, and keeps it only when three proofs pass: a diff of the new file shows only the intended changes, gap finds no new loss, and check finds no new ERROR. If a proof fails, the new file is deleted and the exit code is 1. When it refuses a request, the exit code is 2 and the message says why and what to do. A made-up run on Demo.esm in the folder C:\Mods (run it from that folder, or give full paths):

Command Prompt
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)

The new file has its own name, and the game finds a plugin's archives by file name. Keep a copy of the original, then give the new file the original's name before you test it. Since sf-mod-check 0.29.0, when the new name loses something the game finds by the plugin's name, edit prints a WARNING: line before the RESULT: line, and the RESULT line says "1 warning about the new name". That happens when the plugin is localized (its text is in Strings\MyMod_<language>.STRINGS files) or has MyMod - *.ba2 archives beside it. The warning is not a refusal and the exit code stays 0, because the new file itself is right: copy or rename those files, or give the new file the original's name. After --set-light, re-save any plugin that has this one as a master. --set-light is refused when the plugin is already light or medium, or when one of its own records is outside 000800 to 000FFF. --drop-master takes one master per run, and is refused while anything still uses the master (the refusal says to run sf-mod-check find --refs on that master's records to see what points at it). Since sf-mod-check 0.28.0 it renumbers only the values that Mutagen really reads as links. A number that only looks like a FormID (a value, a weight, a list of bytes) is left alone, and the report says "left N look-alike values alone". A look-alike that names a real record is refused instead of guessed at. edit also refuses an --out named like one of the new file's masters, an .esl --out for a plugin that isn't light (add --set-light, or keep the extension) and an .esm or .esp --out for an .esl without the light flag. --set-text edits response 1 of a dialogue line unless you add --response <n>, counted from 1 as find --full shows the responses, and it doesn't work on a localized plugin. Removing or copying records is out by design. Renumbering FormIDs to compact them, which --set-light needs when a record is outside 000800 to 000FFF, stays an xEdit or CK job.

5. Run the same check again

Run exactly the command from step 1. Stop when it is clean. A different command can pass while the first one still fails.

Example

Say sf-mod-check check MyMod.esm reports a link to a record that doesn't exist. Open the record in xEdit, look at the field the finding names, and see that it points at a FormID from a master you removed. Point it at the right record, or remove the link. Save the plugin, run sf-mod-check check MyMod.esm again, and read the new RESULT: line.

Reading the results

Exit codecheckreleasediff
0No errors.OK.No differences.
1Errors found.FAIL.Differences found.
2The tool could not check.The tool could not check.Bad input.
  • ERROR and PROBLEM mean something is broken. Fix these first. One exception: since sf-mod-check 0.29.0, a record whose FormID points at a master the plugin doesn't list is read as the plugin's own record, as xEdit and Mutagen read it, and gets one WARNING for the whole plugin instead of an ERROR for each record. check says plainly that the game's handling is not proven, and check can exit 0 on such a plugin, so read that WARNING.
  • WARNING and REVIEW mean look at this and decide.
  • HINT and NOTE are information.
  • ACCEPTED marks a finding you chose to accept with --accept.
  • Triage uses only NOTE and LOOK. Treat it as where to start reading.

When PMT isn't enough

By design

sf-mod-check edit makes only three narrow changes: dropping an unused master, setting the light flag and replacing one line's text. It never edits the original. Removing records, copying records, cleaning ITMs and undeleting are left out by design and stay xEdit or CK jobs. So does renumbering FormIDs to compact them, which --set-light needs when one of the plugin's own records is outside 000800 to 000FFF, and so does any other fix. PMT finds the problem and checks your result.

Note

Match how the game's own records and their sibling records do it, not the broken mod's quirks.

Warning

If the mod belongs to someone else, ask the author before you share a fixed version, and credit them. A fix for your own game is yours. A fix other people download needs permission. See Extend another author's mod for how to keep a permission record.

For CK and xEdit authors

You fix the plugin by hand, except for the three small fixes edit can make, so PMT is your second pair of eyes. Run check before you save, again after, and release on the zip. Every finding names a record you can search for in xEdit or the CK.

For code builders

Fix the builder, not the plugin. Rebuild with sf-mod-build build, then run check and gap on the new plugin. Keep ids.lock.json with your builder so FormIDs stay stable between builds.

Do this with an agent