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:
    356
    Likes Received:
    159
    Alright guys I'm ready to give up on trying to run a DS. No matter what I do, I can't get the "Wait for race ready" option to show up and now I have a random AI car showing up in the multiplayer games. Is anyone willing to share their config file that has the "Wait for ready to race" and no random AI config that actually works?
     
  2. Micropitt

    Micropitt Mediocre driver doing mediocre laps AMS2 Club Member

    Joined:
    Jun 16, 2020
    Messages:
    728
    Likes Received:
    544
    There are different ways to setup the Dedicated Server.
    Option A: you setup everything in server.cfg and disable most lua files.
    Option B: you setup everything related to vehicles, tracks and race in sms_rotate_config.json

    Take a look here:
    Dedicated Server Configuration - Sample - Weather + MultiClass REALLY FIXED! -2/25/18
    Yes, it is over 2 years old and yes, it is for PCars2. But.....it does work with AMS2.
    The first thing you see is the server.cfg file. Copy/paste it and just change the parameters to match your setup (servername, usernames, ServerControls, Gridsize and MaxPlayers)
    Please note that there is nothing after Gridsize and MaxPlayers.

    The next section is the sms_rotate_config.json and that is where you setup everything related to vehicles, tracks and race setup. If you look through that file it pretty much is self explanatory. Just setup your track (either just one track or several tracks) and vehicle class and the race setup. Just make sure to disable the things you don't need with a //
    And that is all you need. If you set it up this way there is no need to do anything with the System Admin page.
     
  3. ganzoni

    ganzoni New Member AMS2 Club Member

    Joined:
    Aug 8, 2016
    Messages:
    13
    Likes Received:
    6
    I have a issue with the sms_stats_data.json file!

    I have edited the code from "\lua\sms_stats\sms_stats.lua" Lines 634->655
    -- Session game state changes.
    function handle_session_game_state_change( old_state, new_state )
    if not old_state or old_state == "" then
    old_state = "None"
    end
    session_game_state = new_state
    if ( old_state == "None" ) and ( new_state == "Lobby" ) then
    handle_new_session_lobby()
    elseif ( old_state == "Returning" ) and ( new_state == "Lobby" ) then
    handle_returning_session_lobby()
    elseif ( old_state == "Lobby" ) and ( new_state == "Loading" ) then
    handle_session_loading()
    elseif ( old_state == "Loading" ) and ( new_state == "PostRace" or new_state == "Race" ) then
    handle_session_loaded()
    elseif ( old_state == "PostRace" or old_state == "Race" ) and ( new_state ~= "PostRace" and new_state ~= "Race" ) then
    if new_state == "None" then
    handle_session_finished_prematurely()
    else
    handle_session_finished()
    end
    end
    end
    And changed "\lua_config\sms_stats_config.json"
    config : {
    "history_length" : 500,
    "track_events" : true,
    "track_results" : true,
    }


    Yesterday we had do 2 Races, when i upload the results to simresults (You can see the results here: Result 200910-PR9 - Imola_GP_2001 - RFRO Champ - www.racingfr.net - Automobilista 2 - Simresults), the names from race1 and race2 are not the same, race1 the steam name and race2 the complet names!?!?

    And in race1 the admin don't have the Steam ID recorded?
    And in race2 to no one have the Steam ID, just one driver who as joined at race2
    race1screen.PNG race2screen.PNG
     
  4. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,395
    Likes Received:
    1,439
    this is a simresults problem somehow. Happens also in Assetto.
     
  5. DaVeX

    DaVeX AMSUnofficial Staff AMS2 Club Member

    Joined:
    Mar 8, 2016
    Messages:
    1,994
    Likes Received:
    1,057
    guys did you know if there is a way to an and blacklist someone forever?
    ...right now there is only the ban for 1 hour option and you need to manually blacklist the wreckers
     
  6. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,395
    Likes Received:
    1,439
    could be a typical web restriction that it cannot directly write to the blacklist file. So just a temporary option.
     
  7. ganzoni

    ganzoni New Member AMS2 Club Member

    Joined:
    Aug 8, 2016
    Messages:
    13
    Likes Received:
    6
    Look the capture, the participantid 2 have NO NAME in the events.
    name_miss.PNG
    And here the name changed (Normaly it must be [RFRO] Paradiz and not Lionel...????
    wrong_name.PNG

    I have Attached the results file
     

    Attached Files:

  8. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,234
    Likes Received:
    1,046
    Variables in server.cfg

    Can someone explain what values i can use and what they mean,
    Or where i can find an explanation of these variables and their values

    "TireWearType" and "PenaltiesType"

    Thanks
     
  9. Goffik

    Goffik Well-Known Member

    Joined:
    Apr 5, 2020
    Messages:
    472
    Likes Received:
    308
    TireWearType = How fast the tyres degrade. Off, Slow, Standard, x2 - x7.

    PenaltiesType = Penalties for rule breaches active or not. Full or none.

    As mentioned in the very first post in this thread, you can find basic server documentation in UserGuide.pdf in the installation folder. You can get a list of values and what they do by putting http://127.0.0.1:9000/api/list/ into your browser with the server running.
     
    • Friendly Friendly x 1
  10. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,234
    Likes Received:
    1,046
    I found it in the list http://localhost:9000/api/list/ enums/tire_wear

    enums/tire_wear

    TireWearType

    0 x7
    1 x6
    2 x5
    3 x4
    4 x3
    5 x2
    6 standard
    7 slow
    8 off

    enums/penalties

    0 none
    1 full

    Penalties only enables the penalties, now i have to search for track-limit penalties and their amount-allowed
     
  11. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    356
    Likes Received:
    159
    I've given up on running a DS, nothing seems to work correctly. I even blew away the server and installed fresh configs from the links above while making personal edits. Nobody could connect to the server for whatever reason. At this point I've wasted more time than I care.

    Good luck to those of you still trying.
     
  12. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,395
    Likes Received:
    1,439
    my servers run w/o any problems since months. One wrong semnicolon can kill everything.
    As long you are just copying and pasting and then tell it does not work, nobody can help as of too few information.
    Post your cfg files and someone can read over it. Just edit ip adresses and usernames/passwords to something generic before posting.
     
  13. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,234
    Likes Received:
    1,046
    Running the dedicated server on the same PC as AMS2 i can see and enter my server in de " Browse Online" screen,
    Does this mean everyone can enter it ?
     
  14. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,234
    Likes Received:
    1,046
    20200912154841_1.jpg

    The flag "FORCE_REALISTIC_DRIVING_AIDS" is unclear for me, i want to have authentic Driving Assists, not full.
    And most of the settings are still adjustable, i want to have them grayed out, not changeable.
    Is that possible?
     
  15. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,395
    Likes Received:
    1,439
    if all the ports you configured in server.cfg file are open/forwarded on your router, yes. As long as your provider supports it.
    Google "forwardports pcars2"
    Also your ds must be allowed to communicate in firewall settings.
     
    • Informative Informative x 1
  16. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    356
    Likes Received:
    159
    Thanks for offering to help Herold. I've attached the files to this reply. Please let me know if you see anything out of the ordinary.
     

    Attached Files:

    Last edited: Sep 13, 2020
    • Agree Agree x 1
  17. SaxOhare

    SaxOhare Well-Known Member AMS2 Club Member

    Joined:
    Mar 10, 2016
    Messages:
    2,234
    Likes Received:
    1,046
    So being visible in the lobby isn't a sign for correct configuration, I probably should ask others if they can connect to test the server.
    I first try to solve the Force Authentic Assist issue, as long as i can't force disabled all driving-assist and only allow authentic-assists, there is no use for running my own server..
    Thanks
     
    Last edited: Sep 13, 2020
  18. Goffik

    Goffik Well-Known Member

    Joined:
    Apr 5, 2020
    Messages:
    472
    Likes Received:
    308
    Setting that flag forces everyone to have authentic driving aids, regardless of what settings they use in their config menus. It doesn't matter if they have the aids switched on or off, because the server dictates the racing rules, not the client.

    It doesn't stop people changing the aid settings in the car setup screen though, and nor should it. The setting is really to prevent people from using aids the real car does not have, not to prevent them reducing/disabling aids it does have.
     
    • Like Like x 1
  19. Giovani Baltieri

    Giovani Baltieri New Member

    Joined:
    Jul 6, 2019
    Messages:
    11
    Likes Received:
    0
    Unfortunately, these Reiza people are inept, nor do they know what they are doing. I managed to solve this and many other problems of the dedicated server by studying hard, questions that I posted here and they did not know how to solve and came up with insignificant answers, however I am already abandoning this arcade game !! I just got to know RFactor2, this is a racing simulator. Bye Reiza !!
     
    • Dislike Dislike x 4
  20. Micropitt

    Micropitt Mediocre driver doing mediocre laps AMS2 Club Member

    Joined:
    Jun 16, 2020
    Messages:
    728
    Likes Received:
    544
    Don't forget to buy the Reiza car pack in rFactor2. I heard it's awesome..... :rolleyes:
     
    • Funny Funny x 3
    • Like Like x 1

Share This Page