Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors causing certain events to trigger then immediately despawn #21

Open
alukard1001 opened this issue Aug 12, 2020 · 0 comments
Open

Comments

@alukard1001
Copy link

I receive this error with most events.
System.TypeInitializationException: The type initializer for 'Mehni.Misc.Modifications.HarmonyPatches' threw an exception. ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <567df3e0919241ba98db88bec4c6696f>:0
at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
at Mehni.Misc.Modifications.HarmonyPatches+<ForceExitTimeExtender_Transpiler>d__8.MoveNext () [0x00128] in :0
at System.Collections.Generic.List1[T]..ctor (System.Collections.Generic.IEnumerable1[T] collection) [0x00077] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x00018] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at HarmonyLib.CodeTranspiler.GetResult (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method) [0x00051] in <20181e2d55204880a56a9120ef04a53d>:0 at HarmonyLib.MethodBodyReader.FinalizeILCodes (HarmonyLib.Emitter emitter, System.Collections.Generic.List1[T] transpilers, System.Collections.Generic.List1[T] endLabels, System.Boolean& hasReturnCode) [0x0014a] in <20181e2d55204880a56a9120ef04a53d>:0 at HarmonyLib.MethodCopier.Finalize (HarmonyLib.Emitter emitter, System.Collections.Generic.List1[T] endLabels, System.Boolean& hasReturnCode) [0x00000] in <20181e2d55204880a56a9120ef04a53d>:0
at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x0020e] in <20181e2d55204880a56a9120ef04a53d>:0 at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00057] in <20181e2d55204880a56a9120ef04a53d>:0 at HarmonyLib.PatchProcessor.Patch () [0x000de] in <20181e2d55204880a56a9120ef04a53d>:0 at HarmonyLib.Harmony.Patch (System.Reflection.MethodBase original, HarmonyLib.HarmonyMethod prefix, HarmonyLib.HarmonyMethod postfix, HarmonyLib.HarmonyMethod transpiler, HarmonyLib.HarmonyMethod finalizer) [0x00028] in <20181e2d55204880a56a9120ef04a53d>:0 at Mehni.Misc.Modifications.HarmonyPatches..cctor () [0x00172] in <ebaaa38b75e54ed7a0753cb80bd09257>:0 --- End of inner exception stack trace --- at (wrapper dynamic-method) Verse.AI.Group.Lord.Verse.AI.Group.Lord.SetJob_Patch1(Verse.AI.Group.Lord,Verse.AI.Group.LordJob) at Verse.AI.Group.LordMaker.MakeNewLord (RimWorld.Faction faction, Verse.AI.Group.LordJob lordJob, Verse.Map map, System.Collections.Generic.IEnumerable1[T] startingPawns) [0x00039] in <7b345446a85d4ed599f9c604ae61854b>:0
at (wrapper dynamic-method) RimWorld.IncidentWorker_TraderCaravanArrival.RimWorld.IncidentWorker_TraderCaravanArrival.TryExecuteWorker_Patch0(RimWorld.IncidentWorker_TraderCaravanArrival,RimWorld.IncidentParms)
at RimWorld.IncidentWorker.TryExecute (RimWorld.IncidentParms parms) [0x0002b] in <7b345446a85d4ed599f9c604ae61854b>:0
at RimWorld.Storyteller.TryFire (RimWorld.FiringIncident fi) [0x00024] in <7b345446a85d4ed599f9c604ae61854b>:0
at RimWorld.Storyteller.StorytellerTick () [0x0003a] in <7b345446a85d4ed599f9c604ae61854b>:0
at Verse.TickManager.DoSingleTick () [0x00109] in <7b345446a85d4ed599f9c604ae61854b>:0
Verse.Log:Error(String, Boolean)
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()
Removing the mod cleared the issue. This was happening with traders and raids.
Sorry for the wall of text, thank you for making the mod in the first place and for correcting the issue above when you get around to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant