Open Road MP

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

KeyDefaultMeaning
master_keyemptyyour server key from Your servers in your account. Required - without a valid key the server does not start. It decides the slots.
nameOpen Road MP Servername in the server list
motdWelcome! Drive safe.message players see when joining
passwordemptyempty = public server
gameeut2eut2 = Euro Truck Simulator 2, ats = American Truck Simulator
required_game_versionemptyallowed game version; a prefix like 1.61 allows all 1.61.x
min_game_versionemptyminimum 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

KeyDefaultMeaning
port42420UDP port for players
max_players64slots - at most as many as your server key allows (32 by default)
max_players_per_ip4players from the same IP
tick_rate60how 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_seconds15seconds without a sign of life until a player is removed

Web server and server list

KeyDefaultMeaning
http_enabledtruelive map and status API (TCP)
http_port42420TCP port of the web server
public_maptruelive map visible to everyone
map_datamapdata.binroad 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_datagamedata.jsonnames, countries and cargo for mp.world. Built into the server like map_data; a file next to the server takes precedence.
publicfalseshow the server in the public list

Gameplay

KeyDefaultMeaning
gamemodes[freeroam]gamemodes to run (folders in gamemodes_dir), [] = none. See Scripting.
gamemodes_dirgamemodesfolder with the gamemodes
nodenodeNode.js executable for the gamemodes (22.18 or newer); a full path if it is not on the PATH
fallback_vehicletruck scania_r_2016vehicle a player gets when pressing Drive without one; empty = the game's message
safezone_radius100metres around every company in which players do not collide; 0 = off.
rule_<name>see Game rulesstart values of the game rules, e.g. rule_police = false

Files

KeyDefaultMeaning
ban_filebans.txtbans: 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_fileserver.logserver log
scripting_dirscriptingAPI types and the type check of gamemodes (the gamemode host itself is built into the server)

On this page