AMS2 Dedicated Server Tool / SteamCMD Support

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

  1. ZIP_FR

    ZIP_FR New Member

    Joined:
    Oct 6, 2022
    Messages:
    1
    Likes Received:
    0
    Actually I found this to skip session and restart race.
    When you are hosting dedicated server (local) :
    Use this command line :

    http://127.0.0.1:9000/api/session/advance

    If it works you will get : result"ok"
    The race have to be done .. impossible de skip to the next session (lobby actually).

    and to kick/ban(with timer) instantly player, it's here in the session members :

    http://127.0.0.1:9000/status
    And you can copy/paste the SteamID before BAN to add it to your Blacklist file.

    EDIT : well sorry ... it's already made (I didn't read all carefully :p)

     
    Last edited: Feb 14, 2023
  2. ScantraxX26

    ScantraxX26 New Member

    Joined:
    Mar 1, 2023
    Messages:
    3
    Likes Received:
    1
    Dear simracing friends,

    I am trying to setup a DS for a lan party where friends can race eachother via offline LAN. Unfortunately I am not able to get the DS to show up on the server browser. When I refresh I get a "Failed to parse incoming P2P packet from #(steamID), size 17 - unknown message kind 114 set, in the serverCMD. I really don't know what I am doing wrong. Sportsplay has been enabled, I can login to localhost:9000 as well, but I just can't find a way to connect to it since it is not showing up. Is it maybe necessary to connect via Steam CMD?

    Kindest regards,
    ScantraxX26
     
  3. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,509
    Likes Received:
    716
    With sportsplay you need to add the server ip and port to the launch parameter of ams2, have you done that?
     
    • Like Like x 1
  4. ScantraxX26

    ScantraxX26 New Member

    Joined:
    Mar 1, 2023
    Messages:
    3
    Likes Received:
    1
    I did not do that indeed! Is it with the custom launching parameters from steam?
     
  5. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,509
    Likes Received:
    716
    Yes, you can add this in the launch parameters in steam:

    -sportsplay ip : port


    then ingame go to multiplayer, it will take a bit longer to populate the list, and your server should be at the top of the list
     
  6. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,509
    Likes Received:
    716
    @ScantraxX26
    Like this:
    upload_2023-3-1_20-29-2.png

    obviously changing it to your ip and portnumbers
     
  7. ScantraxX26

    ScantraxX26 New Member

    Joined:
    Mar 1, 2023
    Messages:
    3
    Likes Received:
    1
    • Like Like x 1
  8. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    356
    Likes Received:
    160
    There is a fix. If you search earlier posts I ran into this issue and after a long time of troubleshooting figured out the fix.
    1. You have to make sure the AMS2 DS has a very fast SSD to write the sms_stats_data.json file. Don't run it on a regular HDD.
    2. You have to make sure the SSD goesn't get over utilized, slowing it down. I keep the utilization under 70%.
    3. You have to constantly delete the sms_stats_data.json file after 2 races. As the file gets larger, it seems, it takes longer to write to the file causing warping in game.

    It took me a long time to figure all this out but once I did, AMS2 DS multiplayer ran like a champ. We experienced no warping and lagging during our league MP sessions and were able to race door to door the entire time without netcode punts. I bet this was probably hard for Reiza to replicate if they did most of their testing on clean fresh builds without a sms_stats_data.json file that got bloated over time.

    One thing I would like to see updated on the AMS2 DS, creation of a new sms_stats_data_xxx.json file (where xxx is the current date) for each race. Like how ACC DS creates their race stats file, this will alleviate the issue with the stats file getting too large and causing the warping issue.

    Just a few videos to show how good and close AMS2 MP can be after warping issue was solved. Basically bumper to bumper racing with NO netcode punts or warping.
    Rain battle:

    Dry battle:
     
    Last edited: Mar 7, 2023
    • Winner Winner x 4
    • Informative Informative x 4
    • Like Like x 1
    • Optimistic Optimistic x 1
  9. Gordon_Jacobson

    Gordon_Jacobson Member

    Joined:
    May 26, 2020
    Messages:
    112
    Likes Received:
    14
    Hi I posted a week or so ago about the Ai on a dedicated server being not well behaved.

    Tonight I ran a test, using the game to set up my multiplayer session. I choose the Ai aggression level as low and the Ai raced very fair and very well behaved.

    Does anyone know if they plan on adding or is there a Ai aggression level in the dedicated server setting? I was unable to find one...

    If the dedicated server doesn't have an aggression setting it sure would be nice to have them add one![​IMG]
     
  10. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,509
    Likes Received:
    716
    As far as i'm aware of the dedi doesnt support agression levels for the ai, which renders adding ai to a dedi server pretty much useless.
     
    • Like Like x 1
  11. Kro

    Kro Active Member AMS2 Club Member

    Joined:
    Aug 29, 2020
    Messages:
    243
    Likes Received:
    107
    We have been doing this from day one, we parce our own results at sro for AMS2 and PC2 so we like to keep the sms_stats_data with only the last event, in fact, we had emperor servers add the "delete all results" to their ded server software for us so we could start fresh every time .. unfortunately, our results are the same with the player lag, pauses, ect. same as always & this has been happening from the beginning for us. We have users from all over the world & I think that's the main issue with AMS2's peer-to-peer for us as the system has to deal with lots of different connection types & speeds... it seems to work ok with low numbers (under 10 players) emperor servers all use SSD's and 1 gbt net speeds (that make no difference with a peer-to-peer set-up).. We are hopeful the devs will come up with something as the sim evolves in 2023..
     
    • Agree Agree x 2
  12. Gordon_Jacobson

    Gordon_Jacobson Member

    Joined:
    May 26, 2020
    Messages:
    112
    Likes Received:
    14
    That is what I thought, I hope this changes in the future.:whistle:
     
  13. Ombra79

    Ombra79 New Member

    Joined:
    Mar 9, 2023
    Messages:
    8
    Likes Received:
    0
    hy i have a dedi server on rf2, and now i try to setup ams2 dedi , i have configured all and work ...but is possible to set up an password for private use? and then it's possible use the mod ? thank you
     
  14. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,509
    Likes Received:
    716
    yes, you can password the server, the dedi doesnt work with car mods, custom skins is only on your end as well
     
    • Like Like x 2
  15. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    873
    Likes Received:
    1,124
    Setting the 'password' field to anything other than empty string will force the requirement of the password set to join the server.

    upload_2023-3-9_17-14-25.png
     
    • Like Like x 2
  16. Ombra79

    Ombra79 New Member

    Joined:
    Mar 9, 2023
    Messages:
    8
    Likes Received:
    0
    i have another question it's possibile to install an live timing? thanks for all
     
  17. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    873
    Likes Received:
    1,124
    it would be possible to do something with the lua interface but I'm not aware if any existing projects exist that are openly available. If nobody here has any suggestion you may wish to investigate if anything existed for pcars2 as a starting point
     
    • Like Like x 1
  18. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,509
    Likes Received:
    716
    • Like Like x 1
  19. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    356
    Likes Received:
    160
    Yea what you say makes sense. Unfortunately the name of the game here is latency and lucky for us, all our drivers are in the same geographic location. Most of the folks have about 50ms consistent latency to the server and each other. On top of that we're regularly hosting 25-30 people on our server. Once we got the warping issue fixed, the experience has been amazing for everyone. I'm a firm believer of, if you want to host a great online racing experience; the latency of each person to the server has to consistently be under 100ms.

    I'm sure with your drivers spread all over the world and connection being inconsistent per person, it's a much bigger challenge. I agree, the peer to peer design might not be best suited for that scenario.
     
    • Agree Agree x 1
  20. SoulMaTriX

    SoulMaTriX New Member

    Joined:
    Oct 31, 2020
    Messages:
    22
    Likes Received:
    0
    Yeah I don't understand it. I only included FORCE_MULTI_VEHICLE_CLASS as I did not want the AI to be the same class or vehicle. For some reason commenting out the VehicleClassID allowed the dedicated server to operate with the 4 desired classes.

    This is how it is set and works somehow:

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

    // Multiple Class.
    "MultiClassSlots" : 4,
    "MultiClassSlot1" : 520250275,
    "MultiClassSlot2" : 1754258698,
    "MultiClassSlot3" : 1559064669,
    "MultiClassSlot4" : 1342781418,


    Side note: May be a dumb question, is it possible to set different AI levels per class? Reason, different skill levels of the racing group. Just wondering. Thank you.
     

Share This Page