Python interface to Train Simulator 2016
Python interface to Train Simulator 2016. See raildriver.RailDriver docstrings for usage.
Start your Railworks.exe, get running, pause and try this in your Python console.
>>> import raildriver >>> rd = raildriver.RailDriver() >>> assert 'SpeedometerMPH' in dict(rd.get_controller_list()).values(), 'SpeedometerMPH is not available on this loco' >>> rd.get_current_controller_value('SpeedometerMPH') 50.004728991072624922
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.