Repository navigation
sf-patch-day 0.2.1
What's new
sf-patch-day 0.2.1 makes drift init more exact about which quest stages your mod's scripts set. It no longer credits your mod with stages that a master's own script sets on a master record you override, and it says so when a record's fragment scripts can be read two ways. The format of the mods file hasn't changed.
Example
This is the tool's real output on a made-up test mod whose dialogue record has a fragment section that fits both layouts:
> .\sf-patch-day.cmd drift init ..\MyMod\MyMod.esm -o mods.json --data ..\Data --pex-tools ..\sf-pex-tools
wrote mods.json: 1 overridden record(s), 0 master script function(s) your scripts call and 0 master quest(s) they set stages on, in 1 master(s)
read 1 of your mod's own script(s) with sf-pex-tools 0.1.0 (..\sf-pex-tools)
TestMaster.esm: 1 record(s)
note: the fragment scripts of 1 INFO record(s) can be read two ways; the full entry (as xEdit reads it) layout was used, the usual one for INFO: 02000801
Next: check the file, add anything else your mod relies on, then run drift snapshot (with sf-pex-tools, for the function checks).
Fixes
- A master's attached script on a master record your plugin overrides no longer counts as yours when the master's copy of the record already has it with the same quest and stage properties. A script your plugin adds to the record, one whose quest or stage property your plugin changes, or your mod's own copy of it, still counts.
- When a master that could hold that record isn't installed or can't be read, the script still counts as yours, as in 0.2.0, since init can't tell whose it is.
- A script of your mod that wasn't read because of the safety limit (5,000 scripts) still counts as yours, so its quest stages on an overridden master record are kept.
- The safety limit's
note:line counts only your mod's own unread scripts and says "at least". Before, it could count other mods' loose scripts. Past the limit, a loose script with no namespace that only your scripts' code reaches is counted only when it has code of its own (not all native). - The fragment count of a dialogue, package or scene record comes only from the flag bits that have a fragment (the low 2 for dialogue and scenes, the low 3 for packages), as xEdit reads it. A higher bit set by another tool no longer stops the rest of the record from being read.
Changes
- When a record's fragment scripts can be read two ways (an empty fragment script name, which Mutagen and xEdit lay out differently), init still uses the usual layout for that record type and now says so in one
note:line per record type (up to 20 FormIDs; the log lists them all). No record in the game's own plugins reads two ways. - In the game's Data folder, a loose script with no namespace that your scripts call is no longer read as your mod's when all its functions are native (the script of an SFSE plugin, whose code is in its DLL). The mods file doesn't change; only the script count and the
note:line do. - The
--verboselog says how each of these was decided.
Download
Download sf-patch-day-0.2.1.zip and its .sha256 file below, unzip it anywhere and follow the Install steps in the README. It needs Python 3.9 or newer and nothing else; sf-pex-tools 0.1.0 is optional.
SHA-256 of sf-patch-day-0.2.1.zip: 4056e213cb2a99112950093be03c2a3a7acf09950bb001c6ba043b3097858cf3