myonlake Posted January 19, 2013 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 If I helped you, please click the like button on the right Thanks!
Lloyd Logan Posted January 19, 2013 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! If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
myonlake Posted January 19, 2013 Author Posted January 19, 2013 That is a damn great link - thank you ^^ If I helped you, please click the like button on the right Thanks!
Lloyd Logan Posted January 19, 2013 Posted January 19, 2013 You're welcome! If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
Anderl Posted January 20, 2013 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. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
myonlake Posted January 20, 2013 Author 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 If I helped you, please click the like button on the right Thanks!
Anderl Posted January 20, 2013 Posted January 20, 2013 Well, good luck then "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
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