AMS2 Dedicated Server Tool / SteamCMD Support

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

  1. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    Hi everyone, do you think I can install a dedicated server on a miniPC with these characteristics?

    Mini PC
    8 GB DDR4L
    128GB M.2 SSD
    Intel Celeron J4125 (up to 2.7 GHz) Windows 10 Pro

    If I may, how many connections could it manage (connected users)?
     
  2. Asturbo

    Asturbo Member AMS2 Club Member

    Joined:
    Apr 8, 2017
    Messages:
    38
    Likes Received:
    47
    There is no info about the DS requirements, buf I had a similar specs computer as DS of PCARS2 up 20 users. From my experience, it's more important a low latency connection (server and 1st player who logs), than the CPU performance.
     
    • Agree Agree x 1
  3. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    Ok, I'll try as soon as ... Thanks!
     
  4. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    good news.... i've tested online server with my miniPC (see spec above) and it's work!!! the test running with 24 slot, 12 reserved humans and 1 only connected (me!!!), the other 11 filled by AI.
    if i looked carefully the CPU was at 6-8% but tomorrow i will try with my friends....
    Meanwhile i have another question....
    I launch the dedicated server and change settings via browser... but the setting I set is not written to server.cfg; is there a method to solve it?
     
  5. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,439
    Likes Received:
    671
    basically the server.cfg and the browser config are 2 different things, the server.cfg specifies the settings that the server loads on starting the dedicated server, the browser config allows you to adjust the settings, but only for that or the next session.

    if you want it to start with a certain configuration by default, you need to edit the server.cfg
     
  6. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    All clear, thanks
     
  7. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    Good morning everyone.
    I have another question: is there a list of commands that can be used on the server by writing them in text chat (as happens in ACC)?
    and then how do I log in as admin from within AMS2 so that it recognizes me as such?
    I tried to look for an answer but I couldn't find anything, the document attached to the dedicated server is of no help

    oh, I forgot... are the AI cars managed by the PC on which the server runs? Or are they managed by the PC of the first user who enters? (or another way that I don't know?)
     
    Last edited: Oct 26, 2023
  8. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,401
    Likes Received:
    1,440
    you cannot control the server by text input
    AI is controlled by the host who is the first on the server.
    The DS is just a kind of template generateor for sessions and communications relais.
    Not an active server like in AC or others
     
    • Informative Informative x 1
  9. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    thanks so much for the detailed explanation...;)

    but then what is the difference between having a dedicated server and a gaming host?

    If I connect first I have almost all the load on my PC except synchronization.

    What advantage do I have in having a dedicated server rather than a host launched by AMS2?
     
  10. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    sorry for the many questions but I haven't found a complete and clear documentation/manual, if you know where to find it I would be grateful!!!!
     
  11. Asturbo

    Asturbo Member AMS2 Club Member

    Joined:
    Apr 8, 2017
    Messages:
    38
    Likes Received:
    47
    There is no difference between DS and a player host session. It's not a client/server architecture and still works as P2P with the first player logged acting as a host. The performance is also the same.

    The main advantage of using DS is that you have all parameters under control and ever will be the same (up you change it). The in-game interface always changes things depending your last session and you have to check every parameters each time you start a new session.

    I use it specially for training in my comunity, programing a practice session of 2 hours and a race of 1 lap. That allows people to practice for the oficial race, that uses a different DS instance.
    Other advantage of using DS is that you can use the logs of the sessions for reports and statistics.

    About the documentation, you have a sample of the CFG and LUA files with comments, and you can query the DS via Web browser for specific parameters.
     
    Last edited: Oct 27, 2023
    • Informative Informative x 1
  12. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    thanks for the explanation, now I understand the difference!!!!:D
     
  13. Mamuto

    Mamuto New Member AMS2 Club Member

    Joined:
    Jun 21, 2023
    Messages:
    8
    Likes Received:
    4
    Is there a way to add a newline to the MOTD? I'd like to add a description of the session over 3-4 lines.
     
  14. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    873
    Likes Received:
    1,124
    A single message can be added via the 'motd' key in 'lua_config/sms_motd_config.json'

    If that won't cover it you can dupliate the motd plugin and extend it as needed. The motd one is pretty straightforward. You can add as many calls to 'SendChatToMember' as you need to get the job done
     
    • Like Like x 1
  15. Mamuto

    Mamuto New Member AMS2 Club Member

    Joined:
    Jun 21, 2023
    Messages:
    8
    Likes Received:
    4
    Ah was hoping it'd be easier than that but thanks, I extended the mod to handle multiple lines. Thanks for the direction.
     
  16. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    good morning community, can I start a dedicated server with some Mods (cars and tracks)? The server is on a PC without the game and without Steam...
     
  17. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,401
    Likes Received:
    1,440
    you can, but you only have full control from the game with "-selectDS" in Steam launch parametrs.
    Its not possible to add mods via server.cfg, lua programming or web
     
  18. SauroHD

    SauroHD New Member

    Joined:
    Aug 1, 2023
    Messages:
    29
    Likes Received:
    3
    clear, thanks!!!
     
  19. Maarten van Oosterhout

    Maarten van Oosterhout New Member AMS2 Club Member

    Joined:
    Jan 1, 2020
    Messages:
    19
    Likes Received:
    3
    Hi,
    Does someone maybe know a possible reason for AI Skill not to be implemented in-game?
    Tried various levels of AI Skill but nothing changes. Looks like AI is stuck at 70% in-game, which is no fun at all.
    See picture attached.
     

    Attached Files:

  20. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    Hi
    Hey,

    you can manage server trough web browser at http://your.server.ip:9000
    login and password are set in server.cfg

    Also you can manage server trough web api at http://your.server.ip:9000/api
     

Share This Page