@Ryan
Hi.
If I understand correctly, you are developing the subsystem, that transmits Train's status messages to portable devices...
Making translation of Runactivity I encounter a number of dozens of abbreviations and have no ideas of their context, but I guess, they are related to WebServer, as I can't see them anywhere at usual game.
Can You help me with clearing their purposes?
Web Server Making progress
#12
Posted 22 January 2021 - 09:35 AM
Hey guys... I've been playing around a bit with the web server but running into a wall trying to consume the API responses via a VB app.
Would it be impossible to get a simple text or xml output of just the train's current location? Camera coords (tilex tiley + x y z position) would be fine, too....
Short story, while testing a route, I'd like to be able to punch a button to log the camera coordinates so I know where exactly to return to when editing...
The camera info is indeed coming out via the last line of the debug page, but there doesn't seem to be a way short of running a browser and clicking into the debug page itself, nor do the hints in GitHub of being able to append pageNo in the URI seem to be working.
Would it be impossible to get a simple text or xml output of just the train's current location? Camera coords (tilex tiley + x y z position) would be fine, too....
Short story, while testing a route, I'd like to be able to punch a button to log the camera coordinates so I know where exactly to return to when editing...
The camera info is indeed coming out via the last line of the debug page, but there doesn't seem to be a way short of running a browser and clicking into the debug page itself, nor do the hints in GitHub of being able to append pageNo in the URI seem to be working.
#13
Posted 22 January 2021 - 01:59 PM
The current API calls were developed specifically for Mauricio's GUI, so you're probably better off adding additional ones for the train's location and any other data you need. If you do this, we would be happy to upstream your changes for you.
#14
Posted 23 January 2021 - 05:24 AM
The ability to control switches and Signals via Api would be possible?
#15
Posted 24 January 2021 - 11:05 AM
Yes, but it could be challenging to design such an API so that it is efficient. I'm assuming it would be noticeably slow to transmit the entire track database over JSON...