Chasel Posted August 1, 2017 Share Posted August 1, 2017 英文水平一般~勉强写一下吧 1.Use LuaJIT replace LUA Interpreter https://github.com/paintdream/DontStarveLuaJIT But this only on windows , we need linux too it can improve performance about 30% ~ 50% 2.dynamic libraries when i tried import a dynamic library, It shows " dynamic libraries not enabled; check your Lua installation" Ubuntu平台: [00:00:00]: DoLuaFile Error: error loading module 'library.luasql_mysql' from file 'scripts/library/luasql_mysql.so': dynamic libraries not enabled; check your Lua installation LUA ERROR stack traceback: =[C] ? =[C] in function 'require' scripts/main.lua(83,1) in main chunk Windows平台: LUA ERROR stack traceback: =[C] ? =[C] in function 'require' scripts/main.lua(83,1) in main chunk I want use .so or .dll to provide more functions 3. Crash when i use "file:seek()" the server crash immediately e.g. file, err = GLOBAL.io.open(filename, "w") file:write(block) file:seek() Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.