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,830
    Likes Received:
    892
    When you say the laptime isn't shown in the results file, does it totally not show or is it shown as invalid whilst ingame it shows as being valid?

    I do know that the dedi can detect different tracklimits compared to what's shown ingame.

    We've been using JustRace and their servermanager,which i believe generates a modified results file to prevent issues with the results/laptimes.
     
  2. fahim9

    fahim9 New Member

    Joined:
    Jun 29, 2025
    Messages:
    16
    Likes Received:
    1
    Hi stealth,

    I applied port forwarding to GPBikes and Assetta Corsa and they both work.
    Not sure what AMS2 is demanding to be done differently?
     
  3. Ben35390

    Ben35390 Member AMS2 Club Member

    Joined:
    Feb 13, 2020
    Messages:
    88
    Likes Received:
    13
    The times (and therefore the pilot) are not present in the "sms_stats_data.json" file generated by the server. I can't find a reason for this; it's random, because sometimes the pilot is present but not all the times it has recorded are included. This only started appearing in mid-December; before that, there were no problems like this for four years.
     
  4. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,830
    Likes Received:
    892
    Ok, that's strange, maybe @gian can tell more about this, or investigate the issue, possibly a recent update caused this
     
  5. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    479
    Likes Received:
    233
    Has anyone noticed that the DS doesn't record stats for people that disconnect mid race for whatever reason? For some reason I thought this was fixed last year. Maybe I'm wrong.
    If you look in the sms_stats.json file, it's like they were never there. It would be nice if the DS kept a record of folks that disconnected mid race in the results file.
    @Dave Stephenson if possible, can this feature be implemented in a future update please?
     
  6. Kro

    Kro Active Member AMS2 Club Member

    Joined:
    Aug 29, 2020
    Messages:
    255
    Likes Received:
    113
    For us, the DED is not showing the race at all! Last 2 races sms_stats_data.json has P1 and Q but no race ..It was working ok for years but now this random "no race results" issue is showing up ..
     

    Attached Files:

  7. Ben35390

    Ben35390 Member AMS2 Club Member

    Joined:
    Feb 13, 2020
    Messages:
    88
    Likes Received:
    13
    New issues on our servers :( , others are in this case?

    upload_2026-1-9_18-52-26.png
     
  8. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    184
    Likes Received:
    223
    I would need to see your json file and ideally the online log file too to know whats going on, im not aware of an issue there.
     
  9. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    184
    Likes Received:
    223
    Ok, thats a valid report, thanks, I can reproduce this bug, it was fixed last year but it seems the fix only applied to the results being displayed in the AMS2 final results screen, somehow its still not working for the results in the sms_stats.json file for the dedi server.

    I think thirdy party platforms are using some workaround to display the results of disconnected participants, which isnt ideal.

    I think I know what it is, I will check.
     
    • Like Like x 1
  10. gian

    gian Administrator Staff Member AMS2 Club Member

    Joined:
    Mar 16, 2020
    Messages:
    184
    Likes Received:
    223
    yeah I can see in your json file that the race result is missing.

    Should be a rare bug otherwise it would be reported widespread by third party platforms, and its the first time i hear about it.

    I would need your online log file to try to infer what happened. Nothing comes to mind mind that could have caused it.
     
    • Like Like x 1
  11. Ben35390

    Ben35390 Member AMS2 Club Member

    Joined:
    Feb 13, 2020
    Messages:
    88
    Likes Received:
    13
    @gian , where is saved the online log file ?
     
  12. Marius H

    Marius H Forum moderator Staff Member AMS2 Club Member

    Joined:
    Mar 24, 2016
    Messages:
    6,967
    Likes Received:
    3,763
    Yourdrive:\Users\Ben35390\Documents\Automobilista 2\log
     
  13. Ben35390

    Ben35390 Member AMS2 Club Member

    Joined:
    Feb 13, 2020
    Messages:
    88
    Likes Received:
    13
    Thanks,:) the access path isn't exactly the same on a dedicated server, but I found it.
    ....Documents\Automobilista 2 - Dedicated Server\dbgSession
     
    • Like Like x 1
  14. Kro

    Kro Active Member AMS2 Club Member

    Joined:
    Aug 29, 2020
    Messages:
    255
    Likes Received:
    113
    Thanks for having a look, Its strange for sure. One time, the results only had one driver: me! lol.
    We rent a ded from Emperor servers and have been using it for years now without many issues.
    One thing I have been doing is advancing the server from P to Q & R using "Advance session" tab they offer with their software.
    Desktop Screenshot 2026.01.10 - 13.18.32.41.jpg
    The 2 times I had issues with the results, I used my 'Android pad' on the server's site 'control panel' to advance the sessions. It all worked as it should, but no race results o_O

    The last race we had, the results worked properly. The difference was I alt/tabbed from my game pc to the emperor control panel to use the advance featuere. Don't know if thats anything, as it's still just making calls to the API ?

    Anyway It could be something on my end, throwing the server off?..
    I was not the HOST either, but I have been in the past, and I was when it only had me, the one driver in the results where we had 13 drivers ...
    Emperor offers logs so Next time I will try and grab the log files..;)
     
  15. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    998
    Likes Received:
    1,523
    I'd really suggest steering clear of the advance session option. It's something that is only available in the default ui via the legacy server view. I've never taken it away in case somebody is relying on it in scripts they ported over in the expectation they have also used it enough to know the limitations but it's not really in a condition for primetime use imo and that's why I have never exposed it in the main default http ui.

    In it's current state it will just advance the session rather than 'end the session, and then advance' so you don't get any proper results for that session in game. This may not be a problem if advancing from P to Q for example and why I didn't outright remove it but from Q to R in my testing will result in no formal qualifying results and the grid being set by join order.

    During some testing with JR we also isolated some reports of floating cars in the following session to be linked to advancing the session while there are cars on track with those clients being the ones that are visibly incorrect to other drivers.

    These are things that are in the roadmap to address so we can provide a proper in-game voting mechanism for advancing sessions (subject to server config) but for the moment I'd advise not relying on the functionailty for any sessions/events that matter and preferably not at all for now.
     
    • Like Like x 2
    • Agree Agree x 2
    • Informative Informative x 2
    • Winner Winner x 1
  16. Kro

    Kro Active Member AMS2 Club Member

    Joined:
    Aug 29, 2020
    Messages:
    255
    Likes Received:
    113
    Thx Dave for the detailed explanation!
     
    • Like Like x 1

Share This Page