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

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    I think the F-USA 23 vehicle id is wrong in the dedi api or in the race results:
    http://localhost:9000/api/list/vehicles:
    Code:
     {
            "id": -360792512,
            "name": "Formula USA 2023",
            "class": "F-USA_2023"
    },
    race results from the F-USA 23 race:

    Code:
    "results": [
                  {
                    "attributes": {
                      "FastestLapTime": 38289,
                      "Lap": 52,
                      "RacePosition": 1,
                      "State": "Finished",
                      "TotalTime": 2116883,
                      "VehicleId": 58938606
                    },
                    "is_player": true,
                    "name": "Some guy",
                    "participantid": 11,
                    "refid": 29377,
                    "time": 1689015438
                  }
    
    dedi id: "id": -360792512,
    results id: "VehicleId": 58938606

    Is it a bug or am I reading this wrong?
     
  2. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    884
    Likes Received:
    1,244
    @roszman it will be one of its low downforce/oval variants.

    They are intentionally not in the list as they aren't directly user selectable but this does raise a shortcoming there about the available data. It's something I've already got half an eye on as it's been raised recently the same case is true in shared memory output
     
    • Informative Informative x 2
    • Like Like x 1
  3. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    Ok, so it's stays at it is for now?
     
    • Like Like x 1
  4. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    Are there any other vehicles with different ids in results and dedi api?
     
    • Like Like x 1
  5. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    Another race, this time non-oval and the results are showing
    Code:
    "results" : [
                  {
                    "attributes" : {
                      "FastestLapTime" : 70586,
                      "Lap" : 37,
                      "RacePosition" : 1,
                      "State" : "Finished",
                      "TotalTime" : 2761716,
                      "VehicleId" : -360792512
                    }
    "VehicleId" : -360792512

    How can I know when dedi will use "VehicleId": 58938606 and when "VehicleId" : -360792512 ?

    It would be best if you could expose just one id and map bewteen the two ids behind the scenes, otherwise I and every interested person would need to do such mapping by ourselves.

    Can you give me info how many ids F-USA 23 and other cars can have? So I can prepare my system for variable ids.
     
    • Like Like x 1
  6. Balamacab

    Balamacab Member AMS2 Club Member

    Joined:
    May 17, 2020
    Messages:
    33
    Likes Received:
    18
    Excellent documentation, now how can I automatically start a headless local client that connect to the server after starting the server that will support a grid with 32 cars?

    I quite challenging to automate a League operation guaranteeing good performance when a client is added to the equation. :(

     

    Attached Files:

    • Agree Agree x 1
  7. RnageyRover

    RnageyRover Member AMS2 Club Member

    Joined:
    Aug 8, 2022
    Messages:
    65
    Likes Received:
    70
    I agree it's a pain. Our solution is not to advertise the opening of the server or give password until the best possible host is in the lobby, along with broadcaster/spectator etc.
     
  8. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    Headless local client would be super cool, but if it's possible to create headless client then it would be even better to incorporate it into the dedi itself. I am not sure how it would manage AI, but online AI is not very important feature so it could be disabled for dedi.

    I wonder what is the code quality in PC2/ME, if it's well written, with tests and stuff, then it shouldnt be a big problem to extract hosting code to dedi.

    Such change would put AMS2 multiplayer on the next level.
     
    • Like Like x 1
    • Agree Agree x 1
    • Disagree Disagree x 1
    • Informative Informative x 1
  9. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    So is it possible to get those ids?
     
  10. Mamuto

    Mamuto New Member AMS2 Club Member

    Joined:
    Jun 21, 2023
    Messages:
    9
    Likes Received:
    4
    I'm not able to see most of the RX tracks since 1.5 release on a dedicated server. Just Ascurra and Tykki, and even then not all combinations (no joker variants). Did I mess something up with the update? Self-hosting I see all tracks just fine.
     
  11. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,556
    Likes Received:
    738
    They are showing up for me, but make sure to not set the max amount of drivers higher then 6 for the RX tracks, and higher then 16 for the dirt tracks, if you set your server higher then you wont see those tracks ingame.

    When setting up the server using the httpapi i think when you select a certain rx track, it automatically changes the driver amount
     
  12. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,456
    Likes Received:
    1,456
    jep. An old problem
    If allowed participant amount on DS is higher than max participants of a track, then the track is invisible
     
  13. Mamuto

    Mamuto New Member AMS2 Club Member

    Joined:
    Jun 21, 2023
    Messages:
    9
    Likes Received:
    4
    ah fer fooks sake, I was aware of that and I changed "maxPlayerCount" but neglected to also update "GridSize" and "MaxPlayers"
    Works now, thanks again
     
  14. viper4r

    viper4r Active Member AMS2 Club Member

    Joined:
    Mar 5, 2020
    Messages:
    150
    Likes Received:
    56
    Small issue: The Ginetta G58 from Class P1Gen2 is missing in the HTTP API (Beta and Release).
     
  15. Shriukan

    Shriukan Touristenfahrten Community AMS2 Club Member

    Joined:
    Sep 23, 2019
    Messages:
    1,293
    Likes Received:
    931
    Alternative for now is to configure the server through the server.cfg/sms_rotate. If you join Touristenfahrten AMS and pick the car, I’ll be able to see its ID and share it. Just reply if you’ve done it. I forgot to check for it myself yesterday so I could add it to the server’s whitelist.
     
  16. Kro

    Kro Active Member AMS2 Club Member

    Joined:
    Aug 29, 2020
    Messages:
    247
    Likes Received:
    110
    I did it .. FYI, it kicks you as soon as you hit drive. :p
    Automobilista 2 Screenshot 2023.07.28 - 01.25.29.61.jpg
     
  17. Shriukan

    Shriukan Touristenfahrten Community AMS2 Club Member

    Joined:
    Sep 23, 2019
    Messages:
    1,293
    Likes Received:
    931
    Thank you for that. Yes the kicking out is normal as the ID wasn’t in the list of allowed cars, meaning a kick 20s after loading on track. The ID was missing from the api/list/vehicles data. I’ve added it now though.

    The ID is 1989434463
     
  18. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    884
    Likes Received:
    1,244
    It's present in both so likely your update has failed, please validate files and try again.
     
    • Disagree Disagree x 2
  19. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,556
    Likes Received:
    738
    Are you sure, i just checked and i have all the RX cars, formula dirt and kartcross, but i also dont see the Ginetta from the P1gen2 class, i see all the other cars from that class as well
     
    • Agree Agree x 1
  20. viper4r

    viper4r Active Member AMS2 Club Member

    Joined:
    Mar 5, 2020
    Messages:
    150
    Likes Received:
    56
    If I open the URL server:9000/api/list/vehicles I found 4 vehicles in class P1Gen2, but the Ginetta G58 is not there.
    I validated the files for Beta and Release version via Steam, but the issue is still there.
     

Share This Page