Sim widget

Setting up the Sim widget (ETS2 and ATS)

The Sim widget reads the values directly from the game on your PC. For that the game needs a small plugin called TruckTel. OBS picks up the values from there, none of it is sent to CastLayer.

Requirements

  • The game and OBS run on the same PC. A two-PC setup (gaming PC and streaming PC) does not work: OBS does not allow the connection into the home network and shows no error.
  • Tested with Euro Truck Simulator 2 (1.62), TruckTel 0.1.2 and OBS 33. American Truck Simulator has not been tested yet.
  • TruckTel is third-party software, not made by CastLayer. For problems with TruckTel itself, the project on GitHub can help.

Setup

  1. 1

    Download TruckTel from the original project (github.com/jvanstraten/TruckTel) and unzip it into the 'bin/win_x64/plugins' folder of your game. If there is no 'plugins' folder yet, create it.

  2. 2

    Start the game once and quit. TruckTel creates its 'plugins/trucktel' folder and opens its start page in your browser once. The message 'Request to use advanced SDK features detected' is normal and appears on every start; confirm with OK.

  3. 3

    In the dashboard under 'Set up the Sim widget', download 'landing.yaml' and replace the existing one in 'plugins/trucktel'. Otherwise the start page opens on every game start and can end up on stream.

  4. 4

    Also download 'config.yaml' there, create a folder 'castlayer' in 'plugins/trucktel' and put the file in it. It requests no input into the game and reads no license plates.

  5. 5

    Choose fields and look, copy the address and add it in OBS as a browser source at the size shown. For checking there is the setup address: it shows whether TruckTel is reachable. On stream always use the normal address.

If the area stays empty

Without a connection the widget deliberately shows nothing on stream. Open the setup address and check the message there.

  • Is the game running, and is 'config.yaml' in the 'plugins/trucktel/castlayer' folder? Without the file TruckTel does not hand out our values.
  • If another program uses port 47311, TruckTel still starts without an error message but cannot be reached by OBS. Close the other program or restart your PC.
  • In the pause menu the widget freezes and shows 'PAUSED'. After a game crash it disappears and reconnects by itself on the next start.

Security and licences

  • Do not forward port 47311 in your router. While the game is running, other devices in your home network can read the game values.
  • TruckTel is under the MIT license. CastLayer does not distribute TruckTel, the download always comes from the original project.
  • The Tachograph and Waybill looks use free fonts under the SIL Open Font License; the licence text is at castlayer.de/licenses/sim-fonts-OFL.txt.
The values come from the game unchanged. If a game or plugin update changes something, the widget may stay empty until we update it.

Next