{"action":"created","issue":{"url":"https://api.github.com/repos/X-Friese/FlyWithLua/issues/11","repository_url":"https://api.github.com/repos/X-Friese/FlyWithLua","labels_url":"https://api.github.com/repos/X-Friese/FlyWithLua/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/X-Friese/FlyWithLua/issues/11/comments","events_url":"https://api.github.com/repos/X-Friese/FlyWithLua/issues/11/events","html_url":"https://github.com/X-Friese/FlyWithLua/issues/11","id":358391114,"node_id":"MDU6SXNzdWUzNTgzOTExMTQ=","number":11,"title":"Out-of-box LuaSocket support","user":{"login":"nevkontakte","id":574640,"node_id":"MDQ6VXNlcjU3NDY0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/574640?v=4","gravatar_id":"","url":"https://api.github.com/users/nevkontakte","html_url":"https://github.com/nevkontakte","followers_url":"https://api.github.com/users/nevkontakte/followers","following_url":"https://api.github.com/users/nevkontakte/following{/other_user}","gists_url":"https://api.github.com/users/nevkontakte/gists{/gist_id}","starred_url":"https://api.github.com/users/nevkontakte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevkontakte/subscriptions","organizations_url":"https://api.github.com/users/nevkontakte/orgs","repos_url":"https://api.github.com/users/nevkontakte/repos","events_url":"https://api.github.com/users/nevkontakte/events{/privacy}","received_events_url":"https://api.github.com/users/nevkontakte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-09-09T16:23:16Z","updated_at":"2018-09-10T20:50:44Z","closed_at":null,"author_association":"NONE","body":"Being able to make network connections and HTTP requests would be very helpful for many applications. I'm personally interested in developing some tools for FSEconomy, but I'm sure there are many more use cases.\r\n\r\nFrom what I can tell, [LuaSocket](https://github.com/diegonehab/luasocket) is the most common library for networking in Lua and it is a requirement for many other libraries.\r\n\r\nI found some reports of varying recency [[1](https://forums.x-plane.org/index.php?/forums/topic/138672-making-http-requests/&tab=comments#comment-1328904), [2](https://forums.x-plane.org/index.php?/forums/topic/127045-solved-downloading-web-pages-in-fwl/&tab=comments#comment-1221409)] which laim a success. There are other reports that LuaSocket won't work with FlyWithLua [[3](https://forums.x-plane.org/index.php?/forums/topic/71174-luasocket-for-flywithlua/&tab=comments#comment-949529), [4](https://forums.x-plane.org/index.php?/forums/topic/89042-lua-socket/&do=findComment&comment=951602)] for one reason or another. In particular, according to [[5](https://forums.x-plane.org/index.php?/forums/topic/89042-lua-socket/&tab=comments#comment-949526)] FlyWithLua uses a [patched version of LuaJit](http://www.xsquawkbox.net/xpsdk/mediawiki/LuaJIT), which is incompatible with luasocket (not sure why exactly).\r\n\r\nSince many of these posts are rather old, I have a few questions:\r\n\r\n 1. Are there any reason why including LuaSocket into FlyWithLua (perhaps in Complete Edition only) would be a bad idea? If not, I'd be interested in working on this.\r\n 2. Does FlyWithLua still use that patched LuaJit version? In this repo I was able to find a few already compiled binaries, so it's hard for me to tell.\r\n 3. It seems FlyWithLua NG supports only 64 bit versions of X-Plane, is that right? If so, I'd need to worry only about one flavor of binaries, which would be nice.\r\n\r\nHope some FlyWithLua experts would be able to provide some answers (-:"},"comment":{"url":"https://api.github.com/repos/X-Friese/FlyWithLua/issues/comments/420056330","html_url":"https://github.com/X-Friese/FlyWithLua/issues/11#issuecomment-420056330","issue_url":"https://api.github.com/repos/X-Friese/FlyWithLua/issues/11","id":420056330,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDA1NjMzMA==","user":{"login":"nevkontakte","id":574640,"node_id":"MDQ6VXNlcjU3NDY0MA==","avatar_url":"https://avatars0.githubusercontent.com/u/574640?v=4","gravatar_id":"","url":"https://api.github.com/users/nevkontakte","html_url":"https://github.com/nevkontakte","followers_url":"https://api.github.com/users/nevkontakte/followers","following_url":"https://api.github.com/users/nevkontakte/following{/other_user}","gists_url":"https://api.github.com/users/nevkontakte/gists{/gist_id}","starred_url":"https://api.github.com/users/nevkontakte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevkontakte/subscriptions","organizations_url":"https://api.github.com/users/nevkontakte/orgs","repos_url":"https://api.github.com/users/nevkontakte/repos","events_url":"https://api.github.com/users/nevkontakte/events{/privacy}","received_events_url":"https://api.github.com/users/nevkontakte/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T20:50:44Z","updated_at":"2018-09-10T20:50:44Z","author_association":"NONE","body":"Also some thoughts on potential extension conflict. I think we could customize [this script](https://github.com/X-Friese/FlyWithLua/blob/master/FlyWithLua/Internals/FlyWithLua.ini#L17) a bit to look for different library extensions for Mac and Linux, making it zero-effort for users. \r\n\r\nLooking closer at modules directories, I see these files: `libLuaXML_lib_64.so  libLuaXML_lib.so  LuaXML_lib_64.so  LuaXML_lib.so`. Given that `ldd` on my linux server can only recognize libLuaXML_lib_64.so, I assume that Linux would look for files prefixed with \"lib\" and Mac would look for a file without prefix. If that's the case, there is no need to customize extensions. Perhaps @X-Friese could confirm this :-)"}}
{"actor":{"display_login":"nevkontakte"}}