1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AMS2 Dedicated Server Tool / SteamCMD Support

Discussion in 'Automobilista 2 - General Discussion' started by Dave Stephenson, May 29, 2020.

  1. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,899
    Likes Received:
    941
    Ok, cheers for this information, appreciate it!
     
  2. kmikiwi

    kmikiwi Member

    Joined:
    Jun 19, 2016
    Messages:
    82
    Likes Received:
    30
    Thanks!
     
  3. Mike Hanson

    Mike Hanson New Member

    Joined:
    Jan 8, 2026
    Messages:
    2
    Likes Received:
    2
    Just released an update for my AMS2 Dedicated Server Toolbox app, that adds an alternative LUA plugin for AMS2 Dedicated Server, which includes sector times in the output.

    If you already installed it the upgrade will be automatic. If not you can get the latest release from GitHub
     
    • Like Like x 1
  4. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    I tried to set up a server, but it was not seen online, only on the local network. It turned out that the ports were closed because of the ISP. I have the option to get a static IP, but what protocol do I need, IPv4 or IPv6 ??
     
  5. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,899
    Likes Received:
    941
    when you say ports were closed by your ISP, you mean they are closed in the modem/router they've provided to you, or do they close things at their end?

    in most cases it's needed to open/forward ports in your router/modem locally.
    to answer your other question, as far as i'm aware the dedi uses IPv4.
     
  6. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    On their side, I opened all the ports and in Windows defender and modem, it turned out that this is because of the provider, because I do not have a main IP. For me, it is an expensive pleasure to buy a static IP, the conditions of the provider are categorically not favorable.
     
  7. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    Guys, I have one more question!
    How can you beat the situation with short tracks in rotation with long tracks?
    The server swears at the inflated grid...

    The problem is displayed in the log:
    upload_2026-6-24_19-55-27.png

    For example, here's a piece of a track in a rotation file:

    {
    "TrackId": "Buskerud_Short",
    "GridSize": 24,
    "MultiClassSlots": 2,
    "MultiClassSlot1": "KartShifter",
    "MultiClassSlot2": "Kartcross",
    "RaceLength": 10
    },


    But there is still a warning.

    This is what it looks like Server.cfg

    ////////////////////////////////
    // Game setup control options //
    ////////////////////////////////

    allowEmptyJoin : true
    controlGameSetup : true

    sessionAttributes : {
    "ServerControlsTrack" : 1,
    "ServerControlsVehicleClass" : 1,

    "GridSize" : 26,
    "MaxPlayers" : 15,

    "OpponentDifficulty" : 90,

    // These values will be overridden sms_rotate, but serve as insurance
    "PracticeLength" : 5,
    "QualifyLength" : 5,
    "RaceLength" : 5,

    "DamageType" : 3,
    "TireWearType" : 2,
    "FuelUsageType" : 2,
    "PenaltiesType" : 1,
    "AllowedViews" : 0, // Any (CockpitOnly in rotation)

    "RaceWeatherSlots" : 1,
    "RaceWeatherSlot1" : "Clear",
     
    Last edited: Jun 24, 2026
  8. DaWorstPlaya

    DaWorstPlaya Well-Known Member

    Joined:
    Aug 5, 2020
    Messages:
    522
    Likes Received:
    262
    You don't need a static IP from the provider. You just need a dynamically assigned IPv4 IP address and port forwarding (8766,27015,27016) from that IP to your internal machine behind the NAT on your router.
     
    • Agree Agree x 1
  9. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    Everything I did at the level of my router and Windows with these ports and protocols is closed.
    With all these settings, the server starts only as a local server, no one sees it.

    Identical permissions are also spelled out in Windows Defender, in the form of two rules for different protocols. It doesn't help...

    Port inspection was carried out using: (Open Port Check Tool - Test Port Forwarding on Your Router)

    upload_2026-6-24_21-15-53.png
     
  10. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    It seems that I solved the issue by changing the conditions in the (Default) section to acceptable ones. These are errors of preliminary analysis. But I didn't check it well!
     
  11. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    I also have a problem when I test the server alone, without other players, just me and the bots. The server can go down during the race, and this happens at the stage of rotation to another track.
     
  12. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    Have you solved the issue with Multiclass?
    I have a "ghost class". This is some kind of bug in the lobby, UI, or garage. Each next race, the rotation changes, but one class is constantly pursued, and it appears in each race! I damn well don't understand how to fix it, I've been trying to find a solution for the third day ....
     
  13. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,544
    Likes Received:
    1,541
    i suggest to buy Servermanager from Emperor Servers.
    This tool is really powerful and costs only 16$
    Automobilista 2 Server Manager / Emperor Servers
     
    • Agree Agree x 2
  14. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,058
    Likes Received:
    1,643
    It's not a bug it's a configuration error. The quoted config is incorrect, you should still set the first class using VehicleClassId and then add additional classes via MultiClassSlotX entries.

    ps, it will be much easier to give timely support if you continue positing your issues in the dedicate support thread instead of me having to find them scattered across the forum in necro'd threads
     
    • Like Like x 1
  15. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    You are about this topic? "AMS2 Dedicated Server Tool / SteamCMD Support"

    For some reason, my search on the site does not always work.
    For example, by searching for the word "Dedicated", I have nothing.
    upload_2026-6-30_14-39-27.png Therefore, I apologize for this stupid, clarifying entry.


    Is that what I understand?
    At the moment, my data looks like this:
    =======================================
    sms_rotate_config.cfg
    =======================================
    "default": {
    "PracticeLength": 10,
    "QualifyLength": 10,
    "RaceLength": 12,
    "MinimumOnlineRank": 2,
    "MinimumOnlineStrength": 1200,
    "OpponentDifficulty": 100,
    "VehicleClassId": 1101044510, //
    "MultiClassSlots": 1,
    "MultiClassSlot1": 1101044510,
    "MultiClassSlot2": 1101044510,
    "MultiClassSlot3": 1101044510,
    "MultiClassSlot4": 1101044510,
    "GridSize": 26,
    "MaxPlayers": 20,
    "Flags": 93634296, //-376569064,
    "DamageType": 3, // 0=OFF | 1=VISUAL_ONLY | 2=PERFORMANCEIMPACTING | 3=FULL
    "DamageScale": 2, // 0=DEFAULT | 1=LOW | 2=MEDIUM | 3=HIGH | 4=MAX
    "TireWearType": 5, // 2=X5 | 3=X4 | 4=X3 | 5=X2 | 6=STANDARD | 8=OFF
    "FuelUsageType": 0, // 3=X5 | 4=X4 | 5=X3 | 6=X2 | 0=STANDARD | 2=OFF
    "PenaltiesType": 1,
    "AllowedViews": 2,
    "RaceRollingStart": 0,
    "RaceFormationLap": 1,
    "ManualPitStops": 1,
    "DriveThroughPenalty": 2,
    "AllowedCutsBeforePenalty": 1,
    "RaceDateHour": 13,
    "PracticeWeatherSlots": 1,
    "PracticeWeatherSlot1": -934211870,
    "QualifyWeatherSlots": 1,
    "QualifyWeatherSlot1": -934211870,
    "RaceWeatherSlots": 1,
    "RaceWeatherSlot1": -934211870
    },

    =======================================
    Server.cfg
    =======================================
    allowEmptyJoin : true
    controlGameSetup : true

    sessionAttributes : {
    "ServerControlsTrack" : 1,
    "ServerControlsVehicleClass" : 1,
    "ServerControlsVehicle" : 0,

    "GridSize" : 26,
    "MaxPlayers" : 10,

    "MinimumOnlineRank" : 2,
    "MinimumOnlineStrength" : 1200,

    "OpponentDifficulty" : 100,

    // mcl
    "MultiClassSlots" : 4,
    "MultiClassSlot1" : 1101044510, // GT3 Gen2
    "MultiClassSlot2" : -112887377, // GT3
    "MultiClassSlot3" : 1740243009, // GTE
    "MultiClassSlot4" : 1553262379, // GT4

    // HC
    "Flags" : -376569064,

    "DamageType" : 3, // Full damage
    "DamageScale" : 2, // High
    "TireWearType" : 4, // X3
    "FuelUsageType" : 5, // X3
    "PenaltiesType" : 1,
    "AllowedViews" : 2,

    "RaceRollingStart" : 1,
    "RaceFormationLap" : 1,
    "ManualPitStops" : 1,
    "ManualRollingStarts" : 1,
    "DriveThroughPenalty" : 1,
    "AllowedCutsBeforePenalty" : 1,

    "PracticeLength" : 0,
    "QualifyLength" : 1,
    "RaceLength" : 3,

    "RaceDateHour" : 14,

    // clean
    "PracticeWeatherSlots" : 1,
    "PracticeWeatherSlot1" : -934211870,

    "QualifyWeatherSlots" : 1,
    "QualifyWeatherSlot1" : -934211870,

    "RaceWeatherSlots" : 1,
    "RaceWeatherSlot1" : -934211870
     
  16. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,058
    Likes Received:
    1,643
    Yes your linked thread above is the main support thread for the dedi. Asking there will typically get you faster and better answers as not only will I see them faster but there are other experts form the community who use these systems daily and contribute their support, often faster than I can get there.

    upload_2026-7-1_14-0-53.png
    change this to 3 slots and move one of the classes to `VehicleClassId`

    atm you are configuring two GT3 Gen2 entries, one form the inherited 'VehicleClassId' and one in your first MultiClassSlot
     
    • Like Like x 1
    • Informative Informative x 1
  17. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    Now I can select any car class on the server and the bots are the same.
    Probably I don't understand something...

    I'd be grateful if you could send me a finished sample with track and car rotation, without the ghost class. I'm tired of fighting in this heat.

    And this made my server startup log like this:
    Setting breakpad minidump AppID = 1066890
    [2026-07-01 20:31:25] INFO: HttpApi started
    [2026-07-01 20:31:25] INFO: Loading LuaApi addon 'sms_base'...
    [2026-07-01 20:31:25] INFO: Loading LuaApi addon 'sms_rotate'...
    [2026-07-01 20:31:25] INFO: Loading LuaApi addon 'lib_rotate'...
    [lib_rotate] Ignoring FORCE_SAME_VEHICLE_CLASS flag
    [lib_rotate] Ignoring FORCE_MULTI_VEHICLE_CLASS flag
    [2026-07-01 20:31:25] INFO: Loading LuaApi addon 'sms_motd'...
    [2026-07-01 20:31:25] INFO: Loading LuaApi addon 'sms_stats'...
    [2026-07-01 20:31:26] INFO: LuaApi started
    [2026-07-01 20:31:26] INFO: Dedicated server is starting...
    [2026-07-01 20:31:27] INFO: Connection to Steam established
    [2026-07-01 20:31:27] INFO: Received public IP 37.214.69.191
    [2026-07-01 20:31:28] INFO: Server logged in with Steam id 90287981875537926 ; server is secure
    [2026-07-01 20:31:28] INFO: Server startup finished: AppId 1066890, public IP 37.214.69.191, Steam id 90287981875537926 ; switching to running state
    [2026-07-01 20:31:28] INFO: Saving persistent data for addon 'sms_rotate' into 'lua_config\sms_rotate_data.json'
    [lib_rotate] Ignoring FORCE_SAME_VEHICLE_CLASS flag
    [lib_rotate] Ignoring FORCE_MULTI_VEHICLE_CLASS flag
     
  18. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,058
    Likes Received:
    1,643
    please attach you configs for both the server and rotate
     
    • Like Like x 1
  19. PAW

    PAW Member

    Joined:
    Dec 25, 2025
    Messages:
    47
    Likes Received:
    7
    Attached.
    I had to rename server.cfg to .txt, because the .cfg format was not attached.
    Thank you for your help!
     

    Attached Files:

  20. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    1,058
    Likes Received:
    1,643
    alright, not sure how I missed the plainly obvious before but seen it now plainly with the files in the editor.

    When configuring with the rotate plugin the values are expected to be the name strings that you will find in the api list I linked before rather than the raw IDs. For vehicle classes that's these:

    upload_2026-7-3_11-39-1.png

    The same is true of enum values for weather, tyre wear, flags etc

    I've included some excerpts below from another config I have here with some examples.


    upload_2026-7-3_11-41-12.png

    upload_2026-7-3_11-41-22.png

    upload_2026-7-3_11-41-39.png
    upload_2026-7-3_11-42-20.png
     
    • Informative Informative x 1

Share This Page