Jump to content

C++ and Lua connected


myonlake

Recommended Posts

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 by myonlake
Link to comment

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...