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

    Ben35390 Member AMS2 Club Member

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

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    43
    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.
     
  3. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    885
    Likes Received:
    1,245
    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
  4. 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
     
  5. 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
     
  6. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    43
    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
  7. 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?
     
  8. Svenny

    Svenny Member

    Joined:
    Jul 25, 2023
    Messages:
    43
    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
  9. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,467
    Likes Received:
    1,470
    there were 2 updates since 1.6
    Maybe you havent installed the latest version
     
  10. 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

Share This Page