You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a developer of the GH/FH mod for Tabletop Simulator. It would be cool if the mod also had support for showing monster movement, but doing it inside TTS would be quite hard and probably very slow. So I was thinking if it would be possible to use this tool as an API. So that the TTS mod could publish it's current board state and get the movements back from the tool. Is this something that would be possible, e.g. when running the server locally?
The text was updated successfully, but these errors were encountered:
This seems viable. The server is fully stateless. You send a board state as JSON to the 'solve' route. It returns the movement options as JSON.
I'm not familiar with Tabletop Simulator development. If it allows Python, you could pull the solver logic in directly. If not, you could run the Flask server locally and send solve requests to its port.
Unfortunately the API is a bit of a mess, and the code is somewhat embarrassing. I put time into the solver and into the frontend. But hacked in the interface between the two very quickly. It's messy, not documented, and doesn't even do proper input validation.
The API specification is determined by solve() in init.py and unpack_scenario() in solver.py.
Hi,
I'm a developer of the GH/FH mod for Tabletop Simulator. It would be cool if the mod also had support for showing monster movement, but doing it inside TTS would be quite hard and probably very slow. So I was thinking if it would be possible to use this tool as an API. So that the TTS mod could publish it's current board state and get the movements back from the tool. Is this something that would be possible, e.g. when running the server locally?
The text was updated successfully, but these errors were encountered: