RimWorld

RimWorld

Humanoid Alien Races
This topic has been locked
Syrchalis 10 Jul, 2018 @ 2:01pm
Bugs
The 1.0 version has this error since the new build today (1.0.1960) - probably related to "permanentInjuryBaseChance" being replaced/changed to "permanentInjuryChanceFactor" - not sure though.

Error while generating pawn. Rethrowing. Exception: System.TypeInitializationException: An exception was thrown by the type initializer for AlienRace.HarmonyPatches ---> System.Exception: Exception from HarmonyInstance "rimworld.erdelf.alien_race.main" ---> System.MissingFieldException: Field 'Verse.BodyPartDef.permanentInjuryBaseChance' not found.
at (wrapper managed-to-native) System.Reflection.Module:ResolveFieldToken (intptr,int,intptr[],intptr[],System.Reflection.ResolveTokenError&)
at System.Reflection.Module.ResolveField (Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Module.cs:353
at Harmony.ILCopying.MethodBodyReader.ReadOperand (Harmony.ILCopying.ILInstruction instruction) [0x00000] in <filename unknown>:0
at Harmony.ILCopying.MethodBodyReader.ReadInstructions () [0x00000] in <filename unknown>:0
at Harmony.ILCopying.MethodCopier..ctor (System.Reflection.MethodBase fromMethod, System.Reflection.Emit.ILGenerator toILGenerator, System.Reflection.Emit.LocalBuilder[] existingVariables) [0x00000] in <filename unknown>:0
at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List`1 prefixes, System.Collections.Generic.List`1 postfixes, System.Collections.Generic.List`1 transpilers) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List`1 prefixes, System.Collections.Generic.List`1 postfixes, System.Collections.Generic.List`1 transpilers) [0x00000] in <filename unknown>:0
at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00000] in <filename unknown>:0
at Harmony.PatchProcessor.Patch () [0x00000] in <filename unknown>:0
at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in <filename unknown>:0
at AlienRace.HarmonyPatches..cctor () [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (RuntimeTypeHandle type) [0x00026] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs:101
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00022] in C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\StaticConstructorOnStartup.cs:26
at Verse.PlayDataLoader.<DoPlayLoad>m__2 () [0x00001] in C:\Dev\RimWorld\Assets\Scripts\Verse\Defs\Databases\PlayDataLoader.cs:278
at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () [0x00036] in C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:489
Verse.Log:Error(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:78)
Verse.PawnGenerator:GeneratePawn(PawnGenerationRequest) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Pawn\PawnGenerator\PawnGenerators.cs:92)
Verse.PawnGenerator:GeneratePawn(PawnKindDef, Faction) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Pawn\PawnGenerator\PawnGenerators.cs:54)
RimWorld.Faction:GenerateNewLeader() (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Planet\Faction\Faction.cs:902)
RimWorld.FactionGenerator:NewGeneratedFaction(FactionDef) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Planet\Faction\FactionGenerator.cs:130)
RimWorld.FactionGenerator:GenerateFactionsIntoWorld() (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Planet\Faction\FactionGenerator.cs:25)
RimWorld.Planet.WorldGenStep_Factions:GenerateFresh(String) (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Planet\WorldGen\WorldGenSteps\WorldGenStep_Factions.cs:15)
RimWorld.Planet.WorldGenerator:GenerateWorld_Patch2(Single, String, OverallRainfall, OverallTemperature)
RimWorld.Page_CreateWorldParams:<CanDoNext>m__0() (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\UI\Entry\Page_CreateWorldParams.cs:178)
Verse.LongEventHandler:RunEventFromAnotherThread(Action) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:455)
Verse.LongEventHandler:<UpdateCurrentAsynchronousEvent>m__1() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:367)
< >
Showing 1-1 of 1 comments
erdelf  [developer] 11 Jul, 2018 @ 3:33am 
prepare carefully at fault, answered in pm.
< >
Showing 1-1 of 1 comments
Per page: 1530 50