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. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    405
    Likes Received:
    175
    It's in the following folder:
    \steamapps\common\Automobilista 2 - Dedicated Server

    Here is the latest change log:

    2024-12-04
    ------------

    - Fixed Power/Weight data for some vehicles
    - Added DLC data for 1.6 cycle content
     
    • Like Like x 1
  2. Ben35390

    Ben35390 Member AMS2 Club Member

    Joined:
    Feb 13, 2020
    Messages:
    77
    Likes Received:
    11
    I forgot ! :oops:
     
  3. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    49
    Likes Received:
    38
    I don't think this changelog has been updated for the latest release as the last entry was for the previous release, so don't know what has changed.
     
  4. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    889
    Likes Received:
    1,254
    I missed it but nothing of note changed. It was just a housekeeping update to match the hotfixed client that went out.
     
    • Like Like x 2
  5. Blincky

    Blincky New Member

    Joined:
    Dec 21, 2024
    Messages:
    2
    Likes Received:
    0
    Hi
    I now about httpapi
    like /api/list/attributes/session
    But how works with lua api

    or globals "lists.flags.session" or "SessionFlags" in Lua API (Example)
    where i can find it ?
    Or how is the Url ?
    Thanks
     
  6. Blincky

    Blincky New Member

    Joined:
    Dec 21, 2024
    Messages:
    2
    Likes Received:
    0
    Hi
    does somebody now what the api events url is
    i like to see the message output from the server

    i think start with this /api/log/ ... and than like server-chat
     
  7. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    49
    Likes Received:
    38
    Hi All HNY to everyone, especially the Reiza team!
    I'm hoping someone might be able to help me find the "extra_data" values using the Lua Tables/Lists.

    HTTP API for url api/list/tracks?extra_data=1 results in this:
    Code:
    "list" : [
          {
            "id" : -559709709,
            "name" : "Adelaide_Historic",
            "gridsize" : 26,
            "default_day" : 13,
            "default_month" : 11,
            "default_year" : 1988,
            "extra_data" : {
              "untranslated_name" : "adelaide_historic",
              "translated_name" : "Adelaide Historic 1988",
              "length" : 3780,
              "city" : "Adelaide",
              "country" : "Australia",
              "country_code" : "AU"
            }
          },
    
    
    In Lua, I can access the base track data using this code which I'm outputing to the addon.data in json:
    Code:
    for k,v in pairs(name_to_track) do
            k = v.name
            tracks[k] = {}
            tracks[k].id = v.id
            tracks[k].name = v.name
            tracks[k].gridsize = v.gridsize
            tracks[k].default_year = v.default_year
    end
    
    OUTPUT:
    Code:
    "tracks" : {
        "Adelaide_Historic" : {
          "default_year" : 1988,
          "gridsize" : 26,
          "id" : -559709709,
          "name" : "Adelaide_Historic"
        },
        "Adelaide_Modern" : {
          "default_year" : 2020,
          "gridsize" : 32,
          "id" : 827815091,
          "name" : "Adelaide_Modern"
        },
    
    I'm trying to get this data to make my lua DRB addon choose better race combos..

    EDIT: Would also be nice if data included a "headlights" boolean, that way I could also utilise day night racing knowing which cars/classes have headlights..
    EDIT: Sorry to tag you directly @Dave Stephenson, but I'm going bald!!...is the extra data seen in the HTTP API available from tables/lists within LUA?
     
    Last edited: Jan 5, 2025
    • Like Like x 1
  8. Addy_XL

    Addy_XL New Member

    Joined:
    Jul 29, 2024
    Messages:
    6
    Likes Received:
    3
    Curious if I'm missing something since the 1.6 update. I cannot get the server to show up in the multiplayer list. After some investigation, it seems that it isn't showing joinable, therefore it isn't showing up. It does show the "allowEmptyJoin" as true, and its worked previously. I did update the server just to see if that would make a difference but still nothing. I'm now considering nuking current dedicated server and starting from scratch, I do have the server.cfg file backed up, but wanted to get some insight here. Anybody else know of a way to enable it to be joinable via the api?
     
  9. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    49
    Likes Received:
    38
    Silly question, have you updated the dedicated server?

    Check ports are open but if still it doesn't appear in game Lobby List, another thing to check is the online.log file in /Documents/Automobilista2/log/.

    Dedicated servers that are running outdated code, won't appear in lobby list look like this:
    Code:
    (YOUR SERVER NAME)  with invalid server protocol version 10074, expected 10075
    
     
    Last edited: Jan 1, 2025
  10. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,482
    Likes Received:
    1,477
    there were 2 updates since 1.6
    Maybe you havent installed the latest version
     
  11. Addy_XL

    Addy_XL New Member

    Joined:
    Jul 29, 2024
    Messages:
    6
    Likes Received:
    3
    Thats honestly what happened. When I went into my terminal in Linux and was installing via steamcmd, it was saying it was completing, however it wasn't updating it like it said. I had to completely remove the folder, and redownload it from scratch. Not a big deal now that I know for the future though.
     
    • Informative Informative x 1
  12. Christophe Gaudry

    Christophe Gaudry New Member

    Joined:
    Dec 17, 2024
    Messages:
    9
    Likes Received:
    2
    Hello,
    Yesterday we organized an event and we experienced a nightmare that force us to host the race from a players's computer. The dedicated server ejected 6 players out of 18 after the practice session (just before the qualif).
    Usually we are 12 players and no problem.
    What can be the problem? I thought this kind of problem were fixed since 1.6 update.
    If it's a server problem, what can it be?
    We are running it from a Windows 10 Pro x64.

    Second question: if we host the race from a player's computer, is it possible to generate the "sms_stats_data.json" file?
    Thanks a lot.
     
    Last edited: Jan 23, 2025
  13. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,482
    Likes Received:
    1,477
    to the 2nd question: no

    Maybe with other tools like 2nd monitor you can write your own protocol
     
    • Like Like x 1
    • Agree Agree x 1
  14. HollPick#51

    HollPick#51 Member

    Joined:
    Jan 1, 2022
    Messages:
    30
    Likes Received:
    1
    Hi all,

    I and many racers in our group are noticing lag/glitches during online races.
    Cars who are 5 car lengths in front of you suddenly appear right in front of you.
    You hit them and suddenly they are back 5 car lengths away.

    Racing close to each other, suddenly the car beside you (or near in front) starts to move sideways, like a crab, and hit you or you anticipate to the movement. And just like they moved sideways, they also go back to their original path as if nothing happened.
    Rubber-banding, that was the term I heard in our group that describes exactly how it looks and feels.

    My PC is hardwired, Gigabit network, max ping to the server sits at 22ms, average ping sits at 20ms.
    If I tracert the IP address of the Emperor server, i do get a lot of *'s.
    I believed that * could mean that packagelost is a fact.


    |------------------------------------------------------------------------------------------|
    | WinMTR statistics |
    | Host - % | Sent | Recv | Best | Avrg | Wrst | Last |
    |------------------------------------------------|------|------|------|------|------|------|
    | 192.168.0.1 - 0 | 55 | 55 | 0 | 1 | 8 | 1 |
    | xxxxxxxxxx.xxxxxxxx.be - 0 | 55 | 55 | 9 | 15 | 37 | 16 |
    | xxxxxxxxxx.xxxxxxxx.be - 27 | 26 | 19 | 11 | 15 | 21 | 11 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | 4.68.70.53 - 0 | 55 | 55 | 13 | 25 | 68 | 24 |
    | ae2.2.edge3.bru1.neo.colt.net - 0 | 55 | 55 | 14 | 21 | 38 | 20 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | bru-lcl1-sbb1-8k.be.eu - 0 | 55 | 55 | 17 | 22 | 37 | 25 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | bru-lcl1-sbb1-8k.be.eu - 0 | 55 | 55 | 17 | 23 | 37 | 25 |
    | be101.gra-g1-nc5.fr.eu - 0 | 55 | 55 | 18 | 78 | 350 | 25 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | No response from host - 100 | 11 | 0 | 0 | 0 | 0 | 0 |
    | gra-03.fra.emperorservers.net - 0 | 55 | 55 | 16 | 24 | 37 | 16 |
    |________________________________________________|______|______|______|______|______|______|
    WinMTR v0.92 GPL V2 by Appnor MSP - Fully Managed Hosting & Cloud Provider

    Could this be the issue?
    If so, all drivers in our group are suffering the same issue, how come?
    Any possibility to monitor this network thing?
     
    Last edited: Jan 27, 2025
  15. kmikiwi

    kmikiwi Member

    Joined:
    Jun 19, 2016
    Messages:
    69
    Likes Received:
    28
    Hi there!
    Question is:
    How can I restrict which car each driver should use on my server when it is multiclass or multiseries? In lfm you must choose the car on the web and with that you must participate, when you are in the lobby you get the message that you chose your car correctly or incorrectly, how is that done within the dedicated server? Could it not only be restricted to a car, could it also be restricted to a specific livery? can you have and use an entry list? how it works?

    Thanks!
     
  16. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,603
    Likes Received:
    754
    It is probably a LUA script they created, probably working together with a whitelist.

    I don't know the specifics though
     
    • Agree Agree x 1
  17. drak64

    drak64 New Member

    Joined:
    Mar 9, 2020
    Messages:
    29
    Likes Received:
    22
    It would save us some work, I had to make the list manually, with that the start time and even the speed of time are randomly chosen.
     
  18. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    49
    Likes Received:
    38
    When I've seen this "crabbing" happen, it's usually that driver has a high ping. For me sub 500ms is good, but when it's above that it can get a bit sketchy....
     
    Last edited: Feb 8, 2025
  19. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    49
    Likes Received:
    38
    I don't now either but it would be a custom lua script, basic example would be on LFM when players signup and select car, as soon as signups close this data gets written to a special json data file that is sent to the server, the custom lua script would check this json data file for users steam id when they enter the server, match it to whitelist in normal config and then match the steamid to the car selected at signup versus the car selected in game, if mismatch send chat message, if not changed within x secs, force kick.
     
    Last edited: Feb 8, 2025
    • Agree Agree x 1
  20. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    49
    Likes Received:
    38
    Hopefully the devs can add this someday and inlcude more data like you see ingame for both cars and tracks plus make that available in lua tables as well..fingers crossed!
     

Share This Page