Skip to content

AlejandroOliva/ts-servers-tools

Repository files navigation

SCS Truck Simulator Server Tools

This project aims to simplify the management of SCS Dedicated Servers for American Truck Simulator (ATS) and Euro Truck Simulator 2 (ETS2) on Linux.

Prerequisites

You must have SteamCMD and the ETS2 and/or ATS Dedicated Server installed via SteamCMD.
If you haven't done this yet, please refer to the official documentation:

Installation

Option 1: Install to /usr/local/bin/

  1. Download and unzip the files.
  2. Copy the scripts to /usr/local/bin/ (administrator permissions required).
  3. You will then have instant access to the new commands from any terminal.

Note: Do not clone the repository directly into /usr/local/bin/.

Option 2: Install to your home directory

  1. Download or clone this repository to your home directory (e.g., /home/{user}/ts-servers-tools) or any preferred location.
  2. Add the folder to your PATH environment variable:
    1. Open a terminal.
    2. Identify your shell configuration file (.bash_profile, .bashrc, .zshrc, or .profile). Use ls -a ~ to check which files exist.
    3. Edit the file with a text editor (e.g., nano .bashrc).
    4. Add the following line, replacing /path/to/ts-servers-tools with the actual path:
      export PATH="/path/to/ts-servers-tools:$PATH"
      
    5. Save and close the file.
    6. Restart your terminal for the changes to take effect.

Configuration

After installing the scripts, ensure you have the necessary configuration files as described in the SCS Dedicated Server documentation to start the servers.

If you want to run a server for each game (ATS and ETS2), you must configure different ports for each one.
You will also need to open the required ports as described in the SCS documentation.

If your server is behind a router or firewall, you may also need to configure port forwarding as described in the SCS documentation, so that external players can connect to your server.
Both opening the required ports and setting up port forwarding (if applicable) are necessary for others to connect from outside your local network.

Command List

  • ats-server / ets2-server
    Start the ATS or ETS2 server.

  • ats-server-stop / ets2-server-stop
    Stop all running ATS or ETS2 servers.

  • ats-server-restart / ets2-server-restart
    Stop all running ATS or ETS2 servers and start a new server for the same game.

  • ats-server-log / ets2-server-log
    Display the ATS or ETS2 server log.

  • ts-servers
    Start both servers, one for each game (ats-server + ets2-server).

  • ts-servers-stop
    Stop all running ATS & ETS2 servers (ats-server-stop + ets2-server-stop).

  • ts-servers-restart
    Stop all running ATS & ETS2 servers and start a new server for each game (ats-server-stop + ets2-server-stop, then ats-server + ets2-server).


About

Tools to manage SCS Dedicated Servers in a simple way.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages