AMS2 Dedicated Server Tool / SteamCMD Support

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

  1. drak64

    drak64 Member

    Joined:
    Mar 9, 2020
    Messages:
    50
    Likes Received:
    28
    Last edited: Apr 15, 2025
    • Like Like x 1
  2. Josep de la Fuente

    Josep de la Fuente New Member

    Joined:
    Oct 30, 2024
    Messages:
    3
    Likes Received:
    3
    Great Job!!!! Amazing!!!!
     
    • Like Like x 3
  3. MarcoMd

    MarcoMd Member

    Joined:
    Sep 4, 2020
    Messages:
    84
    Likes Received:
    4
    solved all
     
    Last edited: Apr 20, 2025
  4. BrockBuster29

    BrockBuster29 Member

    Joined:
    Nov 5, 2024
    Messages:
    87
    Likes Received:
    40
    quick feedback @Dave Stephenson we're still getting massive lag spikes early in races when we have more than 10 cars, once the grid has been weaned out by excessive damage to 10 or less the game stabilises. we run a dedicated server with the bandwidth 100mps down 50mps
     
  5. GaryGavlaar

    GaryGavlaar New Member

    Joined:
    Oct 3, 2021
    Messages:
    12
    Likes Received:
    0
    Is there any way at present of setting AI aggressive levels in the dedicated server config files? I cant see an attribute for this. If not what is the default level they are set at?

    Also, should you be able to use all the attributes in the LUA rotate config file? I couldn't seem to get pitcontrol to work. I had to add the attribute to the main server config and not the lua rotate config.
     
  6. SoulMaTriX

    SoulMaTriX New Member

    Joined:
    Oct 31, 2020
    Messages:
    29
    Likes Received:
    0
    The dedicated sever since the last couple of updates no longer allows for multiple class racing. Force identical vehicles and appropriate flags are not selected.

    What happens is that the vehicle selection either: 1) does not work to select a car or class, or 2) all classes are available. When launching into the dedicated server, the only Class that shows is identical to the Host individual's class and identical vehicle. Not one other vehicle in the Class is driven by the AI and no other Class is on the track. So if I ,as the host, select a Gen1 GT3 911 R, every single car on the track is a Gen1 GT3 911 R for the AI. What am I doing wrong all of a suddenly?

    My settings:
    // Whether the server controls track selection. (0/1)
    "ServerControlsTrack" : 1,

    // Whether the server controls the vehicle class selection. (0/1)
    // Flag FORCE_SAME_VEHICLE_CLASS (1024) should be also set for this to make sense.
    "ServerControlsVehicleClass" : 1,

    // Whether the server controls car individual vehicle selection. (0/1)
    // Flag FORCE_IDENTICAL_VEHICLES (2) should be also set for this to make sense.
    "ServerControlsVehicle" : 0,

    // Race flags - bitfield consisting of many flags. Add flag values to get overall number required here.
    // See /api/list/flags/session in HTTP API for the full list. (-1610087912)
    "Flags" : -472366150,

    // Grid size & number of slots reserved for players. Remaining will be populated with AI. 32 is the max setting.
    "GridSize" : 26,
    "MaxPlayers" : 6,

    // TRACK. See /api/list/tracks/ in HTTP API.
    "TrackId" : 1910889511,

    // VEHICLE CLASS. See /api/list/vehicle_classes/ in HTTP API.
    //"VehicleClassId" : ,

    // Multiple Class.
    "MultiClassSlots" : 2,
    // GT3 Gen1
    "MultiClassSlot1" : -112887377,
    // GT3 Gen2
    "MultiClassSlot2" : 1101044510,
     
  7. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    53
    Likes Received:
    39
    I believe you need to set "VehicleClassId" as this is the first slot used for Multiclass as well, then MultiClassSlot1 is the 2nd class, and so on upto 9 for a total of 10 classes.
     
  8. Tony Binelli

    Tony Binelli Active Member AMS2 Club Member

    Joined:
    Apr 26, 2016
    Messages:
    453
    Likes Received:
    158

    This is so much easier

    Automobilista 2 Server Manager / Emperor Servers

    purchase the freestanding and forget all this line coding
     
  9. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,648
    Likes Received:
    774
    JustRace is completely free, has a servermanager and offers way more options than Emperor does.

    For example Justrace allows you to limit car selection to 2 cars from 1 class in an event.

    Emperor runs well, don't get me wrong, but definitely not the only/best option out there.
     
    • Like Like x 1
  10. SoulMaTriX

    SoulMaTriX New Member

    Joined:
    Oct 31, 2020
    Messages:
    29
    Likes Received:
    0
    I will give that a shot. But I remember always having that commented out in prior dedicated server iterations. Thanks.
     
  11. drak64

    drak64 Member

    Joined:
    Mar 9, 2020
    Messages:
    50
    Likes Received:
    28
    This is how it works for me.:
    Code:
    VehicleClassId : 1574895952,
    VehicleModelId : 1564669712,
    TrackId : 372107672,
    Flags : 152568560,
    MultiClassSlots : 9,
    MultiClassSlot1 : -1276839914,
    MultiClassSlot2 : 801463365,
    MultiClassSlot3 : 1101044510,
    MultiClassSlot4 : -1372148105,
    MultiClassSlot5 : -1276839914,
    MultiClassSlot6 : -1276839914,
    MultiClassSlot7 : -1276839914,
    MultiClassSlot8 : -1276839914,
    MultiClassSlot9 : -1276839914,
     
  12. SoulMaTriX

    SoulMaTriX New Member

    Joined:
    Oct 31, 2020
    Messages:
    29
    Likes Received:
    0
    Interesting. I tried making the VehicleCLassId as car class #1 and MultiClassSlot2 as class number 2. Still the AI runs the same car and class as myself. Confused as ever.
     
  13. SoulMaTriX

    SoulMaTriX New Member

    Joined:
    Oct 31, 2020
    Messages:
    29
    Likes Received:
    0
    Didn't work. Something else must be happening. Started two updates ago. Prior to that everything was working fine.
     
  14. drak64

    drak64 Member

    Joined:
    Mar 9, 2020
    Messages:
    50
    Likes Received:
    28
    Changes to the server.cfg file
    For rotation mode, you need to delete the two // tags from the '// sms_rotate' tag.
    Code:
    "sms_rotate",
    Also, make sure controlGameSetup is set to true:
    Code:
    controlGameSetup: true
    In 'sms_rotate_config.json', make sure all your combo tags are set to default:
    Code:
    default: { ANYTHING NOT HERE WILL NOT WORK IN YOUR COMBO }
    Always add your combos before ]}
    Code:
    rotation: [ YOUR_COMBOS ]}
    I've attached a 'sms_rotate_config.json' file as a demo.
     

    Attached Files:

    Last edited: Jul 7, 2025 at 10:26 AM
  15. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    53
    Likes Received:
    39
    What flags do you have selected for this:
    // See /api/list/flags/session in HTTP API for the full list. (-1610087912)
    "Flags" : -472366150
     
  16. SoulMaTriX

    SoulMaTriX New Member

    Joined:
    Oct 31, 2020
    Messages:
    29
    Likes Received:
    0
    So I no longer remember how I got that flag/session value as the server was running great since AMS 2 was launched until a couple of weeks ago. So this could have changed the number?. I decided to go with the following: (which seems to equal 155844856, correct?)
    "value" : 8, "name" : "ALLOW_CUSTOM_VEHICLE_SETUP"
    "value" : 16, "name" : "FORCE_REALISTIC_DRIVING_AIDS"
    "value" : 32, "name" : "ABS_ALLOWED"
    "value" : 64, "name" : "SC_ALLOWED"
    "value" : 128, "name" : "TCS_ALLOWED"
    "value" : 131072, "name" : "FILL_SESSION_WITH_AI"
    "value" : 524288, "name" : "AUTO_START_ENGINE"
    "value" : 4194304, "name" : "PASSWORD_PROTECTED"
    "value" : 16777216, "name" : "WAIT_FOR_RACE_READY_INPUT"
    "value" : 134217728, "name" : "PIT_SPEED_LIMITER"
     
  17. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    53
    Likes Received:
    39
    OK - I think your missing the FORCE_MULTI_VEHICLE_CLASS flag which is 1024 so flag value should be 155845880.

    Handy AMS2/PC2 flag spreadsheet tool by Asturbo here

    If you could upload full server.cfg (redacted admin/password stuff) that will also help.
     
    Last edited: Jul 8, 2025 at 8:55 AM
    • Agree Agree x 1
  18. fahim9

    fahim9 New Member

    Joined:
    Jun 29, 2025
    Messages:
    3
    Likes Received:
    0
    My question is , if you set up a dedicated server on a computer, can you use that same computer to go on the lobby to see if the server is showing as my dedicated server is not showing in the multiplayer lobby.

    So I have opened up 27015, 27016, 8766 on both UDP and TCP on the router using the COMPUTER IP ADDRESS the server is running on. (also opened up 4380 & 7777)

    I am using the dedicated AMS2 server in STEAM.

    The admin console shows clearly that the server is running and there are zero errors in the AMS2CMD command prompt run.
     
  19. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    53
    Likes Received:
    39
    Yes - You should be able to see it in the MP server browser even if hosted on same PC. Can you show cmd prompt output?
    Also, you can check in your ams2 documents folder the "C:\Users\<USER>\Documents\Automobilista 2\log\online.log to see if your server is in the list of public servers.

    Should look like this:

    Code:
    [14:10:29:027][0x000045dc] [Info ] [ServerBrowser::RefreshComplete] [GameManager] Dedicated server refresh done, found 0 servers, response 2
    [14:10:29:027][0x000045dc] [Info ] [ServerBrowser::RefreshListLocked] [GameManager] Requesting Internet server list...
    [14:10:29:586][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 0 ([P] ANZCRL 1998 Indycar Round 5 #JR)
    [14:10:29:597][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 1 (Arj Default Max Variety)
    [14:10:29:618][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 7 (GNZ AMS2 RACING SERVER - GNZ AMS2 RACING)
    [14:10:29:629][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 2 (SimAddicts Online League ( PRACTICE SERVER ))
    [14:10:29:640][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 4 (Arj Default Max Variety 2)
    [14:10:29:672][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 3 (GT3 24/7 ( live weather ))
    [14:10:29:693][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 6 (=HARDCORE=)
    [14:10:29:714][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 8 (OGG - Wednesday Night Racing)
    [14:10:29:725][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 13 (ARL IMSA - Season Finale Practice Server)
    [14:10:29:735][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 5 (Riscy's AMS2 Server - Super V8 at Adelaide)
    [14:10:29:746][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 12 (Unico Sim Racing)
    [14:10:29:830][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 23 ([P] 2ª T Camp FDS E2 B1 #JR)
    [14:10:29:830][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 28 (LIGACBR - SPRINT RACE LTE - www.ligacbr.com)
    [14:10:29:841][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 27 (LIGACBR - CORUJÃO T44 - http://ligacbr.com)
    [14:10:29:841][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 33 (BFR eSports - #2 - GT3 - SPA 24 H Pracitca )
    [14:10:29:852][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 14 (Viger)
    [14:10:29:863][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 32 (BFR eSports - #1 - F1 - F1 2025 Silverstone practica)
    [14:10:29:863][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 26 (LIGACBR - SPRINT RACE PRO - www.ligacbr.com)
    [14:10:29:873][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 29 (chewsday)
    [14:10:29:884][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 11 (RacingSimAddicts.com)
    [14:10:29:884][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 36 (ARL - Indy Car Practice Server)
    [14:10:29:895][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 39 (LFMPREU | Formula 3 Series | Practice 1 EU | S19W2 | lowfuelmot)
    [14:10:29:895][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 37 ([P] Simsports Formula #JR)
    [14:10:29:906][0x000045dc] [Info ] [ServerBrowser::ServerResponded] [GameManager] Received dedicated server response from Steam for server 42 (LFMPREU | Formula Sprints | Practice 1 EU | S19W3 | lowfuelmoto)
    
     

Share This Page