Dedicated Server Tool / SteamCMD

Discussion in 'Automobilista - Help & Support' started by Dave Stephenson, Sep 18, 2017.

  1. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    The main release version of Automobilista has an accompanying dedicated server distribution which can be installed without the need for the machine running the server to have an account with a license for the full game. The dedicated server distribution includes only the content and binaries required to host a server and thus is much smaller than the main release. (~19Gb vs 30Gb+ at the time of writing)

    If you only need/want a single installation of the dedicated server and wish to install via the standard Steam desktop client open the link below on the machine you wish to install on in your browser or 'Start > Run'.

    steam://install/447760

    If you do not wish to be tied to the desktop client or would like to maintain multiple installations, for example one modded and another clean, continue on to the SteamCMD information below.

    SteamCMD

    Valve provides the SteamCMD tool to users as a means to perform the installation, update, and validation, of games from the command line without the need for the standard Steam desktop client, making it ideal for use in server installations. It has many benefits including being scriptable, allowing automation of the process, and not being limited to a single installation of each appid as the main desktop client is.


    The complete documentation for SteamCMD is location on Valve's wiki: SteamCMD - Valve Developer Community

    Quickstart

    The AutomobilistaDedicatedTemplate.zip attached to this post contains everything you need to get started with SteamCMD installs of Automobilista dedicated server. It contains the steamcmd.exe binary and two batch files to perform the install.

    upload_2017-9-18_15-27-30.png

    Simply extract the contents on the machine you wish to run the server and run Server1_update.bat. This will update the included SteamCMD installation before downloading and installing the Automobilista dedicated distribution to the newly created server1 directory.

    upload_2017-9-18_15-28-3.png

    Updating/Validating The Installation
    To update the installation run Server1_update.bat again. SteamCMD will once again update itself if required before acquiring any new files for the game installation if there are updates available. It is safe to run even when no updates are available.

    Running Server1_validate.bat will perform validation on the installations files. It will re-download and replace any files which have become change or corrupted. It will also download any new game updates if they are available. On our servers we typically always use the validate script to perform updates. It takes a little longer if there are no updates due to the file checking but also ensures that there are no corrupt/missing files which may cause users mismatching issues.

    Multiple Installations

    SteamCMD can be used to allow multiple installations to co-exist on the same machine. This can be useful for operational reasons or when running content that extends/modifies default content in order to not pollute your main installation. Note however that multiple installations are not required to host multiple server instances. (see Hosting Multiple Servers below)

    Whatever the reason, creating multiple installs form the template is as easy as duplicating the .bat files and changing the install path. For example to create an update file for Server2:

    1) Copy Server1_update.bat to Server2_update.bat​

    2) Open Server2_update.bat and change the steamcmd line from
    Code:
    steamcmd +login anonymous +force_install_dir ../Server1 +app_update 447760 +quit
    to
    Code:
    steamcmd +login anonymous +force_install_dir ../Server2 +app_update 447760 +quit
    3) Repeat for Server2_validate.bat

    4) Run Server2_update.bat to download the latest files
    Hosting Multiple Servers
    Multiple installations are not required in order to host multiple server instances. it is however vital that each instance has it's own user profile to avoid port clashes. Each profile has it's own Multiplayer.ini which needs to have ports assigned that are different from each other running instance of the dedicated server application.

    The dedicated server uses the same profiles as the main game (typically in 'My Documents\Automobilista\userdata'). To create a new profile without launching the game copy an existing profile directory with a new name for the profile.

    If this is a brand new install of only the server and there are no existing profiles, launch AMS Dedicated.exe and exit at the mod select screen. A profile named 'DedicatedServer' will have been created which you can use as the base for any additional profiles required.

    More information on ports and firewall rules is available in the Automobilista Manual.
     

    Attached Files:

    Last edited: Sep 19, 2017
    • Winner Winner x 2
    • Informative Informative x 2
    • Useful Useful x 2
    • Like Like x 1
  2. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
  3. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
  4. Gasper Zupan

    Gasper Zupan Member AMS2 Club Member

    Joined:
    Jun 14, 2016
    Messages:
    55
    Likes Received:
    66
    First method didn't work for me. Browser reports "no steam DNS can be found". Second method worked like a charm. Thank you :)
     
    Last edited: Sep 19, 2017
  5. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    Cheers for the heads up. It will work if pasted into a browser or into 'Start > Run'. I've removed the link and amended the text to reflect that.
     
    • Informative Informative x 1
  6. Felipe Granado

    Felipe Granado Member

    Joined:
    May 27, 2017
    Messages:
    35
    Likes Received:
    4
    The SteamCMD is very good for small servers like Amazon.

    But I think it would be even better if the original Cars and Tracks were placed as workshop items (even secretly) so that only the content needed to open the servers was downloaded. Take advantage as a tip for future updates.

    Hugs!
     
  7. Felipe Granado

    Felipe Granado Member

    Joined:
    May 27, 2017
    Messages:
    35
    Likes Received:
    4
    I have a question: When the AMS have an update, we have update the AMS in SteamCMD manually?
     
  8. Erick Goldner

    Erick Goldner Active Member AMS2 Club Member

    Joined:
    Mar 9, 2016
    Messages:
    466
    Likes Received:
    110
    If you used steamcmd to install it (not the tool on steam), then I believe you must do it manually yes.
     
    • Agree Agree x 2
    • Useful Useful x 1
  9. Dave-NRTServers

    Dave-NRTServers New Member

    Joined:
    Mar 10, 2016
    Messages:
    6
    Likes Received:
    0
    Afternoon Dave....
    Dave from NRT...I have a question if I could... I just started to install VDS servers to lease for AMB
    I have been chatting with Renaldo...and have one up in the lobby as a test server in Karts.
    : NRT Game Servers -Fast
    When I open the lobby page...Virtual Xperience down to the server and hit join.....
    I am getting a error page in: Firefox, Explorer and Chrome...I am not entering via Steam and this is the SteamCMD install..
    It says: automobilista:198.23.217.166:34597
    The address was not understood in all 3 browsers..
    Do i need to log into Steam ...that I have and get the same error... All related ports are open on the VDS concerning AMB and Steam as well as on my side also...
    What might I be missing...
    Thanks and look foreword to your reply
    Dave
    NRT Game Servers
     
  10. Avelino Neto

    Avelino Neto Member AMS2 Club Member

    Joined:
    Jun 3, 2016
    Messages:
    64
    Likes Received:
    10
    How can I use beta versions on CMD ?
    I'm trying to use this command, but still not working...

    steamcmd +login anonymous +force_install_dir ../Automobilista +app_update 447760 -beta "v1.5.01 -" +quit
     
  11. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    We don't currently maintain old versions in the dedi tool. We provide them in the main game release to ensure that people who receive automatic updates from steam can still connect to servers that may not have been updated yet shortly after release.

    You can still launch a dedi from a version in the release betas channel but you will need to install the full release build. That requires authentication so you will need to replace
    Code:
    +login anonymous
    with
    Code:
    +login <yoursteamname>
    and enter your password/steamguard details when prompted.

    You will also need to replace the dedi appid
    Code:
    447760
    with the release game appid
    Code:
    431600
    Documentation for steamcmd login is available here
     
  12. Avelino Neto

    Avelino Neto Member AMS2 Club Member

    Joined:
    Jun 3, 2016
    Messages:
    64
    Likes Received:
    10
    Thanks Dave, but what's the beta names for SteamCMD command ?
     
  13. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    the currently available beta channels are listed in the steam client. The names for using in steam command are the same as they appear there. Right click ams in the library and choose properties. On the betas tab there is a dropdown with the list.

    Note that in your original example above you had v1.5.10 but that is the current release version so doesn't not need to be specified as a beta channel. You can use the standard dedi install instructions for that. You also don't need the quotes if I recall correctly.
     
  14. Dave-NRTServers

    Dave-NRTServers New Member

    Joined:
    Mar 10, 2016
    Messages:
    6
    Likes Received:
    0
    Dave...
    Dave from NRT...I have the weirdest issue and can't for the life of me sort it out...hope you have a resolve.
    I am setting up 3 AMB servers using the SteamCMD... re:
    Server1
    Server2
    Server3
    I have added all the firewall ports for MatchMaker, Steam and updater..
    The First server: Red Arrow Racing is showing OK and Join-able.
    Server 2 and 3 although they are running on the server, and have had the ports added to the firewall
    so they do not collide are set in the Multiplayer.ini ( see Below)
    I am lost on this one...911 :)

    Red Arrow Racing Server #1
    Query Port Start="34597" // range is 1025 - 65535
    Port Start="34697" // range is 1025 - 65535

    Red Arrow Racing Server #2
    Query Port Start="35597" // range is 1025 - 65535
    Port Start="35697" // range is 1025 - 65535

    Red Arrow Racing Server #3
    Query Port Start="36597" // range is 1025 - 65535
    Port Start="36697" // range is 1025 - 65535

    Hope you can sort this for me..
    OS is Server 2008 r2
    Here are the other ports I have opened besides the above
    Automobilista

    TCP 40001 Matchmaker Port
    TCP 34747 Steam
    UDP 49632 Steam
    UDP 8766 Authenticator Port
    UDP 27016 Master Server Updater
    UDP 40002 Matchmaker

    Dave
    NRT
     
  15. Dann Murillo

    Dann Murillo tinyurl.com/osrdiscord AMS2 Club Member

    Joined:
    Mar 9, 2016
    Messages:
    675
    Likes Received:
    405
    Nevermind. Wrong answer.
     
  16. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    @Dave-NRTServers

    Hi Dave. Authenticator Port and Master Server Updater need to be unique for each server. These are both steam ports and need to be unique to the instance.

    Master Server Updater is the port which will be registered to the steam lobby for receiving server queries and is then used by the steam master server, steam clients, virtualxperience etc to query the server for it's status, player lists and join port using valve's libraries and protocols.
     
  17. Emerico

    Emerico New Member

    Joined:
    Dec 18, 2018
    Messages:
    7
    Likes Received:
    1
    isn't work to me. when i start the Server 1 Update file, this stopped. this downloaded some files, but only that what are on my attached screenshot
     

    Attached Files:

  18. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    Could you remove '+quit' from the end of the line in the bat file so the window does not close and run it again, posting screenshots of any errors. Thanks.
     
  19. Emerico

    Emerico New Member

    Joined:
    Dec 18, 2018
    Messages:
    7
    Likes Received:
    1
  20. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    858
    Likes Received:
    1,064
    @Emerico the only time I've seen that previously is when steamcmd could not write to the directory. In my case it was because I had mistakenly run the update as administrator once and then could not run it as a normal user due to file permission issues.

    If you haven't already I'd suggest completely removing the install directory (or changing the target directory in the bat file) and trying again. Failing that the tool is from Valve so you may have some joy finding out about the specific error on their forums.
     

Share This Page