边缘世界 RimWorld

边缘世界 RimWorld

MultiConstruction
Bugs
I'm getting error on the start. (but I use 400+ mods)

Error in static constructor of MultiConstruct.Bootstrap: System.TypeInitializationException: The type initializer for 'MultiConstruct.Bootstrap' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method System.Void RimWorld.Frame::CompleteConstruction(Verse.Pawn worker) ---> System.Exception: Cannot get result from void method System.Void RimWorld.Frame::CompleteConstruction(Verse.Pawn worker)
[Ref DF90543B]
at HarmonyLib.MethodPatcher.EmitCallParameter (System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary`2[TKey,TValue] variables, System.Reflection.Emit.LocalBuilder runOriginalVariable, System.Boolean allowFirsParamPassthrough, System.Reflection.Emit.LocalBuilder& tmpInstanceBoxingVar, System.Reflection.Emit.LocalBuilder& tmpObjectVar, System.Boolean& refResultUsed, System.Collections.Generic.List`1[T] tmpBoxVars) [0x00516] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodPatcher+<>c__DisplayClass39_0.<AddPostfixes>b__1 (System.Reflection.MethodInfo fix) [0x00006] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodPatcher.AddPostfixes (System.Collections.Generic.Dictionary`2[TKey,TValue] variables, System.Reflection.Emit.LocalBuilder runOriginalVariable, System.Boolean passthroughPatches) [0x00040] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.MethodPatcher.CreateReplacement (System.Collections.Generic.Dictionary`2[System.Int32,HarmonyLib.CodeInstruction]& finalInstructions) [0x003e6] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00059] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <8124cc12bdf242eab0a5f7e7edecf387>:0
--- End of inner exception stack trace ---
[Ref 22F74E10]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <8124cc12bdf242eab0a5f7e7edecf387>:0
at HarmonyLib.Harmony.PatchAll () [0x0001d] in <8124cc12bdf242eab0a5f7e7edecf387>:0
MultiConstruct.Bootstrap..cctor()
--- End of inner exception stack trace ---
[Ref 69DBDBDB]
(wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <24d25868955f4df08b02c73b55f389fe>:0
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX net.avilmask.rimworld.mod.ResearchWhatever: Void ResearchWhatever.StaticConstructorOnStartupUtility_Patch+StaticConstructorOnStartupUtility_CallAll_ResearchWhateverPatch:Postfix()
[Prepatcher, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.UnityEngine.StackTraceUtility.ExtractStackTrace_Patch1()
[Prepatcher, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.Log.Error_Patch2(System.String)
[Prepatcher, 0Harmony.dll] MonoMod.Utils.DynamicMethodDefinition.Verse.StaticConstructorOnStartupUtility.CallAll_Patch2()
[Core, Assembly-CSharp.dll] Verse.PlayDataLoader+<>c.<DoPlayLoad>b__4_4()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.ExecuteToExecuteWhenFinished()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.UpdateCurrentAsynchronousEvent()
[Core, Assembly-CSharp.dll] Verse.LongEventHandler.LongEventsUpdate(System.Boolean& sceneChanged)
[Core, Assembly-CSharp.dll] Verse.Root.Update()
[Core, Assembly-CSharp.dll] Verse.Root_Entry.Update()
< >
正在显示第 1 - 6 条,共 6 条留言
got similar one from above post ^
Kenzej  [开发者] 9 月 5 日 下午 7:20 
Try the new patch please and let me know how it goes, thanks for the report!
qux 9 月 6 日 上午 7:02 
Error in static constructor of MultiConstruct.Bootstrap: System.TypeInitializationException: The type initializer for 'MultiConstruct.Bootstrap' threw an exception. ---> HarmonyLib.HarmonyException: Ambiguous match for HarmonyMethod[(class=RimWorld.StatWorker, methodname=GetValue, type=Normal, args=undefined)] ---> System.Reflection.AmbiguousMatchException: Ambiguous match found.
[Ref E7DD75BD]
at System.RuntimeType.GetMethodImplCommon (System.String name, System.Int32 genericParameterCount, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00050] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.RuntimeType.GetMethodImpl (System.String name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConv, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) [0x00000] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Type.GetMethod (System.String name, System.Reflection.BindingFlags bindingAttr) [0x0000e] in <51fded79cd284d4d911c5949aff4cb21>:0
at HarmonyLib.AccessTools.DeclaredMethod (System.Type type, System.String name, System.Type[] parameters, System.Type[] generics) [0x0002d] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.PatchTools.GetOriginalMethod (HarmonyLib.HarmonyMethod attr) [0x000d1] in <e53399289d9b419d83f9f5b02c5cf609>:0
--- End of inner exception stack trace ---
[Ref 1D488EA8]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x00096] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.Harmony.<PatchAll>b__10_1 (System.Type type) [0x00007] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.CollectionExtensions.DoIf[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Func`2[T,TResult] condition, System.Action`1[T] action) [0x00007] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <e53399289d9b419d83f9f5b02c5cf609>:0
at HarmonyLib.Harmony.PatchAll () [0x0001d] in <e53399289d9b419d83f9f5b02c5cf609>:0
MultiConstruct.Bootstrap..cctor()
--- End of inner exception stack trace ---
[Ref BABB2329]
(wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <51fded79cd284d4d911c5949aff4cb21>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00025] in <24d25868955f4df08b02c73b55f389fe>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.StaticConstructorOnStartupUtility:CallAll ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()


Logs : https://gist.github.com/HugsLibRecordKeeper/95b1b40860ee49141ccaa555f24d11ff
Kenzej  [开发者] 9 月 6 日 上午 8:31 
Just made a new patch, please give it a go and let me know how it looks for you
qux 9 月 6 日 上午 9:32 
Seems ok thanks
Kenzej  [开发者] 9 月 6 日 下午 1:20 
Awesome, let me know if any new problems occur
< >
正在显示第 1 - 6 条,共 6 条留言
每页显示数: 1530 50