InjectFix icon indicating copy to clipboard operation
InjectFix copied to clipboard

InjectFix is a hot-fix solution library for Unity

Results 142 InjectFix issues
Sort by recently updated
recently updated
newest added

如果有 GetClassA() as ClassA 这种使用了 as 的函数,Inject 的时候就会报警告: Warning: not support il[IL_002a: ldtoken 并且修改这个函数做热更,加载的时候会报: System.Exception: can not load type [System.Object, netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] at IFix.Core.PatchManager.Load (System.IO.Stream stream, System.Boolean checkNew)...

文档中出现`XLua`命名空间的相关说法,可能不妥,是不是从那边拷贝过来改的?=。=

除了reimport the project! 还有其他办法吗? reimport 太耽误时间了

![image](https://user-images.githubusercontent.com/20750865/228176714-4c87e064-5d91-470d-ad6c-0429b9bbb6ee.png) ![image](https://user-images.githubusercontent.com/20750865/228177081-93eee614-5814-407f-97c0-c5c913755bd1.png) 执行完Inject之后,修改修复的代码,打上patch之后,执行fix,untiy崩溃

项目里分了几个dll,对这些dll的函数都进行了配置 在dll A里面对某方法 A进行ifix修复,方法 A里面声明了无参匿名函数,在dll B里面对某方法 B进行ifix修复,方法 B里面也声明了无参匿名函数 先游戏中先调用了方法A后再调用方法B会出现报错,反之也会出现,报错如下: 10:14:13.861 F02286 @T001 Fatal ArgumentException: method arguments are incompatible IFix.Core.VirtualMachine.Execute (IFix.Core.Instruction* pc, IFix.Core.Value* argumentBase, System.Object[] managedStack, IFix.Core.Value* evaluationStackBase, System.Int32 argsCount, System.Int32...

如图,PC 模拟注入提示这个错误,不知道有没有 好的解决方案· ~

求解~ https://github.com/Tencent/InjectFix/issues/73 报错如下 ![image](https://user-images.githubusercontent.com/45382763/212818248-5807c8b5-6e77-4a13-a4e3-69a6390fd43f.png) Task :SDKBase:BuildIl2CppTask 13:26:04 Error: Unity.IL2CPP.Building.BuilderFailedException: E:\soccer_client_3\test\origin\ChenPeng_MemoryCheck\common\AndroidBuildNewSoccer\SDKBase\src\main\Il2CppOutputProject\Source\il2cppOutput\Main58.cpp:27498:3: error: no matching function for call to 'GalaAsyncTaskMethodBuilder_AwaitUnsafeOnCompleted_TisAwaiter_t324092681EA4B076C35FD4BE2F22CF22A314F7D4_TisILFixInterfaceBridge_t2EB90D1DA98BDBAECE78AF0E1D7764F6072F5E29_mA782CF323F5BA44A06609BAD9C928874352BA3E6' 13:26:04 GalaAsyncTaskMethodBuilder_AwaitUnsafeOnCompleted_TisAwaiter_t324092681EA4B076C35FD4BE2F22CF22A314F7D4_TisILFixInterfaceBridge_t2EB90D1DA98BDBAECE78AF0E1D7764F6072F5E29_mA782CF323F5BA44A06609BAD9C928874352BA3E6((&V_44), (Awaiter_t324092681EA4B076C35FD4BE2F22CF22A314F7D4 *)(&V_43), (ILFixInterfaceBridge_t2EB90D1DA98BDBAECE78AF0E1D7764F6072F5E29 **)(&V_0), /*hidden argument*/GalaAsyncTaskMethodBuilder_AwaitUnsafeOnCompleted_TisAwaiter_t324092681EA4B076C35FD4BE2F22CF22A314F7D4_TisILFixInterfaceBridge_t2EB90D1DA98BDBAECE78AF0E1D7764F6072F5E29_mA782CF323F5BA44A06609BAD9C928874352BA3E6_RuntimeMethod_var); 因为使用了ILRuntime,这个是#73的问题不一样,和“in”无关。。

I am using Newtonsoft.Json and when i patched the method and casting JToken object to integer its always return 1 code [Patch] void ConvertToInt(){ JToken num = 500; Debug.Log((int)num) //...

嘗試了目前版本接入CustomBridge只會顯示無法使用Interpret繼承Interface實現新Class 項目最後更新已經是7個月前的事情 問題看起來已經好陣子沒有再回覆 是否已經將相關資源轉往PureTS ?