I want to do a reinforcement learning agent proof of concept but creating a whole physics engine is too complicated. I decided that I want to use roblox’s base engine so I could worry more about other things rather than have a working game.
I want my game to communicate with an external language like Python. How can I accomplish this? I thought of utilizing APIs but is there any other way to communicate with python? All I need is to be able to send JSON or array like objects to the python script, and I need the python script to send a user input to update the player location. Currently, I am thinking of this solution:
Third party VPS (main problem costs money) <=============> Roblox HTTP Servers
^
|
|
|
|
v
Python code
There are no Roblox HTTP Servers. The HTTP is from the server the game is running on. And if that means that they are hosted on the server, then simulating a Roblox server locally (Roblox Studio), will allow you to use data from your LAN. I am assuming you are using python for TensorFlow. If that is the case, you can have your python script constantly writing the JSON to a JSON file on your computer, and have a rest API hosting that JSON file on your computer and updating it whenever it changes. You can host it on an open port then just listen for that port number.