Repository navigation
sf-mod-build 0.7.0
What's new
- Voice files for lines another plugin owns, with two new fields in the
voicesection."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.ffxanimwhen there is one), looked for in the entry's optionalsources, then--masters-dir, then the game's Data folder."replace": ["HelperCrew.esm"]gives a master's lines your own WAVs, fromVoice\Sound\Voice\HelperCrew.esm\<voice type>\, at the master's own paths; the plugin must have that master. English voices only.sourcemay be left out when the section only reuses. Reuse reads archives withsf-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.sourceor anarchivessource already ships is refused before Wwise runs, and a.wemanarchivesfolder 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(onzipandbuild) andSOURCE_DATE_EPOCHoverride it.zipstill 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 commandsf-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,packalso 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_psTextures archive. A records-onlyxboxbuild's closing note now names the plugin in dist. validaterefusesdistorcreationsOutinside the stage folder (ascompilealready did), and an unreadablevoice.sourceorvoice.wwiseProjectfolder is a PROBLEM line, not an error. The delete hint for a read-only file says to clear the read-only mark; thezip.folderhint says a folder inside dist is allowed.--logrefuses a file name with a colon and a link to a mod file. PROBLEM and WARNING lines escape control and bidirectional characters.PATHsearch 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:
> 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.