erdelf / AlienRaces

Rimworld mod alien race framework
MIT License
103 stars 69 forks source link

Parameter "backstoryCategory" not found in method TryGetRandomUnusedSolidBioFor #9

Closed TheNDGhost closed 6 years ago

TheNDGhost commented 6 years ago

I'm having issues with the 1.0 pre-release where I can't start a scenario at the moment. This is the error thrown on game launch, hope this is helpful:

RimWorld 0.19.1998 rev630 Verse.Log:Message(String, Boolean) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:49) RimWorld.VersionControl:LogVersionNumber() (at C:\Dev\RimWorld\Assets\Scripts\RimWorld\Utility\Version\VersionControl.cs:83) Verse.Root:CheckGlobalInit() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root.cs:82) Verse.Root:Start() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root.cs:38) Verse.Root_Entry:Start() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root_Entry.cs:16)

Could not execute post-long-event action. 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.Exception: Parameter "backstoryCategory" not found in method RimWorld.PawnBioAndNameGenerator.TryGetRandomUnusedSolidBioFor(System.Collections.Generic.List1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], Verse.PawnKindDef, Verse.Gender, System.String) at Harmony.MethodPatcher.EmitCallParameter (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary2 variables, Boolean allowFirsParamPassthrough) [0x00000] in :0 at Harmony.MethodPatcher+<>c__DisplayClass19_0.b1 (System.Reflection.MethodInfo fix) [0x00000] in :0 at Harmony.CollectionExtensions.Do[MethodInfo] (IEnumerable1 sequence, System.Action1 action) [0x00000] in :0 at Harmony.MethodPatcher.AddPostfixes (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Collections.Generic.List1 postfixes, System.Collections.Generic.Dictionary2 variables, Boolean passthroughPatches) [0x00000] in :0 at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1 prefixes, System.Collections.Generic.List1 postfixes, System.Collections.Generic.List1 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.List1 prefixes, System.Collections.Generic.List1 postfixes, System.Collections.Generic.List1 transpilers) [0x00000] in :0 at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00000] in :0 at Harmony.PatchProcessor.Patch () [0x00000] in :0 at Harmony.HarmonyInstance.Patch (System.Reflection.MethodBase original, Harmony.HarmonyMethod prefix, Harmony.HarmonyMethod postfix, Harmony.HarmonyMethod transpiler) [0x00000] in :0 at AlienRace.HarmonyPatches..cctor () [0x00000] in :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.m2 () [0x00001] in C:\Dev\RimWorld\Assets\Scripts\Verse\Defs\Databases\PlayDataLoader.cs:280 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.LongEventHandler:ExecuteToExecuteWhenFinished() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:493) Verse.LongEventHandler:UpdateCurrentAsynchronousEvent() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:402) Verse.LongEventHandler:LongEventsUpdate(Boolean&) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\LongEventHandler.cs:257) Verse.Root:Update() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root.cs:102) Verse.Root_Entry:Update() (at C:\Dev\RimWorld\Assets\Scripts\Verse\Global\Root\Root_Entry.cs:38)

skylorbeck commented 6 years ago

I started getting this error today as well, except mine comes up when I try to load the game.

ghost commented 6 years ago

Same here

erdelf commented 6 years ago

Thanks for the notification.