This Node.js app allows you to control locomotives in Train Simulator 2019 using your tablet or smartphone device as a remote. It utilizes the TS4J Train Simulator Java Interface by marvk to allow communication between the Node server and the TS2019 application.
Work in progress.
- Download and build the TS4J Train Simulator Java Interface.
- Move the resulting
.jar
file into the Train Controller root directory. - Run
npm install
- Open
config.json
and make sure the path to your Train Simulator 2019 installation and the name/location of thets4j.jar
is correct - Run
npm start
- Go to http://localhost:3000
- Launch Train Simulator 2019
- Control your train!
Since different locos have different controls, you need a matching controller for each loco. This is especially true since the internal naming and handling of buttons and levers may vary from loco to loco.
This is a list of locos with pre-built control panels:
- Work in progress.
There probably no pre-built control panel for your favourite loco. But with a bit of JavaScript, HTML and CSS knowledge, you can create your own control panels to match the controls of your loco. Here is how:
Work in progress.