Modding, Mission Design, and Coding > The Scripting Workshop

FSO and lua socket

(1/2) > >>

krevett62:
Hello, is FSO compatible with the lua socket library currently?

If I try to use a function in the lib with it installed in my FS folder, I get the error that socket\core.dll is not a valid win32 app. I've tried with several version of the dll and always get the same error. Has anyone already tried working with this?

z64555:
I don't believe the lua interpreter in FSO was designed to work with 3rd party libraries, much less one that works with internet connectivity.

If you want to take a look, the C source files are within ./code/scripting

krevett62:
Well that's what I was thinking too after reading a bit more on the net, as it's an integrated interpreter if I want the functions I need to create my own exe with integrated library... Probably to much hassle for what I want to do ^^

krevett62:
In fact I don't need all the functions I would just need to be able to send and receive strings and float variables from the client to the host but for now it's not doable I think... Btw there's not much MP going so that's not very relevant, but that would be nice.

m!m:
LuaSocket wouldn't really help you with that since it can't access the socket that FSO is using form communicating with the clients. You would need a specialized FSO Lua API system which would allow to send and receive arbitrary Lua data over the same channel FSO is already using. It's not impossible to do that but it would require a coder who has experience with Lua and with the Network code. You could open a GitHub issue requesting this feature so that we can track its progress there.

Navigation

[0] Message Index

[#] Next page

Go to full version