RimWorld

RimWorld

Combat Extended [1.4]
AmekiKyou 29 Jul, 2021 @ 6:56am
Can't start the game, will get NPE and should be related with combat extended
```Error in static constructor of CombatExtended.LoadoutGenericDef: System.TypeInitializationException: The type initializer for 'CombatExtended.LoadoutGenericDef' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.StatPart_BodySize+<>c.<TryGetBodySize>b__2_1 (Verse.ThingDef x) [0x00000] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.PawnOrCorpseStatUtility.TryGetPawnOrCorpseStat (RimWorld.StatRequest req, System.Func`2[T,TResult] pawnStatGetter, System.Func`2[T,TResult] pawnDefStatGetter, System.Single& stat) [0x00070] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.StatPart_BodySize.TryGetBodySize (RimWorld.StatRequest req, System.Single& bodySize) [0x00000] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.StatPart_BodySize.TransformValue (RimWorld.StatRequest req, System.Single& val) [0x00000] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.StatWorker.FinalizeValue (RimWorld.StatRequest req, System.Single& val, System.Boolean applyPostProcess) [0x00022] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest req, System.Boolean applyPostProcess) [0x0004b] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.StatWorker.GetValueAbstract (Verse.BuildableDef def, Verse.ThingDef stuffDef) [0x00009] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.StatExtension.GetStatValueAbstract (Verse.BuildableDef def, RimWorld.StatDef stat, Verse.ThingDef stuff) [0x00006] in <c9dba226d8de460c86a9518faa82e725>:0
at RimWorld.IngestibleProperties.get_CachedNutrition () [0x0000d] in <c9dba226d8de460c86a9518faa82e725>:0
at Verse.ThingDef.get_IsNutritionGivingIngestible () [0x00008] in <c9dba226d8de460c86a9518faa82e725>:0
at CombatExtended.LoadoutGenericDef+<>c.<.cctor>b__8_1 (Verse.ThingDef td) [0x00000] in <21d7311e10974876b99d6ca701e1bf7f>:0
at CombatExtended.LoadoutGenericDef+<>c__DisplayClass8_0.<.cctor>b__2 (Verse.ThingDef td) [0x0000b] in <21d7311e10974876b99d6ca701e1bf7f>:0
at System.Linq.Enumerable+WhereListIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Linq.Enumerable.Average[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] selector) [0x00059] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at CombatExtended.LoadoutGenericDef..cctor () [0x00117] in <21d7311e10974876b99d6ca701e1bf7f>: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 <eae584ce26bc40229c1b1aa476bfa589>:0
at (wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility.Verse.StaticConstructorOnStartupUtility.CallAll_Patch1()
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)```