whiskeyzulu Posted April 5, 2016 Share Posted April 5, 2016 Does anyone know how I may be able to read player locations and speed from another program? I thought I could print the locations to the MTA Server console window and use some Windows API functions to read the data into an array but this approach is a lot more difficult than I thought (I'm not a very advanced programmer!). Can I make the server window a child of my main C++ program and then just call std io functions? If I monitor key presses to the console window will I see the server "typing" to the console? Thanks, Whiskey Link to comment
whiskeyzulu Posted April 5, 2016 Author Share Posted April 5, 2016 I think I may need to implement some UDP functions..... Link to comment
Noki Posted April 5, 2016 Share Posted April 5, 2016 You can always write your own module. Link to comment
whiskeyzulu Posted April 5, 2016 Author Share Posted April 5, 2016 I realise that. I would like some help in deciding whether I can read the characters from the console window using some Windows API functions or do I need to implement some sort of network sharing. I am trying to read the console directly as this seemed the most straight forward approach. I am currently writing a little test script to discover if I can GetConsoleInput. If someone can let me know if I'm wasting my time and speed up my progress I would be eternally grateful! 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