Jump to content

Can I load a module with ?.so in main.lua


Recommended Posts

I found script.readme.txt in data. As mentioned above, I can extract script.zip in databundle to data directory and do some special debugging.  Now need to develop some functions to use luasocket, which is a socket module implemented for lua, it provides some c implementation, so I compiled it into socket.so, and hope to require this socket.so in main.lua,  But in my testing it seems that the require function always returns a boolean instead of what the module really returns

It shouldn't happen. Requiring lua scripts seem to work as intended (returning whatever the script returns). Not sure what is going on here.

What are you trying to debug where you need to have a c implementation of some things, anyway?

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.

×
  • Create New...