Repository navigation
What's new
This release fixes bugs found in review and makes several mistakes stop with a message that names the cause. The API names and signatures are the same, so a builder that compiled against 0.6.2 compiles against 0.6.3. Two behaviors changed. First, new GameData(dataDir, extraDirs) now throws DirectoryNotFoundException for an extra folder that doesn't exist, where 0.6.2 skipped it quietly, and an entry that is null, empty or only spaces now throws ArgumentException. If you pass an optional folder, pass it only when it exists (for example extraDirs.Where(Directory.Exists), which also leaves out blank entries). Second, a plugin that Open or TryOpen can't read now throws InvalidDataException naming the file, where 0.6.2 let Mutagen's own exception through (for example its malformed-data exception, or the one for a plugin flagged both light and medium). Mutagen's exception is the InnerException. A builder that catches Mutagen's exceptions around Open or TryOpen to skip a damaged plugin should also catch InvalidDataException there. Keep catching Mutagen's exceptions where records are read: Mutagen reads a plugin's records only when they are used, so damage inside a record still raises Mutagen's own exception later (for example from EditorIds, LinkCache or a record lookup).
IdLocknow removes the original of a movedWeaponModification(and any other record that shares its group with a subtype). Before, the original stayed beside its copy, so two records shared an ID.- The gap check now gets every extra masters folder, so a build with masters in two extra folders no longer throws after the plugin is written.
FixSubtypeNamesleaves a Subtype that Mutagen doesn't name blank and counts it unmatched, instead of writing a bare number.- A missing extra folder now throws with its name.
Opennames a master whose own master is missing, and the folders it searched. QuestFragments.Applychecks that the objective and the next stage named byShowObjective,CompleteObjectiveandSetStageexist. Atext:function that returns null for an option or group name now throws.- A damaged lock file or plugin now gives a message that names the file. A plugin whose header is cut short now throws
InvalidDataExceptionfromGameData.HeaderMastersandOpen, where 0.6.2 let anEndOfStreamExceptionthrough;InvalidDataExceptionis not anIOException, so a builder that skips unreadable plugins should catch both. A lock file whose keys differ only in case (a hand-merged file) is refused with both keys named, instead of being merged quietly, and a lock value that isn't a hex number is refused with its EditorID and value named. Names read from a plugin or a lock file are printed with control and format characters escaped. - A
text:function that returns null for a name no longer leaves a half-made option or group in the plugin. - The README now says to run
IdLock.ApplybeforeQuests.Fragments, explains howsf-mod-buildcompiles a quest's fragment script and the order in which the gap check searches for masters, and has a "Known limits" section. AGENTS.md shows both forms of the default-value line with its font tag. - The tests now include the shared test sets for out paths, damaged inputs, damaged plugins and paths and programs.
Example
A quest MM_Errand whose fragment sets stage 20, which the quest doesn't have, used to write a broken quest without a message. It now stops:
InvalidOperationException: MM_Errand has no stage 20 (set by the fragment of stage 10): add it with Quests.Stage first.
A lock file that holds null now stops with ids.lock.json is not a valid ID lock file (a JSON object of EditorID to hex ID): ....
Check each download against its .sha256 file.