Configuration
Every setting in server.cfg.
server.cfg comes with the server package (and is created with the default values if it is missing). Changes take effect after a restart. Lists are written as [a, b].
General
| Key | Default | Meaning |
|---|---|---|
master_key | empty | your server key from Your servers in your account. Required - without a valid key the server does not start. It decides the slots. |
name | Open Road MP Server | name in the server list |
motd | Welcome! Drive safe. | message players see when joining |
password | empty | empty = public server |
game | eut2 | eut2 = Euro Truck Simulator 2, ats = American Truck Simulator |
required_game_version | empty | allowed game version; a prefix like 1.61 allows all 1.61.x |
min_game_version | empty | minimum game version, e.g. 1.61.1.1; newer versions are allowed |
mods | [] | Steam Workshop IDs every player needs, e.g. [2864145441] |
required_dlcs | [] | DLCs every player must own, e.g. map DLCs so that everyone has the same map: [north, balt]. Names as the DLC archive without dlc_: east, north, fr, it, balt, balkan_e, iberia, balkan_w, greece, polar, krone, feldbinder ... |
Network
| Key | Default | Meaning |
|---|---|---|
port | 42420 | UDP port for players |
max_players | 64 | slots - at most as many as your server key allows (32 by default) |
max_players_per_ip | 4 | players from the same IP |
tick_rate | 60 | how often per second the server sends every player the positions of the others, 30-120. Higher means smoother trucks of other players and more upload. The game's own physics always runs at 60 steps per second - that is independent of this setting. |
timeout_seconds | 15 | seconds without a sign of life until a player is removed |
Web server and server list
| Key | Default | Meaning |
|---|---|---|
http_enabled | true | live map and status API (TCP) |
http_port | 42420 | TCP port of the web server |
public_map | true | live map visible to everyone |
map_data | mapdata.bin | road and company data of the live map, the safe zones and mp.world. Built into the server; only needed if you were given a newer file - placed next to the server, it takes precedence. |
game_data | gamedata.json | names, countries and cargo for mp.world. Built into the server like map_data; a file next to the server takes precedence. |
public | false | show the server in the public list |
Gameplay
| Key | Default | Meaning |
|---|---|---|
gamemodes | [freeroam] | gamemodes to run (folders in gamemodes_dir), [] = none. See Scripting. |
gamemodes_dir | gamemodes | folder with the gamemodes |
node | node | Node.js executable for the gamemodes (22.18 or newer); a full path if it is not on the PATH |
fallback_vehicle | truck scania_r_2016 | vehicle a player gets when pressing Drive without one; empty = the game's message |
safezone_radius | 100 | metres around every company in which players do not collide; 0 = off. |
rule_<name> | see Game rules | start values of the game rules, e.g. rule_police = false |
Files
| Key | Default | Meaning |
|---|---|---|
ban_file | bans.txt | bans: an IP per line, or account:<account ID>|<until>|<reason> (until = unix seconds, 0 = for ever) |
admins | [] | account IDs of the admins, e.g. [oprmp:KXQTRB-4821] - every right in every gamemode (player.isAdmin) |
log_file | server.log | server log |
scripting_dir | scripting | API types and the type check of gamemodes (the gamemode host itself is built into the server) |