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. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    884
    Likes Received:
    1,244
    right, sorry guys I got the wrong end of the stick and thought the class as a whole was the subject. I'll get a build in a little while
     
    • Like Like x 2
    • Winner Winner x 1
  2. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    884
    Likes Received:
    1,244
    New builds up for both releases
     
    • Like Like x 2
  3. viper4r

    viper4r Active Member AMS2 Club Member

    Joined:
    Mar 5, 2020
    Messages:
    150
    Likes Received:
    56
    Thanks, the Ginetta G58 is now in the vehícle list, I checked both releases.
     
    • Like Like x 1
  4. DGSRDenny

    DGSRDenny New Member

    Joined:
    Aug 3, 2023
    Messages:
    2
    Likes Received:
    1
    Hi folks, trying to find the answer to this and have gone thru alot of whats here but I dont see a definitive answer or have missed it.

    I have setup a dedi server and it is running but I am not sure where I stand with the content on the server.

    I know that if you host a server from within the game then anyone can race on that track with or without the dlc as long as it is owned by the host.

    How does this work when hosting from a dedi server machine? Does each driver have to own all the dlc on the server to race or is the dedi server pulling the info from somewhere on steam?

    I want to automate the server to start and run 12 hours per day (launching from DedicatedServerCmd.exe) so would like to be able to have a number of track rotations and not have to launch the game itself so others can join.

    Thanks in advance

    Denny
     
  5. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,556
    Likes Received:
    738
    Well, the server/session starts when someone joins it, if you set dlc on the server, the person that joins first needs to own the content
     
    • Like Like x 1
    • Agree Agree x 1
  6. Ozywan

    Ozywan New Member

    Joined:
    Aug 13, 2023
    Messages:
    6
    Likes Received:
    0
    Hello everyone, I've read a lot of messages on this section but I can't find a certain answer.
    I want to launch a dedicated server, and include several car classes and several circuits can we do it from the server.cfg file and if so would you have an example file to send me?
    I hope I have been clear enough because I currently manage to launch my server online but only with a class of vehicle and a circuit...and I don't know if I can do it directly from the server.cfg or by another file to configure.
    Thank you for your help.
     
  7. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,556
    Likes Received:
    738
    i believe that you can setup a track rotation using a LUA script, but i never tried that myself as we use just one car and track for our league events in a week
     
  8. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    367
    Likes Received:
    163
    There is a file called "sms_rotate_default_config.json" that you can modify to change tracks and vehicles on a rotation schedule I believe. In order to use it, you have to include the "sms_rotate.json" library in the server.cfg file.
    Good lucking finding any documentation on it since the PCars2 forums are now shut down.
    Perhaps someone on this thread can give you more tips as there are more experienced PCars2/AMS2 server admins than myself.
     
  9. Ozywan

    Ozywan New Member

    Joined:
    Aug 13, 2023
    Messages:
    6
    Likes Received:
    0
    Thank you for your answers I will continue to search, maybe an administrator could show me a file already configured so that I can do my tests.
     
  10. Redvaliant

    Redvaliant Well-Known Member

    Joined:
    Apr 4, 2020
    Messages:
    143
    Likes Received:
    263
    This an old 2 race sms rotate config of mine. Rename to sms_rotate_config and place in your Server folder/ Lua_Config folder. You can work from it to change classes/track etc. Can even add more races if you want.
     

    Attached Files:

    • Friendly Friendly x 1
    • Useful Useful x 1
  11. MWAD7

    MWAD7 New Member

    Joined:
    Aug 29, 2023
    Messages:
    2
    Likes Received:
    0
    I've wasted most of this afternoon trying to get various examples of sms_rotate_config.JSON to work - and this one suffers the same problem.

    When I fire up the dedi, the last message I get is :"Rotation setups contain errors, rotation addon disabled"

    I've tried slimming the file right down so that there are no overrides beyond the track/car/class in the rotation section - nothing works and there appears to be no useful logging.

    Is anyone successfully using the rotations?
     
  12. GeekyDeaks

    GeekyDeaks Member AMS2 Club Member

    Joined:
    Jan 17, 2022
    Messages:
    83
    Likes Received:
    47
    We use them regularly. The one redvaliant provided is one of them and that one works on my test dedi server too. Can you paste the entire log you get here so we can see what else is getting reported to see if it gives a hint to what is wrong?
     
  13. MWAD7

    MWAD7 New Member

    Joined:
    Aug 29, 2023
    Messages:
    2
    Likes Received:
    0
    That sounds promising! I’ll try to remember to post it later.
     
  14. Leniek

    Leniek New Member

    Joined:
    Aug 30, 2023
    Messages:
    7
    Likes Received:
    0
    Hi!
    I am starting my adventure with AMS2
    Is there AMS2 Dedi Server for Linux, as I already have homelab setup, so I could host server for me and my friends. If no, are there plans to have one?
     
  15. Shriukan

    Shriukan Touristenfahrten Community AMS2 Club Member

    Joined:
    Sep 23, 2019
    Messages:
    1,293
    Likes Received:
    931
    There is no linux DS, however I did run a couple server for a year or so through wine without problems on a debian remote server.
     
    • Like Like x 1
  16. Leniek

    Leniek New Member

    Joined:
    Aug 30, 2023
    Messages:
    7
    Likes Received:
    0
    Cool, i was afraid that i would have to use VM
     
  17. Ozywan

    Ozywan New Member

    Joined:
    Aug 13, 2023
    Messages:
    6
    Likes Received:
    0
    Hello, it is impossible to set the time of a session on the server.cfg. I set the time that I want the session to start but it always remains at midnight.
    Every time I come into the session it’s dark.
    My server.cfg is link...please help me.
     

    Attached Files:

  18. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,556
    Likes Received:
    738
    Looking at your cfg file you only specified the date/time for the race, and not for practice or qually.

    You need to add these in order to specify time for practice and qually

    "PracticeDateHour":11,
    "QualifyDateHour" : 10,
     
    • Like Like x 1
  19. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,556
    Likes Received:
    738
    @Ozywan did it help? some feedback would be nice....
     
  20. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,456
    Likes Received:
    1,456
    "thank you" is an outdated term nowadays ;)
     
    • Funny Funny x 3
    • Like Like x 2

Share This Page