Skip to content

sf-mod-build 0.7.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 18:35
· 17 commits to main since this release

What's new

  • Voice files for lines another plugin owns, with two new fields in the voice section. "reuse": [{ "from": "Starfield.esm" }] gives a line of your plugin with no WAV the recording of the same voice type and number from that plugin (the .wem, and its .ffxanim when there is one), looked for in the entry's optional sources, then --masters-dir, then the game's Data folder. "replace": ["HelperCrew.esm"] gives a master's lines your own WAVs, from Voice\Sound\Voice\HelperCrew.esm\<voice type>\, at the master's own paths; the plugin must have that master. English voices only. source may be left out when the section only reuses. Reuse reads archives with sf-mod-check ba2 extract. A test build's 56 reused files and 26 made files came out byte for byte equal to the files shipped by the build it copied.
  • A voice path may come from one place only: a WAV for a path that assets.source or an archives source already ships is refused before Wwise runs, and a .wem an archives folder ships no longer gets a "stays silent" WARNING.
  • Zip entry times now follow the mod's last git commit (the newest file going in when there is no git) instead of 2000-01-01. --source-date (on zip and build) and SOURCE_DATE_EPOCH override it. zip still writes the same bytes from the same files and commit; a fresh Papyrus compile changes the scripts' archive, because the compiler writes the compile time into each .pex (README, "Reproducible builds").
  • Every zip comes with <zip>.files.sha256 (sha256sum format). New command sf-mod-build verify <zip> --against <zip, folder or Data folder> compares by checksum and exits 0, 1 (a file differs or is missing) or 2 (it couldn't check).
  • With "xbox": true, pack also writes <plugin> - Main_ps.ba2, a copy of the PC Main for PlayStation 5. PS5 reads PC-format files except audio, so a mod with voice files needs a PS5 audio test. There is no _ps Textures archive. A records-only xbox build's closing note now names the plugin in dist.
  • validate refuses dist or creationsOut inside the stage folder (as compile already did), and an unreadable voice.source or voice.wwiseProject folder is a PROBLEM line, not an error. The delete hint for a read-only file says to clear the read-only mark; the zip.folder hint says a folder inside dist is allowed.
  • --log refuses a file name with a colon and a link to a mod file. PROBLEM and WARNING lines escape control and bidirectional characters. PATH search skips . and relative entries.
  • The starter template pins BuildKit 0.6.2. The README has a Known limits section.

Example

Reuse, in a made-up mod whose new line copies a line of Starfield.esm:

"voice": { "reuse": [ { "from": "Starfield.esm" } ] }
> sf-mod-build voice
lines    3 voiced line(s): 0 with a WAV (0 to make, 0 unchanged), 3 reused, 0 without
RESULT: OK, 3 voice line(s) in C:\Mods\FriendlyCrew\.build\voice\data (0 made, 0 unchanged, 3 reused; 3 with a lip file)

Replace, with a WAV at Voice\Sound\Voice\HelperCrew.esm\npcfhelper\0001A2B3.wav:

"voice": { "source": "Voice", "replace": ["HelperCrew.esm"] }

Verify a new build against the zip you released before:

> sf-mod-build verify MyMod-0.1.0.zip --against C:\Downloads\MyMod-0.1.0.zip
ok       MyMod.esm
RESULT: OK, all 1 files of MyMod-0.1.0.zip match C:\Downloads\MyMod-0.1.0.zip

Compare with another zip, an unzipped copy or the game's Data folder. dist is not a full copy: it lacks the files zip.files adds (a starter project's README and LICENSE), so those show as MISSING there.

Check each download against SHA256SUMS or its .sha256 file.