tycox94gmail.com Posted July 26, 2019 Share Posted July 26, 2019 I have a server that runs in a windows console. I am trying to write a python script that will enter information into the game's server console. How can this be done? Quote Link to comment Share on other sites More sharing options...
irei1as Posted July 27, 2019 Share Posted July 27, 2019 The easiest way would be to use an external text file that is written by the py and read by the exe in intervals but it may end with access issues if they both try to use it at the same time. Quote Link to comment Share on other sites More sharing options...
LukasPJ Posted July 31, 2019 Share Posted July 31, 2019 I used a local network connection in order to connect to Python with c# (my Torque script).You could explore something similar? Depends on your use case, but network connection is pretty painless and not an unusual solution Quote Link to comment Share on other sites More sharing options...
GuyA Posted August 6, 2019 Share Posted August 6, 2019 If the telnet console is still part of the engine, you could use the python library telnetlib to interact with the server. Telnet is not secure, so don't go accessing remote machines with it, it will be Ok for use on a lan. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.