Changes

Jump to navigation Jump to search

Documentation/Tools/Dedicated Server

59 bytes added, 20:26, 16 March 2023
m
no edit summary
=How to download a dedicated server=
====Game owner, using steam Steam client====Dedicated server can be download downloaded via steam the Steam client. You can either search directly for application ID in you your library tab
Euro Truck Simulator 2 Dedicated Server ID = 1948160
American Truck Simulator Dedicated Server ID = 2239530
or you can find it among listed tools. To show tools in steam the Steam library, you have to adjust steam filters (combo box above search field in library tab).
====Anonymous, without game ownership, or without Steam Client====
If you are not game owner or you don't have steam the Steam client installed, you have to use [https://developer.valvesoftware.com/wiki/SteamCMD SteamCMD] to download server.
'''Remember that SteamCMD does not auto-update your server.'''
=How to launch a dedicated server=
You can launch the dedicated server either from the Steam client's library tab, or directly by starting its executable. Game ownership is not required. If you want to launch a server with different configuration, you can use the following startup parameters:
<nowiki>-server "server packages file name" (loads non default server game setup)</nowiki>
If you have redirected home directory for the game (location where server_config, server.log, game.log, server_packages are stored), you have to redirect server home directory as well (this is done with -homedir parameter).
==How to launch a dedicated server on linux Linux without steam Steam client installed==
You may get the following error when starting a server with Linux: `[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.`
To launch server on linux Linux `steamclient.so` library is required. You can either use provided launch_server.sh script (located in folder next to to the server executable) or create a link to this library using `ln -s steamcmd/linux64/steamclient.so ~/.steam/sdk64/steamclient.so`
=First launch=
First launch will create server home folder and default server_config.sii.
By default server home directory is configured to point at the [[Documentation/Engine/Game_user_path|Game User Path]].
This location can be changed with -homedir start up parameter, however it must be changed for both game and server.
'''connection_virtual_port''' and '''query_virtual_port''' are virtual ports used for connection to server. Allowed range is <100,200>.
'''connection_dedicated_portand''' and '''query_dedicated_port''' are physical ports used by steam the Steam game server api to fill sessions browser. For LAN games query_dedicated_port has be in range of <27015,27020>.
By default, whenever a dedicated server is launched it is using an anonymous account. For such an account non-persistent server id is generated (used for direct search). To avoid this you can acquire a logon token on https://steamcommunity.com/dev/managegameservers (game ownership is required). This token has to be placed into server_config.
Use the game appID to generate token, not the server appID!
Example:
moderator_list[1]: 234567891
where 123456789 is the moderator steam 's Steam id
=Quality of life=
Any player who is a moderator can now change the game time or disable rain. This can be done via chat message box by sending a message containing an admin command.
Available admin commands are
/set_time <HH:MM>
[MP] Session closing
It is caused by steam Steam losing connection. This can happen when internet connection is lost, or when the computer switches to sleep mode.
Will be fixed in next patch.
67
edits

Navigation menu