Part 1: For modders · 6 sections · page built 2026-12-05 00:35 UTC
Build the release zip, run sf-mod-check release with the basic or creations profile, confirm with sf-test-plan that the zip is the build you tested, and write a README that explains logging and credits. You upload to Nexus Mods yourself, and the Creation Kit does the Creations upload.
Richard is modding
- Try Richard's mods at Creations and Nexus Mods.
- Need help with Richard's mods? Visit Help Richard Help You.
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.
- 1Build the zip.
- 2Run the release check.
- 3Confirm it is the build you tested.
- 4Write the README.
- 5Upload it yourself.
- 6After each game patch, check for drift.
What you need
- sf-mod-check 0.30.0, sf-test-plan 0.5.1 and sf-patch-day 0.5.3, installed as in Getting started. Code builders add sf-mod-build 0.7.2.
- A tested build. See Test and debug a mod. The tutorial mods PMTTutorialSecondWind and PMTTutorialCourier are examples. Their
WALKTHROUGH.mdfiles, in the guide repository'sexamplesfolder, record the release checks they ran. - Your setup. The release zip should have the plugin and its BA2 archives at the top level, so Vortex and MO2 install it as it is. Steam is the default for building. sf-mod-build builds on Steam only.
- Permissions. If your mod uses another author's work, you need their permission on record and their credit in the README.
Steps
1. Build the release zip
Code builders build everything in one command, which compiles, makes the plugin, packs the archives, writes the zip and runs the check. It stops at the first failure.
sf-mod-build buildSince 0.4.2, build shows the result of BuildKit's gap check without --verbose: its gap check: RESULT: ... line, its ERROR lines, or gap check: NOT RUN (...) when sf-mod-check wasn't found. Fix every ERROR. If you name a checker with --checker <exe>, it is given to the gap check too (0.15.0 or later).
A mod with more than one plugin lists the others in parts in sfmod.json, and since sf-mod-build version 0.5.0 it gets one zip per plugin. The main zip, MyMod-1.0.0.zip, holds the main plugin, its archives and the other files, such as the README. Each part gets its own zip, named <ModName>-<Part>-<version>.zip, so MyMod-Patch.esm goes into MyMod-Patch-1.0.0.zip. <Part> is the part plugin's name without the mod's name in front, and a part's zipPart field picks another word. The check step checks each zip, and build's last line names every zip it wrote. "zip": { "split": false } keeps all the plugins in one zip, as before 0.5.0. Run sf-mod-build validate to see which zips a build will write and what each one holds.
Since sf-mod-build 0.7.0, the zip's entry times follow the mod's last git commit (the newest file going in when the folder has no git) instead of a fixed date in 2000, so zip writes the same bytes from the same files and commit. --source-date <seconds since 1970 or 2026-12-01T10:00:00Z> (on zip and build) and the SOURCE_DATE_EPOCH variable override it. A fresh Papyrus compile still changes the scripts' archive, because the compiler writes the compile time into each .pex. Every zip also comes with <zip>.files.sha256, one <hash> <path inside the zip> line per file in the format sha256sum -c reads. With "xbox": true, pack also writes <plugin> - Main_ps.ba2 in creations-out, a copy of the PC Main archive for PlayStation 5 (see the limits below).
To make the release check mandatory, run the check step with --require-check.
sf-mod-build check --require-checkIf you made the zip another way, go straight to step 2.
2. Run the release check
The basic profile checks the package for any release.
sf-mod-check release MyMod-1.0.0.zip --profile basicFor a mod you plan to put on Creations, use the creations profile. It applies the rules for PC, Xbox and PlayStation.
sf-mod-check release MyMod-1.0.0.zip --profile creationsIf you build with sf-mod-build and "xbox": true, the files you upload (the plugin, the PC archive and its _xbox.ba2 twin) go into a folder named creations-out. Check that folder, not the PC zip, which has no Xbox archive. Without "xbox": true there is no creations-out folder, and the command stops with RESULT: CANNOT CHECK (creations-out: no such file) and exit 2. sf-mod-build build doesn't run this check itself, but with "xbox": true it ends by printing the command with your folder's full path:
sf-mod-check release creations-out --profile creationsEach Creations rule means this, in plain words:
| Rule | What it means |
|---|---|
creations-ini | No INI files in the package. |
creations-sfse | No DLL or SFSE plugin files in the package. |
creations-framework | No scripts that name an SFSE plugin framework. |
creations-master | Masters are only Bethesda's, plus ones you vouch for with --creations-master. |
creations-xbox | Each PC texture archive needs a _xbox.ba2 twin. |
creations-size | The package stays under the 2 GB cap. |
creations-audio | A warning for .wem and .bnk audio, which is silent on consoles when it is PC-only. |
creations-debug | A warning for Debug.Notification and MessageBox, which consoles ignore. |
Since sf-mod-check version 0.18.0, release also checks the voice files of your dialogue (rule voice-missing). Each dialogue line the plugin adds needs a .wem file under sound\voice\<plugin>\<voice type>\ for each voice type its speaker conditions name, loose in the zip or in the plugin's Voices_<language>.ba2. A line without one gets a WARNING, because it would play silent for that speaker. A mod with dialogue and no voice files at all gets one NOTE instead, and so do voice files with no .ffxanim lip file beside them (the line plays, but the lips don't move). Player lines aren't checked, and neither are lines your plugin changes in another mod.
--tested <zip or BA2> names the zip, or one of the .ba2 archives, of the build you played. The release check then compares the build's plugins and scripts with that build: a script or plugin that differs, is missing now or is new is a REVIEW line, and one that matches is a NOTE. A tested file that can't be read is a PROBLEM. To accept a finding you decided to accept, use --accept rule:plugin:detail.
3. Confirm it is the build you tested
check-build says whether the zip you built has the same plugins, scripts and other files as the zip you tested. Since sf-test-plan 0.5.0 it compares every loose file in a zip that has a plugin, so a changed SFSE DLL, .ini or interface file counts as a difference too. A .esm, .esp or .esl is compared by checksum, and each .ba2 by what is inside it, so a different archive packing alone is not a difference. Documents (.txt, .md, .pdf), pictures, a fomod folder and extensionless readme and license files are ignored, unless they sit in a folder the game reads, such as Interface, SFSE, MCM or Scripts (since 0.5.1). A network path on the plan's zip: line is refused, because on Windows even looking for it sends your sign-in to that computer. Give --tested instead.
sf-test-plan check-build MyMod.testplan.md --built MyMod-1.0.0.zip --tested MyMod-0.9.0.zipTo compare two zips without a plan, use compare-builds. It ends OK: and exits 0 when the files match, and it names each file that differs and exits 1.
sf-test-plan compare-builds MyMod-0.9.0.zip MyMod-1.0.0.zipPMTTutorialCourier - Main.ba2: differs: 1 of its files differ (scripts/ptcr/courierquestscript.pex); the tested zip's copy has sha256 14a6a47cfdc614d0, and the built zip's copy has 861cb8477aac1a4c
PMTTutorialCourier.esm: differs: the tested zip's copy has sha256 61e9af73817d8ff0, and the built zip's copy has 1218a763067a0ab4
DIFFERENT: 2 of 2 files differ.The lines above come from the tutorial's 0.1.1 and 0.1.2 zips (sf-test-plan 0.5.1). If a difference is one you have looked at and accept, --pins <file> names it with the first 16 hex digits of the two checksums, and the report shows it as a warning, not a difference. Only that exact pair is accepted.
To compare a zip with files already on disk, such as the zip you released before, a folder or the game's Data folder, use sf-mod-build's verify (since version 0.7.0). It compares by SHA-256 and prints one line per file: ok, DIFFERS or MISSING. It exits 0 when all match, 1 when a file differs or is missing, and 2 when it couldn't check. Your build's dist folder isn't a full copy: it lacks the files zip.files adds (a starter project's README and LICENSE), so those show as MISSING there. A fresh compile gives a Main.ba2 that differs by its bytes, so verify reports that archive as DIFFERS, even when check-build finds the same scripts.
sf-mod-build verify MyMod-1.0.0.zip --against C:\Downloads\MyMod-1.0.0.zipok LICENSE-PMTTutorialCourier.txt
ok PMTTutorialCourier - Main.ba2
ok PMTTutorialCourier.esm
ok README-PMTTutorialCourier.md
RESULT: OK, all 4 files of PMTTutorialCourier-0.1.2.zip match C:\Example\released\PMTTutorialCourier-0.1.2.zipThe lines above come from a real run (sf-mod-build 0.7.0) of sf-mod-build verify PMTTutorialCourier-0.1.2.zip --against released/PMTTutorialCourier-0.1.2.zip, the tutorial's 0.1.2 zip against a copy of it, with the path shortened.
4. Write the README
Say what the mod does, what it needs, how to install it and how to remove it. Then add:
- A logging section. Say how to turn on Papyrus logging: add
[Papyrus]withbEnableLogging=1,bEnableTrace=1andbLoadDebugInformation=1toStarfieldCustom.ini, and where the log goes (Documents\My Games\Starfield\Logs\Script\). A mod with scripts also tells players about its "Show Debug Messages (PC only)" switch. A records-only mod doesn't need either. - Credits and permissions. Name every author whose work you used, and say what permission you have.
- One plugin per zip. Put at most one plugin in each zip. A second plugin gets its own zip, named like
MyMod-Part-1.0.0.zip, and sf-mod-build writes those zips for you fromparts. Say in the README which zips a player needs. Don't use "Optional" folders, because Vortex installs them as they are, so their plugins never load.
5. Upload
You upload to Nexus Mods yourself. For Creations, the Creation Kit does the upload. PMT never uploads anything. Read your page text, screenshots and version number again before you submit.
6. Keep it working after a game patch
drift tells you whether an update changed the master records, quest stages or script functions your mod relies on. Do init and snapshot once, when you release.
For the script functions and quest stages, drift needs sf-pex-tools 0.1.0. Unzip it into a folder named sf-pex-tools next to the sf-patch-day folder, or add --pex-tools <folder> to each drift command. Without it, init lists only the master records your plugin overrides. A mod that adds only its own records, like the tutorial mods, then gets a mods file with nothing to watch, and snapshot stops with exit 3 ("masters" is empty). With sf-pex-tools, init on the quest tutorial listed 21 functions that its scripts call in Starfield.esm, and snapshot and check ran (RESULT: no change, exit 0).
.\sf-patch-day.cmd drift init MyMod.esm -o mods.json.\sf-patch-day.cmd drift snapshot --mods mods.json -o baseline.jsonAfter a game update, run check.
.\sf-patch-day.cmd drift check --mods mods.json --baseline baseline.jsonFor a mod that relies on a Creation you don't make, list that Creation in the mods file, because drift doesn't watch Creations by itself. To see which Creations changed at all, run creations (sf-patch-day version 0.4.0 and later). Its first run saves a copy of the game's Creations list, and each later run names the Creations that were added, removed or updated since that copy. Add --save once you have looked, to make the current list the new starting point.
.\sf-patch-day.cmd creationsReading the results
- Release lines. PROBLEM means a defect you must fix. REVIEW and WARNING mean judge it. NOTE is information. ACCEPTED is a finding you chose to accept. Exit 0 is OK, exit 1 is FAIL, and exit 2 means the tool could not check. A
voice-missingWARNING names the line and the file it expected, so add that file or remove that voice type from the line's conditions. - More than one zip. With
parts, sf-mod-build checks each zip and reports the worst result. A part's zip is checked with--masters-dirset to the build'sdistfolder, because its master plugin is in the main zip. check-buildandcompare-builds. Exit 0 means the same plugins, scripts and other files. Exit 1 means the zips differ.verify. Exit 0 means every file matches by SHA-256. Exit 1 means a file differs or is missing, and exit 2 means it couldn't check.drift checklevels. OK, NOTE, WARN, ACTION (rebuild) and SKIP. Exit 0 is no change, exit 1 means a change that is unused or a name to check, exit 2 means rebuild, and exit 3 means it could not read.- BA2 bytes vary. Compile times make BA2 bytes differ between builds.
check-buildcompares each archive by what is inside it, so a different packing alone is not a difference, andverifycompares whole files, so it reports a freshly compiled archive as DIFFERS. Judge a rebuild by plugins and scripts.
A real run
The release check on the tutorial quest mod's zip, with the creations profile (sf-mod-check 0.30.0, exit 0, shortened). The tutorial has no Xbox archive, so the check warns about it, as it would for your mod.
sf-mod-check 0.30.0 release (creations profile): PMTTutorialSecondWind-0.1.0.zip (4 files, 1 plugin, 1 archive)
WARNING [creations-xbox] PMTTutorialSecondWind-0.1.0.zip:PMTTutorialSecondWind - Main.ba2: no PMTTutorialSecondWind - Main_xbox.ba2, so Xbox gets no archive (the Creation Kit warns "Creation for XBox that has no archives"); build the Xbox archive with Archive2's Xbox settings.
NOTE [plugin-check] PMTTutorialSecondWind.esm: OK, 0 errors, 0 warnings (light master, 1 masters, 6 records, 0 overrides (0 ITM), 8 links)
NOTE [creations-size] PMTTutorialSecondWind-0.1.0.zip: plugins and archives: 3.4 KB (a Creation may hold 2 GB).
RESULT: OK (0 problems, 0 to review, 1 warnings)The NOTE lines for DMMDeps and the gap check are left out here.
When PMT isn't enough
PMT never uploads. Nexus Mods and Creations uploads are your own steps, and the Creation Kit does the Creations upload. sf-mod-build voice makes the PC voice files, but console (Xbox) voice audio is still made in the Creation Kit: the sf-mod-build README says the voice section is "PC only" and "can't be used with "xbox": true", because a PC .wem plays silent on Xbox and PlayStation 5.
sf-mod-build is tested on PC (Steam) and Xbox. PS5 is not tested, and that is a known limit. PMT checks the Creations rules and makes the Xbox archives. Since sf-mod-build 0.7.0, a build with "xbox": true also writes <plugin> - Main_ps.ba2, a copy of the PC Main archive for PlayStation 5 (pack doesn't list that file in its output yet, so look in creations-out), and since sf-mod-check 0.29.0 release knows _ps archives: the archive-name checks pass, and the creations-xbox NOTE says "PlayStation archive present" and asks for no twin. PS5 reads PC-format files except audio, there is no _ps Textures archive, and a mod with voice files needs a PS5 audio test. For what else a PlayStation 5 Creation needs, follow what the Creation Kit asks for during its upload.
drift doesn't watch the records of a Creation you depend on, unless you list it in the mods file. Since sf-patch-day version 0.4.0, .\sf-patch-day.cmd creations tells you which installed Creations were added, removed or updated since your last run, but not what changed inside them.
After a game update, never rerun snapshot --force instead of check. It replaces the baseline, so you lose the record of what changed.
For CK and xEdit authors
Make the zip by hand with the plugin and its archives at the top level, then run release on it. Use the CK for the Creations upload, and drift init MyMod.esm in your mod's own folder for patch-day upkeep.
For code builders
Let sf-mod-build build make the zip, and run its check step with --require-check so a failed release check stops the build. Keep the pinned Mutagen and BuildKit versions, and never compile with -release.