xLua
xLua copied to clipboard
xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
v2.1.16_with_silicon_support
作者大大,有没有考虑支持lua 5.4.6啊? 自己尝试下载了lua 5.4.6,并尝试编译,发现编译不过: memory_leak_checker.c(153,4): error C2440: 'initializing': cannot convert from 'StkIdRel' to 'TValue *'
修复 XLua -> GenerateCode 的代码存在 The type 'Span' may not be used as a type argument 报错的问题
当我在Lua中new一个只有有参构造函数的C#类时, Lua抛出了这样一个错误。。。如下代码 local tip = CS.ShowTipsData(CS.ShowTipType.Item, rewardItems:ToArray(), CS.UnityEngine.Vector2.zero, tipTitle) 我仔细确认了下参数应该并没有问题 我看网上有这个说法: 构造函数的热补丁并不是替换,而是执行原有逻辑后调用lua 那是否意味着, 如果一个类只有有参构造函数, 那么它就没办法在XLua中被new出来。。
2023-07-31 17:53:14 /unity_server/entrypoint.sh: line 2: $'\r': command not found 2023-07-31 17:53:14 chmod: cannot access '/unity_server/Server.x86_64'$'\r': No such file or directory 2023-07-31 17:53:14 /unity_server/entrypoint.sh: line 4: $'\r': command not found :...
打包后xlua没加载起来,这和visonos平台有关吗吗? 错误信息(Xcode): ```xcode msg:Unable to load DLL 'xlua'.Tried the load the following dynamic libraries: Unable to load dynamic library '/xlua' because of 'Failed to open the requested dynamic Library (0x06000000)...
详细报错: ``` Building Library\Bee\artifacts\WebGL\GameAssembly\release_WebGL_wasm\u9l0bh9rzmed.o failed with output: In file included from Assets/Plugins/WebGL/xlua_webgl.cpp:31: C:\Users\ksgfk\Desktop\va\WebGLPlugins\lundump.c:237:33: warning: adding 'int' to a string does not append to the string [-Wstring-plus-int] checkliteral(S, LUA_SIGNATURE + 1,...
原函数如下: public override Vector2 GetRealHeight(params object[] parameters) { ... ... } xlua的fix函数如下: function ClsHotFix:GetRealHeightEx(parameters) ... ... end 断点时看到,传入参数应为一个数组,但是xlua内并不能读取到数组,仅为parameters数组内首个值,这里有办法获得整个数组嘛? ```[tasklist] ### Tasks ```
我有一个需求,需要将下面的Lua文件打包到AB中~ FolderA |-- A.lua |--FolderB |--B.lua 如果A.lua中require(".FolderB.B") 这种相对路径的require貌似没办法处理啊。 CustomLoader传入的参数只是require后面路径内容