Pete Dowson Posted December 15, 2017 Report Posted December 15, 2017 (edited) **** Updated on 21st May 2021 **** To use the Lua Socket library om FSUIPC5/6/7, first download the luasocket-2.0.2 library from: http://files.luaforge.net/releases/luasocket/luasocket/luasocket-2.0.2/luasocket-2.0.2-lua-5.1.2-Win32-vc8.zip Extract and copy the file lua/socket.lua to your FSUIPC installation folder. Then, to use in lua scripts, use local socket=require("socket") There should be no need to copy the core.dll as explained below, but I will leave this thread for reference. Thanks to @Djeez for reporting this. ********************************** You an get lua sockets under Fsuipc5 by loading the 32-bit luasocket library from http://files.luaforge.net/releases/luasocket/luasocket/luasocket-2.0.2/luasocket-2.0.2-lua-5.1.2-Win32-vc8.zip Unpack it into "modules/Lua", but then replace "socket/core.dll" with the one from https://download.zerobrane.com/luasocket-win64.zip. [This is from a post by Luis Damas, with thanks!] Pete Edited May 21, 2021 by John Dowson Updated for 2021
manuelthomi Posted October 17, 2018 Report Posted October 17, 2018 Dear Pete The download link to luasocket-win64.zip is dead. Could you please provide the core.dll? I was searching for it on the internet with no success. Regards Manuel
Pete Dowson Posted October 19, 2018 Author Report Posted October 19, 2018 On 10/17/2018 at 1:00 PM, manuelthomi said: The download link to luasocket-win64.zip is dead. Could you please provide the core.dll? I'm afraid I don't have it. The link was provided by Luis Damas, as it says. However you'll find the 2.0.2 package eaily with Google or another search app. For example, try http://luaforge.net/projects/luasocket/ Pete
manuelthomi Posted October 20, 2018 Report Posted October 20, 2018 Thank you Pete. I found that too but I think this is the 32bit version. Don't I need the 64bit version? Regards Manuel
Pete Dowson Posted October 21, 2018 Author Report Posted October 21, 2018 18 hours ago, manuelthomi said: I found that too but I think this is the 32bit version. Don't I need the 64bit version? Yes, but I did think it included both. If not, I'm sorry, I think more searching is needed. Maybe some good user will post a better link, or even supply the actual file(s). I'd then see if could host them here to make things easier in future. Getting in touch with Luis Damas would be a good idea -- I've sent him a PM. Pete
Frédéric-O DUCHEMIN Posted October 21, 2018 Report Posted October 21, 2018 Hello, http://luaforge.net/projects/luabinaries/ X64 & X86 http://files.luaforge.net/releases/luabinaries/aLua5.2-work2/WindowsLibraries Executables X86 http://files.luaforge.net/releases/luabinaries/aLua5.2-work2/Executables/lua5_2_work2_Win32_bin.zip X64 http://files.luaforge.net/releases/luabinaries/aLua5.2-work2/Executables/lua5_2_work2_Win64_bin.zip Regards Fred
Frédéric-O DUCHEMIN Posted October 22, 2018 Report Posted October 22, 2018 You are Welcome ! Regards Fred
Pete Dowson Posted October 22, 2018 Author Report Posted October 22, 2018 Unfortunately, the LuaSockets files needed aren't included in those ZIPs. They appear to be the main Lua interpreters and ancillaries. Pete
Frédéric-O DUCHEMIN Posted October 22, 2018 Report Posted October 22, 2018 I'm sorry for that. I have P3V4 (X64) and need Lua socket for Throttle Manager works. Seems working but I don't find files to give you. So Have you found version X64 ? Regards Fred
Pete Dowson Posted October 22, 2018 Author Report Posted October 22, 2018 35 minutes ago, Frédéric-O DUCHEMIN said: I have P3V4 (X64) and need Lua socket for Throttle Manager works. Seems working but I don't find files to give you. So Have you found version X64 ? Not yet. But if you have it working there will be other DLL's (as well as FSUIPC5) either in Modules or in a subfolder in Modules, like Modules\Lua or similar. Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now