RimWorld

RimWorld

Rimsenal - Core
Rehvenant 18 Dec, 2019 @ 5:24pm
System.TypeInitializationException Crash during World Gen
While I am not exactly sure whether it is Rimsenal or Ammunition causing this, but removing Rimsenal happened to fix it and was wondering what this error means and if there is another way to fix it? Messed around with load order and put Rimsenal above Ammunition and got the same thing. Any help is much appreciated cause I really want to play with this mod without removing anything. If it helps I am using the Collection of mods on here called Immersion+.

Note: It also crashes sometimes during end phase of initialization on game startup, so it truly has me clueless as to what is happening.

Could not execute post-long-event action. Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Ammunition.HarmonyAmmunition ---> System.NullReferenceException: Object reference not set to an instance of an object
at Ammunition.Utility.WeaponTranslationCheck (Verse.ThingDef weapon) [0x00000] in <filename unknown>:0
at Ammunition.Utility.AddWeaponAssociation (Verse.ThingDef weapon) [0x00000] in <filename unknown>:0
at Ammunition.Utility.CheckWeaponAssociation () [0x00000] in <filename unknown>:0
at Ammunition.HarmonyAmmunition..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (intptr) <0x00065>
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle) <0x00047>
at StartupImpact.Patch.StaticConstructorOnStartupUtilityCallAll.Prefix () <0x00152>
at (wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility.CallAll_Patch2 () <0x00021>
at Verse.PlayDataLoader.<DoPlayLoad>m__2 () <0x00032>
at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () <0x001c3>
Last edited by Rehvenant; 18 Dec, 2019 @ 5:30pm