rimworld吧 关注:290,444贴子:5,321,846
  • 2回复贴,共1

问一下各位大佬,美狐MOD的一个红字报错,排查不出来是什么冲

只看楼主收藏回复


Error in Miho, the celestial fox, assembly name: ItemFormChange_Miho, method: CompFormChange:tryTransformInto, exception: System.MissingMethodException: Verse.Mote RimWorld.MoteMaker.MakeStaticMote(UnityEngine.Vector3,Verse.Map,Verse.ThingDef,single,bool)
[Ref 90DCB6F5]
at (wrapper managed-to-native) System.Reflection.Module.ResolveMethodToken(intptr,int,intptr[],intptr[],System.Reflection.ResolveTokenError&)
at System.Reflection.MonoModule.ResolveMethod (System.Int32 metadataToken, System.Type[] genericTypeArguments, System.Type[] genericMethodArguments) [0x00015] in <eae584ce26bc40229c1b1aa476bfa589>:0
at HarmonyLib.MethodBodyReader.ReadOperand (HarmonyLib.ILInstruction instruction) [0x00431] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.MethodBodyReader.GenerateInstructions () [0x00022] in <abec11463bc04855a5322a0a868aeb22>:0
at <0x27a851e4870 + 0x00152> <unknown method>
at HarmonyLib.MethodCopier.GetInstructions (System.Reflection.Emit.ILGenerator generator, System.Reflection.MethodBase method, System.Int32 maxTranspilers) [0x00024] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.PatchProcessor.GetOriginalInstructions (System.Reflection.MethodBase original, System.Reflection.Emit.ILGenerator generator) [0x0000b] in <abec11463bc04855a5322a0a868aeb22>:0
at ModErrorChecker.ModErrorChecker.CheckAssemblies () [0x000af] in <b72bf34db030437a89a93bf6e72b4d0c>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string)
ModErrorChecker.ModErrorChecker/<StartChecks>d__1:MoveNext ()
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:Run ()
System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation/<>c:<.cctor>b__7_0 (object)
UnityEngine.UnitySynchronizationContext/WorkRequest:Invoke ()
UnityEngine.UnitySynchronizationContext:Exec ()
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
具体错误报告是这样的,不敢确定是单纯的缺少前置还是和其他mod冲突了,给各位大佬递活力水


IP属地:广东1楼2024-08-03 23:47回复
    作者的问题,但这里的问题很奇怪,明明
    MoteMaker.MakeStaticMote(Vector3 loc, Map map, ThingDef moteDef, float scale = 1f, bool makeOffscreen = false, float exactRot = 0f)
    这个方法重载中的 exactRot 是有默认值的,理论上来说就算未传入该参数也应该可行。
    初步怀疑是作者那边在编译时发生了什么。


    IP属地:广西2楼2024-08-04 00:10
    收起回复