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

    Redvaliant Well-Known Member

    Joined:
    Apr 4, 2020
    Messages:
    135
    Likes Received:
    254
    Yes it's confusing, but it is not a simple case of 1 or 0 to enable or disable features as the damge settings below illustrate:
    },
    "enums/damage" : {
    "description" : "Enum describing various damage types",
    "list" : [
    {
    "value" : 0,
    "name" : "OFF"
    },
    {
    "value" : 1,
    "name" : "VISUAL_ONLY"
    },
    {
    "value" : 2,
    "name" : "PERFORMANCEIMPACTING"
    },
    {
    "value" : 3,
    "name" : "FULL"
    }
    ]
    },
    "enums/damage_scale" : {
    "description" : "Enum describing damage scale levels",
    "list" : [
    {
    "value" : 0,
    "name" : "LOW"
    },
    {
    "value" : 1,
    "name" : "MEDIUM"
    },
    {
    "value" : 2,
    "name" : "HIGH"
    },
    {
    "value" : 3,
    "name" : "MAX"
    }
    ]

    Here is the full list from a few months back. It doesn't include the latest car or track additions but it has everything else. Scroll down for the flags/enums, below the car/track lists.
     

    Attached Files:

  2. VFX Pro

    VFX Pro Well-Known Member AMS2 Club Member

    Joined:
    Mar 31, 2017
    Messages:
    1,158
    Likes Received:
    631
    It's too bad setting up a good dedicated server is that complicated. I'm pretty sure if we had more choice there would be more players around the world. Does anyone know if joining on a dedicated server (vs P2P) also contributes towards online ranking?
     
  3. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,276
    Likes Received:
    1,368
    its the same procedure since 2015 when PC1 came out.
    I think its not as hard as you write.
    Not fool proof, but also not so OMG hard, as you seem to tell :p
     
    • Agree Agree x 2
  4. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,227
    Likes Received:
    564
    yeah agreed, @VFX Pro if you find this is complicated, try setting up an RF2 dedicated server.....lol
     
    Last edited: Apr 1, 2023
    • Winner Winner x 1
  5. sgsfabiano

    sgsfabiano Well-Known Member AMS2 Club Member

    Joined:
    Oct 28, 2019
    Messages:
    1,981
    Likes Received:
    1,189
    Which events are recorded in the sms_stats_data.json file?

    I just did a P, Q, R in a server filled with AI and all the three sessions have the 'event' attribute empty, even though I crashed my car and had to DNF due to damage.

    Edit: I should've looked into the docs... here is the answer if anybody came across this post with the same question (user guide, pg 15):
    “events”: Array of participant events related to the stage. Each event has fields event_name, time, participantid and attributes with the event details, and fields name, refid and is_player with useful participant info. Events that are recorded here are: Lap, State, Impact, CutTrackStart, CutTrackEnd. The default config does not enable events tracking, so this array will always be empty unless the “track_events” boolean config flag is changed to true.
     
    Last edited: Apr 23, 2023
  6. sgsfabiano

    sgsfabiano Well-Known Member AMS2 Club Member

    Joined:
    Oct 28, 2019
    Messages:
    1,981
    Likes Received:
    1,189
    Sorry for double posting, but I'm unable to locate the track_events flag. Where do I set it?
     
  7. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,276
    Likes Received:
    1,368
    \lua\sms_stats\sms_stats_default_config.json
     
    • Like Like x 1
    • Friendly Friendly x 1
  8. sgsfabiano

    sgsfabiano Well-Known Member AMS2 Club Member

    Joined:
    Oct 28, 2019
    Messages:
    1,981
    Likes Received:
    1,189
    Thank you!
     
  9. sgsfabiano

    sgsfabiano Well-Known Member AMS2 Club Member

    Joined:
    Oct 28, 2019
    Messages:
    1,981
    Likes Received:
    1,189
    I can't seem to enable the FILL_SESSION_WITH_AI flag... any other special config must be done beyond adding the FILL_SESSION_WITH_AI flag to the Flags string?

    sms_rotate_config.json:
    Code:
    // Config version.
    version : 7
    
    // Default configuration.
    config : {
    
        // Is the current rotation index persistent? If true, the rotation will continue after server restart,
        // If false, the rotation will always start from the first setup.
        // You can always delete the sms_rotate_data.json file from lua_config to reset the persisted index.
        "persist_index" : false,
    
        // The default setup. This is a table with attributes and values. The following rules apply to the attributes:
        // - If TrackId is specified: The track to enforce. Automatically sets 1 to ServerControlsTrack
        // - If VehicleModelId is specified: The vehicle to enforce. Automatically sets 1 to ServerControlsVehicle, sets FORCE_IDENTICAL_VEHICLES to Flags
        // - If VehicleClassId is specified: The class to enforce. Automatically sets 1 to ServerControlsVehicleClass, sets FORCE_SAME_VEHICLE_CLASS to Flags
        // - Track, vehicle model, vehicle class and all enum/flags attributes can use values in string forms - so you can use either track id, or track name.
        // - Flags in string form can contain multiple flags separated by comma, so for example "ABS_ALLOWED,SC_ALLOWED,TCS_ALLOWED"
        // - The setup should never contain any of the "ServerControls" attributes, those are decided automatically.
        // - The setup should never contain both VehicleModelId and VehicleClassId at the same time. Restrict either the class or specific vehicle.
        // - The Flags attribute should never contain FORCE_IDENTICAL_VEHICLES or FORCE_SAME_VEHICLE_CLASS flags, those are decided automatically.
        "default" : {
            "PracticeLength" : 10,
            "QualifyLength" : 10,
            "RaceLength" : 10,
    
            "Flags" : "ALLOW_CUSTOM_VEHICLE_SETUP,FORCE_REALISTIC_DRIVING_AIDS,FILL_SESSION_WITH_AI,AUTO_START_ENGINE,PIT_SPEED_LIMITER,MECHANICAL_FAILURES,WAIT_FOR_RACE_READY_INPUT",
            "DamageType" : "FULL",
            "TireWearType" : "STANDARD",
            "FuelUsageType" : "STANDARD",
            "PenaltiesType" : "FULL",
            "AllowedViews" : "Any",
            "PitWhiteLinePenalty" : 1,
            "DriveThroughPenalty": 1,
            "AllowedCutsBeforePenalty": 2,
            "ManualPitStops": "Manual",
            "FullCourseYellows": 1,
            //"ServerControlsSetup": 1,
            //"ServerControlsTrack": 1,
            //"ServerControlsVehicleClass": 1,
            "GridSize": 20,
            "MaxPlayers": 1,
            "OpponentDifficulty": 100,
    
            "PracticeDateHour" : 10,
            "PracticeWeatherSlots" : 4,
            "PracticeWeatherSlot1" : "Clear",
            "PracticeWeatherSlot2" : "Random",
            "PracticeWeatherSlot3" : "Random",
            "PracticeWeatherSlot4" : "Random",
    
            "QualifyDateHour" : 14,
            "QualifyWeatherSlots" : 4,
            "QualifyWeatherSlot1" : "Clear",
            "QualifyWeatherSlot2" : "Random",
            "QualifyWeatherSlot3" : "Random",
            "QualifyWeatherSlot4" : "Random",
    
            "RaceDateHour" : 14,
            "RaceWeatherSlots" : 4,
            "RaceWeatherSlot1" : "Clear",
            "RaceWeatherSlot2" : "Random",
            "RaceWeatherSlot3" : "Random",
            "RaceWeatherSlot4" : "Random",
        },
    
        // The rotation. Array of setups to rotate. If empty, just the default setup will be used with no actual rotation happening.
        //
        // These setups are applied on top of the default setup, then applied to the game. Previous setup in the rotation is never used.
        // So for example if you wanted to repeat the same track in multiple consecutive setups, different from the default track,
        // each of those setups needs to explicitly include that track. Also remember that apart from the flags nothing can be "removed"
        // from the default setup, so if the default setup contains a track, some track will always be enforced (either the default one,
        // or the setup-specific one). And one last thing, these override setups can never include an attribute that's not specified in
        // the default setup - it can just override some of the default attributes, not add new ones. The only exception are the
        // track/vehicle/class attributes.
        //
        // Attributes in these setups can have a special attribute RemoveFlags set, which will remove the specified flags from the default
        // setup instead of adding them to it (which is what the Flags attribute will do)
        "rotation" : [
            {
                "TrackId" : "Interlagos_GP",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 71,
                "RaceLength" : 18,
            },
            {
                "TrackId" : "Kansai_GP",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 53,
                "RaceLength" : 14,
            },
            {
                "TrackId" : "Nurb_GP_2020",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 60,
                "RaceLength" : 15,
            },
            {
                "TrackId" : "Silverstone_GP",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 52,
                "RaceLength" : 13,
            },
            {
                "TrackId" : "Spa_Francorchamps_2022",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 44,
                "RaceLength" : 11,
            },
            {
                "TrackId" : "Spielberg_Modern",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 71,
                "RaceLength" : 18,
            },
            {
                "TrackId" : "Azure_Circuit_2021",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 78,
                "RaceLength" : 20,
            },
            {
                "TrackId" : "Monza_2020",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 53,
                "RaceLength" : 14,
            },
            {
                "TrackId" : "Montreal_Modern",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 70,
                "RaceLength" : 18,
            },
            {
                "TrackId" : "Imola_GP_2018",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 60,
                "RaceLength" : 15,
            },
            {
                "TrackId" : "Hockenheim_GP",
                "VehicleClassId" : "F-Reiza",
                //"RaceLength" : 45,
                "RaceLength" : 12,
            },
        ]
    }
    
    Edit: for the people of the future who eventually come across a similar issue: the config file was not loaded because of an error, therefore it loaded default server settings.
     
    Last edited: May 1, 2023
  10. Racing Bears TV

    Racing Bears TV Member

    Joined:
    Oct 8, 2021
    Messages:
    16
    Likes Received:
    39
    After the last update I'm having the following problem, the dedicated servers that I open via the machine in azure simply disappear from the list of rooms, they appear the first time, however if you leave the room or just update the rooms they disappear randomly, if you stay forcing updates it can reappear. This has never happened before, there was no problem and no server configuration has changed since last week. In the dedicated log he keeps it as "running"

    Has anyone had this kind of problem and managed to solve it?
     
  11. Nobkins

    Nobkins Well-Known Member AMS2 Club Member

    Joined:
    Mar 8, 2016
    Messages:
    329
    Likes Received:
    293
  12. Racing Bears TV

    Racing Bears TV Member

    Joined:
    Oct 8, 2021
    Messages:
    16
    Likes Received:
    39
  13. Racing Bears TV

    Racing Bears TV Member

    Joined:
    Oct 8, 2021
    Messages:
    16
    Likes Received:
    39
    • Like Like x 1
  14. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    862
    Likes Received:
    1,100
    There are some situations were responses fail to parse or arrive late that can lead to them not showing though typically you can get around that when looking for a specific server by using the filters as this will reduce the number of servers that must be queried. There's some work to do there to improve that situation still.

    However in this instance it's possible you are being caught by a bug which was inroduced in the most recent patch which can result in some dedicated servers being incorrectly hidden from the list as invalid when they should not be. A small game client fix for this was rolled out today to address it.
     
    • Like Like x 6
    • Informative Informative x 1
    • Friendly Friendly x 1
    • Useful Useful x 1
  15. GeekyDeaks

    GeekyDeaks Member AMS2 Club Member

    Joined:
    Jan 17, 2022
    Messages:
    83
    Likes Received:
    47
    @Dave Stephenson - sorry to ping directly, but would you be able to provide a definitive answer to a question on setting the AI aggression with a dedicated server?

    I'm fairly certain the setting simply doesn't exist, but I'd be mighty happy to be wrong and told how it can be done.

    If it cannot be set, the next question is what is the expected behaviour of the host? Does it just get set to high or the last setting the host had when running their own session?
     
    • Useful Useful x 1
  16. RockyTM

    RockyTM Modder AMS2 Club Member

    Joined:
    Jan 8, 2022
    Messages:
    71
    Likes Received:
    87
    Any chance you can add the functionality that used to be in PC2, where you can make a Multiplayer lobby directly, without going through the listing of the servers first? (PC2 - Create Online Event)
     
  17. NutzMcKracken

    NutzMcKracken New Member

    Joined:
    May 10, 2023
    Messages:
    2
    Likes Received:
    0
    Seems to be an inconsistency with reading whether Ai fill the session or not, I'm choosing to not to:

    "Flags" : "ALLOW_CUSTOM_VEHICLE_SETUP,FORCE_REALISTIC_DRIVING_AIDS,ABS_ALLOWED,TCS_ALLOWED,MECHANICAL_FAILURES,AUTO_START_ENGINE,WAIT_FOR_RACE_READY_INPUT,PIT_SPEED_LIMITER,TIMED_RACE",
    (no FILL_SESSION_WITH_AI)

    // Race Config
    "GridSize" : 24,
    "MaxPlayers" : 24,

    Yet fills with 8 Ai.
    Server.cfg has no flag values and same Grid and Max size.

    Am I missing something?


    UPDATE:
    Seems when in Server Lobby it incorrectly stated 8 Ai were being added, yet when starting session no Ai were present.
     
    Last edited: May 10, 2023
  18. seagersr

    seagersr New Member

    Joined:
    Jun 30, 2022
    Messages:
    1
    Likes Received:
    0
    Saving Results Before ending sesion
    Hi there, i search on the forum to see if someone has already asked for this.

    I want to save the results on a Practice Session, event if it has not ended, like a "hotlap" session.
    sms_stats as default, as far as i can tell, it saves the results when the session is over, but, if i quit the session before, and im the only one on the server, it does not save the results.

    Is it possible to change a "parameter" on the sms_stats or other file?

    thanks in advance.
     
  19. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,276
    Likes Received:
    1,368
    it did that b4 the last update i think
     
  20. GeekyDeaks

    GeekyDeaks Member AMS2 Club Member

    Joined:
    Jan 17, 2022
    Messages:
    83
    Likes Received:
    47
    There was a bit of a discussion about the settings and triggers of that lua script a while back. Not sure if it will help, but it was here:

    AMS2 Dedicated Server Tool / SteamCMD Support
     
    • Like Like x 1

Share This Page