RimWorld

RimWorld

Preemptive Strike (Fork)
Bobdolemite Apr 16, 2020 @ 5:41pm
Red Liner Debug
Here is the full version of the two red liner errors I posted in the comments section *Note* I ran the game and did not notice any additional errors, though I have not yet done extensive testing:

Config error in PES_CombatFervor: Hediff with defName PES_CombatFervor has no description!
Verse.Log:Error(String, Boolean)
Verse.DefDatabase`1:ErrorCheckAllDefs()
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
Verse.GenGeneric:InvokeStaticMethodOnGenericType(Type, Type, String)
Verse.PlayDataLoader:DoPlayLoad()
Verse.PlayDataLoader:LoadAllPlayData(Boolean)
Verse.<>c:<Start>b__6_1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()

and

Config error in PES_CombatTiredness: Hediff with defName PES_CombatTiredness has no description!
Verse.Log:Error(String, Boolean)
Verse.DefDatabase`1:ErrorCheckAllDefs()
System.Reflection.MonoMethod:InternalInvoke(Object, Object[], Exception&)
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
System.Reflection.MethodBase:Invoke(Object, Object[])
Verse.GenGeneric:InvokeStaticMethodOnGenericType(Type, Type, String)
Verse.PlayDataLoader:DoPlayLoad()
Verse.PlayDataLoader:LoadAllPlayData(Boolean)
Verse.<>c:<Start>b__6_1()
Verse.LongEventHandler:RunEventFromAnotherThread(Action)
Verse.<>c:<UpdateCurrentAsynchronousEvent>b__27_0()
System.Threading.ThreadHelper:ThreadStart_Context(Object)
System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)
System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object)
System.Threading.ThreadHelper:ThreadStart()
< >
Showing 1-5 of 5 comments
g0jira Apr 22, 2020 @ 8:49am 
Could not execute post-long-event action. Exception: System.TypeInitializationException: The type initializer for 'PreemptiveStrike.Harmony.HarmonyMain' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: method
at HarmonyLib.HarmonyMethod..ctor (System.Reflection.MethodInfo method) [0x00016] in <2161c8330234450b8141397c32c11571>:0
at PreemptiveStrike.Harmony.Compatibility.RimQuest.DoPatch () [0x00034] in <54c79272311441b0a5867d8f4b36c01b>:0
at PreemptiveStrike.Harmony.Compatibility.OtherModPatchMain.ModCompatibilityPatches () [0x00012] in <54c79272311441b0a5867d8f4b36c01b>:0
at PreemptiveStrike.Harmony.HarmonyMain.ManualPatchings () [0x0003f] in <54c79272311441b0a5867d8f4b36c01b>:0
at PreemptiveStrike.Harmony.HarmonyMain..cctor () [0x0001e] in <54c79272311441b0a5867d8f4b36c01b>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <567df3e0919241ba98db88bec4c6696f>:0
at (wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility.DMD<DMD<CallAll_Patch1>?-1093199488::CallAll_Patch1>()
at Verse.PlayDataLoader+<>c.<DoPlayLoad>b__4_2 () [0x0000a] in <36108d57f84d49cabdae818c2a53fc38>:0
at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () [0x0007d] in <36108d57f84d49cabdae818c2a53fc38>:0
Verse.Log:Error(String, Boolean)
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:DMD<DMD<Update_Patch1>?-1234695552::Update_Patch1>(Root)
Verse.Root_Entry:Update()
Khan Apr 29, 2020 @ 10:02pm 
System.NullReferenceException: Object reference not set to an instance of an object
at VFESecurity.ArtilleryComp.get_ArtilleryProps () [0x00000] in <e4bce688bcaf499d9805cdfadd5978f3>:0
at VFESecurity.ArtilleryComp+<get_Targets>d__20.MoveNext () [0x00195] in <e4bce688bcaf499d9805cdfadd5978f3>:0
at System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00029] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable+<CastIterator>d__34`1[TResult].MoveNext () [0x0005f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Verse.GenCollection.TryRandomElementByWeight[T] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] weightSelector, T& result) [0x00186] in <032d0428bd3b4871b44e7cd832eb5c58>:0
at VFESecurity.ArtilleryComp.CompTick () [0x00082] in <e4bce688bcaf499d9805cdfadd5978f3>:0
at RimWorld.Planet.WorldObject.Tick () [0x00010] in <032d0428bd3b4871b44e7cd832eb5c58>:0
at RimWorld.Planet.MapParent.Tick () [0x00000] in <032d0428bd3b4871b44e7cd832eb5c58>:0
at RimWorld.Planet.Settlement.Tick () [0x00000] in <032d0428bd3b4871b44e7cd832eb5c58>:0
at RimWorld.Planet.WorldObjectsHolder.WorldObjectsHolderTick () [0x00029] in <032d0428bd3b4871b44e7cd832eb5c58>:0
at RimWorld.Planet.World.WorldTick () [0x00016] in <032d0428bd3b4871b44e7cd832eb5c58>:0
at Verse.TickManager.DoSingleTick () [0x000bb] in <032d0428bd3b4871b44e7cd832eb5c58>:0
Verse.Log:Error(String, Boolean)
Verse.TickManager:DoSingleTick()
Verse.TickManager:TickManagerUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()


BEen getting this error, any help?
Lt. Bob  [developer] May 2, 2020 @ 4:38pm 
@g0jira It looks like it's throwing the error in the RimQuest patch code. I wasn't aware RimQuest was updated to v1.1 yet so the code is untouched since v1.0. If RimQuest is updated, post a link to the v1.1 and I might be able to correct the error.

@Bombshell The error appears to be from Vanilla Furniture Expanded - Security's Artillery. When did the error pop up?
Warrior Of Love May 19, 2020 @ 9:55am 
So there is an unknown group of caravan on the world map that won't disappear and cause the errors.
System.NullReferenceException: Object reference not set to an instance of an object
at PreemptiveStrike.DetectionSystem.DetectDangerUtilities.DitectionOddsOfCaravan (PreemptiveStrike.IncidentCaravan.TravelingIncidentCaravan caravan, System.Single& odds) [0x00000] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.DetectionSystem.DetectDangerUtilities.TryDetectIncidentCaravan (PreemptiveStrike.IncidentCaravan.TravelingIncidentCaravan caravan) [0x00006] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.IncidentCaravan.TravelingIncidentCaravan.TileChangingAction () [0x0001a] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.IncidentCaravan.TravelingIncidentCaravan.TileChangingTick () [0x0008f] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.IncidentCaravan.TravelingIncidentCaravan.Tick () [0x000eb] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at RimWorld.Planet.WorldObjectsHolder.WorldObjectsHolderTick () [0x00029] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
at RimWorld.Planet.World.WorldTick () [0x00016] in <4489f1367c1c4d76b2ae1272c8ed691d>:0
at (wrapper dynamic-method) Verse.TickManager.DMD<DMD<DoSingleTick_Patch1>?-526357120::DoSingleTick_Patch1>(Verse.TickManager)

Could you help me to fix this?
Thank you!
skycrossercat May 28, 2020 @ 2:30am 
I am not sure what causing this and does it do harm to my save, but I always get the log on start up.

Error in static constructor of PreemptiveStrike.Harmony.HarmonyMain: System.TypeInitializationException: The type initializer for 'PreemptiveStrike.Harmony.HarmonyMain' threw an exception. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: method
at HarmonyLib.HarmonyMethod..ctor (System.Reflection.MethodInfo method) [0x00016] in <026284b8b4324a28a7825619702a3e16>:0
at PreemptiveStrike.Harmony.Compatibility.RimQuest.DoPatch () [0x00034] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.Harmony.Compatibility.OtherModPatchMain.ModCompatibilityPatches () [0x00012] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.Harmony.HarmonyMain.ManualPatchings () [0x0003f] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
at PreemptiveStrike.Harmony.HarmonyMain..cctor () [0x0001e] in <9f74919583d44d9888a8ee2d6f6e93e3>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at (wrapper dynamic-method) System.Runtime.CompilerServices.RuntimeHelpers.DMD<DMD<RunClassConstructor_Patch1>?337170432::RunClassConstructor_Patch1>(System.RuntimeTypeHandle)
at (wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility.DMD<DMD<CallAll_Patch2>?1184980736::CallAll_Patch2>()
Verse.Log:Error(String, Boolean)
Verse.StaticConstructorOnStartupUtility:DMD<DMD<CallAll_Patch2>?1184980736::CallAll_Patch2>()
Verse.<>c:<DoPlayLoad>b__4_2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:DMD<DMD<Update_Patch1>?1765490176::Update_Patch1>(Root)
Verse.Root_Entry:Update()


I put this mod in a pretty low order of my list because harmony stuff often conflict with each other.

full log: https://gist.github.com/81679cbf62eb19309a0a0989d114d5fa
< >
Showing 1-5 of 5 comments
Per page: 1530 50