myonlake Posted January 19, 2013 Share Posted January 19, 2013 (edited) Hey, I am just asking is there an alternate way to make Lua connect with an external C++ program. I am trying to make an administration panel, which can be viewed on desktop and when someone reports a player in-game, it will be reported to the program the admin is using (not necessarily in-game when a report is sent). So, should I use a module to connect an external program or is there another way? PS. This post most probably doesn't make any sense. Edited May 30, 2019 by myonlake Link to comment
Lloyd Logan Posted January 19, 2013 Share Posted January 19, 2013 Maybe? http://cc.byexamples.com/2008/06/07/how-to-embed-Lua-51-in-c/ PS. My post most probably doesn't make sense either! Link to comment
myonlake Posted January 19, 2013 Author Share Posted January 19, 2013 That is a damn great link - thank you ^^ Link to comment
Anderl Posted January 20, 2013 Share Posted January 20, 2013 That has nothing to do with what he wants, that link is for a tutorial of how to integrate Lua in C++, not how to send information to a software. @myonlake, not sure if that would work, but you could create a server ( I don't mean a MTA server ) and you could use socket module from MTA Wiki to connect to it, that way you would send data to it and the software would retrieve that data. If the server wasn't online ( I mean, if the software wasn't open ) it would save data somewhere like a MySQL database and when the software opened, it would retrieve it. Link to comment
myonlake Posted January 20, 2013 Author Share Posted January 20, 2013 Anderl said: That has nothing to do with what he wants, that link is for a tutorial of how to integrate Lua in C++, not how to send information to a software. @myonlake, not sure if that would work, but you could create a server ( I don't mean a MTA server ) and you could use socket module from MTA Wiki to connect to it, that way you would send data to it and the software would retrieve that data. If the server wasn't online ( I mean, if the software wasn't open ) it would save data somewhere like a MySQL database and when the software opened, it would retrieve it. You are correct, however, that link gives me some information I need for some small integrations with Lua and C++. I'll be looking around the web and YouTube if there are some socket transmission and catching tutorials or so. I'll edit the post if I have succeeded somehow Link to comment
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