Mutagen-Modding / Synthesis

A patcher pipeline framework and GUI. Run collections of code-based mods to create content customized for your load order
GNU General Public License v3.0
245 stars 18 forks source link

True Unleveled Skyrim throws ArgumentOutOfRangeException #456

Closed PinoyBloon closed 4 months ago

PinoyBloon commented 4 months ago
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim] System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'length')
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Skyrim.NpcBinaryOverlay.get_NAM5()
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Skyrim.NpcSetterTranslationCommon.DeepCopyIn(INpc item, INpcGetter rhs, ErrorMaskBuilder errorMask, TranslationCrystal copyMask, Boolean deepCopy)
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Skyrim.NpcSetterTranslationCommon.DeepCopy(INpcGetter item, TranslationMask copyMask)
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at TrueUnleveledSkyrim.Patch.NPCsPatcher.PatchNPCs(IPatcherState`2 state) in C:\Users\Admin\AppData\Local\Temp\Synthesis\z41m2est.i3d\Git\jl1djgzz.xtu\Runner\TrueUnleveledSkyrim\Patch\NPCs.cs:line 914
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at TrueUnleveledSkyrim.Patcher.RunPatch(IPatcherState`2 state) in C:\Users\Admin\AppData\Local\Temp\Synthesis\z41m2est.i3d\Git\jl1djgzz.xtu\Runner\TrueUnleveledSkyrim\Program.cs:line 46
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass16_0`2.<<AddPatch>b__0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 106
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim] --- End of stack trace from previous location ---
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, Nullable`1 exportKey, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 631
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass45_0.<<Run>b__0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 496
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim] --- End of stack trace from previous location ---
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Synthesis.SynthesisPipeline.HandleOnShutdown(Func`1 a) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 885
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 484
[53.8][Skyrim Special Edition][True-Unleveled-Skyrim]    at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass44_0.<<InternalRun>b__1>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 456
[53.8][True-Unleveled-Skyrim][Skyrim Special Edition] Error while running
[53.8][Skyrim Special Edition] Finished patcher run

Should i add arguments in the settings?

PinoyBloon commented 4 months ago

Everything.txt

Almost forgot, here's the complete log

Noggog commented 4 months ago

Hmm, looks like one of your NPCs has a NAM5 record that is unexpected. It believes it should be a two byte integer, and I'm guessing one of your records has it as either empty or less than 2 bytes. I think you can request as an issue on TUS that they add a RecordException.Enrich to help print more information about the specific record causing issues.

You might be able to narrow it down in the meantime by disabling/enabling mods to see which mod has the record in question

PinoyBloon commented 4 months ago

Thanks for the reply! I'll try to find the problematic record first, and then open an issue on TUS github

PinoyBloon commented 4 months ago

Okay, i found the culprit, it was Purist's Vanilla Patch, the plugin removed the NAM5 record from NPC HousecarlWindhelm.

PinoyBloon commented 4 months ago

TUS worked perfectly after i disabled it, thanks!