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 221 xLua issues
Sort by recently updated
recently updated
newest added

``` [LuaCallCSharp] public class Data { public static int Query(IntPtr L) { // ... return 1; } } ``` 这个会被生成为 ``` System.IntPtr _L = LuaAPI.lua_touserdata(L, 1); var gen_ret = Data.Query(...

案例我提交到这里了 https://github.com/oOtroyOo/TestConsoleLua 代码很简单只有几行,运行效果是这样, ![image](https://github.com/user-attachments/assets/860fa6ea-83ef-4133-9cb4-e4f6db860933) 项目设定了 XLUA_GENERAL,net48, 其中XLua部分核心代码完全引用的仓库,未经修改,引用了以下目录 ``` ..\xLua\Assets\XLua\Src ..\xLua\Assets\Plugins\x86_64\xlua.dll ``` 如果说是读文件产生乱码了,我可以尝试改一下文件编码。 但是,实际上即使是内部执行的代码也会出现了乱码,这就令人感到奇怪了。 不知道是bug,还是运行环境设定上有什么问题。

我用的时2019.4.1f1版本的unity vs是2022和2017的版本 参照了你们提供的和网上的导入方法 但是这个错误消除不了 我自己也没用过这玩意 不知道要咋搞 请问这个要怎么解决啊 ![3](https://github.com/user-attachments/assets/6ed710f4-e845-40d5-b75f-97b0a7203efc) ![1](https://github.com/user-attachments/assets/b2e80d22-b9cf-43d4-b2bd-367be00d1acf) ![2](https://github.com/user-attachments/assets/af441e31-0403-45aa-8b78-113fdafd5b74)

arm64-v8a可以编译成功, x86和v7a失败. 下边是v7a失败的log. Building armv7 lib /Applications/Xcode.app/Contents/Developer/usr/bin/make -C src clean rm -f luajit libluajit.a libluajit.so host/minilua host/buildvm lj_vm.S lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h host/buildvm_arch.h jit/vmdef.lua *.o host/*.o *.obj *.lib *.exp...

lmathlib.c中使用了log2函数,需要在Android API >= 18的情况下 libm.so中才存在此符号 但是make_android_lua54.sh中是指定了API等级 android-18 也许是我使用的NDK版本的cmake参数不支持ANDROID_NATIVE_API_LEVEL了? 个人的解决方法是多传一个 -DANDROID_PLATFORM=${API} 来指定API等级 [ 2%] Linking C shared library libxlua.so ld: error: undefined symbol: log2 >>> referenced by lmathlib.c >>> CMakeFiles/xlua.dir/lua-5.4.1/src/lmathlib.c.o:(math_log) >>>...

My project relies heavily on .asmdef's so I created .asmdefs for XLua also. But this leaves me with the problem that is mentioned in the FAQ: > The important thing...

最新的 General 版本在哪? 如何生成代码?

因为当前web平台要源码编译,在需要替换lua版本时比较麻烦。希望增加一个Emscripten编译luajit的脚本。 luajit解释模式够用了

项目从Unity2019升级到Unity2022有上述报错。相关的堆栈日志: **LUA: c# exception in print:System.ArgumentException: Illegal byte sequence encounted in the input. Parameter name: string at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStringAnsi(intptr,int) at XLua.LuaDLL.Lua.lua_tostring (System.IntPtr L, System.Int32 index) [0x0001b] in E:\Branch\branch_unity2022\trunk\client\Assets\3rdParty\XLua\Src\LuaDLL.cs:302 at...

项目刚刚从slua迁移到xlua,目前会随机发生闪退,Editor和真机下都会发生,切场景后发生几率比较大;下面是Editor闪退后的日志,DoString 执行的代码不固定。请问如何进一步排查问题? `================================================================= Native Crash Reporting ================================================================= Got a UNKNOWN while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries...