panthuncia / CACO_Patcher

GNU General Public License v3.0
0 stars 1 forks source link

Patcher crashes #2

Open aJrenalin opened 1 year ago

aJrenalin commented 1 year ago

for whatever reason this patcher crashes for me. I get the following error:

RecordException => MAG_FrostDamageFFHazardArea (0B79FE:Skyrim.esm): Specified argument was out of the range of valid values. (Parameter 'length') System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'length') at Mutagen.Bethesda.Skyrim.MagicEffectBinaryOverlay.<>c.b285_1(ReadOnlyMemorySlice1 s, BinaryOverlayFactoryPackage p) at Mutagen.Bethesda.Plugins.Binary.Overlay.BinaryOverlayList.BinaryOverlayListByStartIndex1.GetEnumerator()+MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at Noggog.EnumerableExt.ToExtendedList[T](IEnumerable1 e) in D:\a\CSharpExt\CSharpExt\Noggog.CSharpExt\Extensions\EnumerableExt.cs:line 272 at Mutagen.Bethesda.Skyrim.MagicEffectSetterTranslationCommon.DeepCopyIn(IMagicEffect item, IMagicEffectGetter rhs, ErrorMaskBuilder errorMask, TranslationCrystal copyMask, Boolean deepCopy) at Mutagen.Bethesda.Skyrim.MagicEffectSetterTranslationCommon.DeepCopyIn(IMajorRecord item, IMajorRecordGetter rhs, ErrorMaskBuilder errorMask, TranslationCrystal copyMask, Boolean deepCopy) at Mutagen.Bethesda.Skyrim.SkyrimMajorRecordSetterTranslationCommon.DeepCopyIn(ISkyrimMajorRecordInternal item, ISkyrimMajorRecordGetter rhs, ErrorMaskBuilder errorMask, TranslationCrystal copyMask, Boolean deepCopy) at Mutagen.Bethesda.Skyrim.MagicEffectSetterTranslationCommon.DeepCopyIn(IMagicEffectInternal item, IMagicEffectGetter rhs, ErrorMaskBuilder errorMask, TranslationCrystal copyMask, Boolean deepCopy) at Mutagen.Bethesda.Skyrim.MagicEffectSetterTranslationCommon.DeepCopyIn(IMajorRecordInternal item, IMajorRecordGetter rhs, ErrorMaskBuilder errorMask, TranslationCrystal copyMask, Boolean deepCopy) at Mutagen.Bethesda.Plugins.Records.MajorRecordSetterTranslationCommon.DeepCopy(IMajorRecordGetter item, TranslationMask copyMask) at Mutagen.Bethesda.OverrideMixIns.GetOrAddAsOverride[TMajor,TMajorGetter](IGroup1 group, TMajorGetter major) at Mutagen.Bethesda.OverrideMixIns.GetOrAddAsOverride[TMajor,TMajorGetter](IGroup1 group, TMajorGetter major) at CACO_Patcher.Program.patchMagicEffects(IPatcherState2 state, List1 modNames, List1 mods) in C:\Users\User-PC\AppData\Local\Temp\Synthesis\96432700-7ec0-4afa-88b4-8b05354bb2a8\Git\f0tx5dwj.ozk\Runner\CACO_Patcher\Program.cs:line 558 at CACO_Patcher.Program.RunPatch(IPatcherState2 state) in C:\Users\User-PC\AppData\Local\Temp\Synthesis\96432700-7ec0-4afa-88b4-8b05354bb2a8\Git\f0tx5dwj.ozk\Runner\CACO_Patcher\Program.cs:line 97 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass15_0`2.<b0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 103 --- End of stack trace from previous location --- at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, Nullable1 exportKey, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 607 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass43_0.<<Run>b__0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 472 --- End of stack trace from previous location --- at Mutagen.Bethesda.Synthesis.SynthesisPipeline.HandleOnShutdown(Func1 a) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 833 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 460 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass42_0.<b__1>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 432

aJrenalin commented 1 year ago

since the record exception was a magic effect I used the settings to disable patching of magic effects but now I get this error:

System.InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.Collections.Generic.List1.Enumerator.MoveNextRare() at Noggog.ListExt.SetTo[T](IList1 list, IEnumerable1 items, Boolean checkEquality) in D:\a\CSharpExt\CSharpExt\Noggog.CSharpExt\Extensions\ListExt.cs:line 195 at CACO_Patcher.Program.patchNpcs(IPatcherState2 state, List1 modNames, List1 mods) in C:\Users\User-PC\AppData\Local\Temp\Synthesis\96432700-7ec0-4afa-88b4-8b05354bb2a8\Git\f0tx5dwj.ozk\Runner\CACO_Patcher\Program.cs:line 685 at CACO_Patcher.Program.RunPatch(IPatcherState2 state) in C:\Users\User-PC\AppData\Local\Temp\Synthesis\96432700-7ec0-4afa-88b4-8b05354bb2a8\Git\f0tx5dwj.ozk\Runner\CACO_Patcher\Program.cs:line 103 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass15_02.<b0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 103 --- End of stack trace from previous location --- 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 607 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>cDisplayClass43_0.<b0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 472 --- End of stack trace from previous location --- at Mutagen.Bethesda.Synthesis.SynthesisPipeline.HandleOnShutdown(Func`1 a) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 833 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 460 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>cDisplayClass42_0.<b__1>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\Pipeline\SynthesisPipeline.cs:line 432

aJrenalin commented 1 year ago

seems to only work when I've disabled both the patching of NPCs and Magic effects