xLua icon indicating copy to clipboard operation
xLua copied to clipboard

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.

Results 194 xLua issues
Sort by recently updated
recently updated
newest added

项目之前是手机版本的,现在想做主机版本(PlayStation5),请问XLua是否支持?

1. 保存到lua提供的extra space(推荐) lua源码定义 ```c /* ** thread state + extra space */ typedef struct LX { lu_byte extra_[LUA_EXTRASPACE]; lua_State l; } LX; /* ** Main thread combines a thread...

lua函数调用添加以Dictionary 作为传递局部表参数

请问下Unity2019下直接就是.NET 4.X Equivalent,无法切换回.NET 3.5 Equivalent,直接导致无法调试和定位代码。 有没有高手指点指点? 感激不尽! ![image](https://user-images.githubusercontent.com/36831986/86915528-b2d5ef80-c154-11ea-9596-6125f88ca61f.png) ![image](https://user-images.githubusercontent.com/36831986/86915635-de58da00-c154-11ea-9b45-db01ad22f8d1.png)

重现环境:Unity版本2020.3.37f1,Xlua版本2.1.16,编译设置:IL2CPP .NET Standard 2.0 重现步骤: 1. 创建C#类型Game.A.B.C.Main随便实现一些静态方法 2. 创建C#类型Proto.SomeClass并在其中定义一个内部类型Game 3. 在Lua代码中调用CS.Game.A.B.C.Main.XXX 4. 在PC上运行正常,编译为Android后,报错 修复方案:将StaticLuaCallbacks.ImportType方法中代码“if (type!=null)”修改为"if (type!=null && type.FullName == className) 复现项目: [XLuaBug.zip](https://github.com/Tencent/xLua/files/9235385/XLuaBug.zip)

use m1 mac download unity(2021.3.1f1c1 SILICON) when I run my project, occur this error DllNotFoundException: xlua assembly

1. Hotfix.cs中fixBranch短格式跳转指令偏移计算与Mono.Ceil不一样,当刚好处于边界值时,会导致注入的函数运行时IL报错(超出sbyte范围) 2. 修改短格式指令会导致前后其他短格式相对偏移量加大,需要再次遍历并修改 **修改前** ```cs void fixBranch(ILProcessor processor, Mono.Collections.Generic.Collection instructions, Dictionary originToNewTarget, HashSet noCheck) { foreach(var instruction in instructions) { Instruction target = instruction.Operand as Instruction; if (target !=...

app_process64.0x4cb8(Native Method) [vdso].__kernel_rt_sigreturn(__kernel_rt_sigreturn:0) libxlua.luaH_getshortstr(luaH_getshortstr:88) libxlua.luaH_get(luaH_get:164) libxlua.luaV_execute(luaV_execute:908) libxlua.luaD_call(luaD_call:88) libxlua.luaD_callnoyield(luaD_callnoyield:56) libxlua.f_call(f_call:48) libxlua.luaD_rawrunprotected(luaD_rawrunprotected:124) libxlua.luaD_pcall(luaD_pcall:104) libxlua.lua_pcallk(lua_pcallk:232) libxlua.lua_pcall(lua_pcall:56) libil2cpp.0x3f4f468(Native Method) libil2cpp.0x347f96c(Native Method) libil2cpp.0x347fea0(Native Method) libil2cpp.0x317ce80(Native Method) libil2cpp.0x27b5f10(Native Method) libil2cpp.0x2e75ec4(Native Method) libil2cpp.0x2e7848c(Native Method) libil2cpp.0x2f68790(Native Method) libil2cpp.0x37abd04(Native...

在执行make_android_lua53.bat的时候报错。 mkdir build_v7a,执行完这一局后,继续生成v7a的so文件, C:/Work/proj/k_watcher/android-ndk-r10e-windows-x86_64/platforms/android-9 CMake Error at cmake/android.windows.toolchain.cmake:274 (message): Invalid Android platform: android-9. Call Stack (most recent call first): C:/Users/Administrator/AppData/Local/Android/Sdk/cmake/3.6.4111459/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:98 (include) CMakeLists.txt:17 (project) CMakeList.txt:17 是 Project( XLUA )这一句。我的NDK是r10e,SDK路径是安卓Studio上拷贝过来的,也是正确的。这个报错怎么解决呢?

## 1.环境 xlua 版本 v2.1.15 Editor 2021.3.3f1c1 ## 2.复现步骤 * a.新建一个测试类 ``` namespace TestIn { public static class InClass { public static void InMethod(in string name) { } } }...