01-02-2015, 10:05 AM
I am working on plugin that requires cloud storage.
I am trying to use socket.http to store general login/logout info. However, I get the following:
I have no problems using socket.http in other Lua scripts on the same machine.
I am trying to use socket.http to store general login/logout info. However, I get the following:
Code:
[15:35:21] LUA: Plugins/Metaverse/hooks.lua:15: module 'socket.http' not found:
no field package.preload['socket.http']
no file './socket/http.lua'
no file '/usr/local/share/lua/5.1/socket/http.lua'
no file '/usr/local/share/lua/5.1/socket/http/init.lua'
no file '/usr/local/lib/lua/5.1/socket/http.lua'
no file '/usr/local/lib/lua/5.1/socket/http/init.lua'
no file 'Plugins/Metaverse/socket/http.lua'
no file './socket/http.so'
no file '/usr/local/lib/lua/5.1/socket/http.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file 'Plugins/Metaverse/socket/http.so'
no file './socket.so'
no file '/usr/local/lib/lua/5.1/socket.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file 'Plugins/Metaverse/socket.so'
[15:35:21] Stack trace:
[15:35:21] [C](-1): require
[15:35:21] Plugins/Metaverse/hooks.lua(15): (no name)
[15:35:21] Stack trace end
[15:35:21] Error in plugin Metaverse calling function <callback>()
I have no problems using socket.http in other Lua scripts on the same machine.