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

    chaigneau New Member

    Joined:
    Mar 26, 2020
    Messages:
    17
    Likes Received:
    10
    hello.
    I have a problem.
    if I host from the games, my server is visible to my friends, but if I host from the dedicated, I see my server but not my friends.
     
  2. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,473
    Likes Received:
    691
    That sounds like a ports issue, have you opened all the ports that are in the server.cfg file, there are 4 of them if u use the http api, in your router and in your windows (or other) firewall?
     
    • Agree Agree x 2
  3. 0ruf

    0ruf New Member

    Joined:
    Sep 15, 2021
    Messages:
    4
    Likes Received:
    0
    Hi,
    I can't force rolling start (LUA disabled)
    I try differents combinaison with
    "RaceRollingStart" = 1,
    "ManualRollingStarts" = 1,

    I don't know if I am missing something, or if the option is broken ?
     
  4. Gordon_Jacobson

    Gordon_Jacobson Member

    Joined:
    May 26, 2020
    Messages:
    112
    Likes Received:
    14
    Hello,
    I know where to change Ai skill level both in the cfg file and in the Ui.

    How do you change the Ai aggressiveness?

    They race at my skill level but are tooo aggressive into corners and other places on the track.

    Thanks in Advance
     
  5. 0ruf

    0ruf New Member

    Joined:
    Sep 15, 2021
    Messages:
    4
    Likes Received:
    0
    Ok, I don't get it.
    HttpAPI tell me my settings are loaded correctly, but in-game settings don't show the same. I will make test to see if settings are working or not...
     
  6. Shriukan

    Shriukan Touristenfahrten Community AMS2 Club Member

    Joined:
    Sep 23, 2019
    Messages:
    1,293
    Likes Received:
    931
    When you say lua disabled. Do you mean all? Including sms_base? (this one should always stay on)
     
  7. 0ruf

    0ruf New Member

    Joined:
    Sep 15, 2021
    Messages:
    4
    Likes Received:
    0
    enableLuaApi : false

    So, You are telling me that is incorrect ? I wil try reactivate it

    Edit : Thanks, It solve the problem for the rolling start, the setting is showing in game with lua on.
    But, "DisablePitstopRefuelling" : 0 is not working.
     
    Last edited: Dec 9, 2021
  8. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,473
    Likes Received:
    691
    Hey all,

    Does the dedicated server have support in any way of using an entry list in which you can specify the class/type of car a player uses?

    this would be handy when setting up a league and want to do a multiclass race, and have it spreaded a bit.

    I know at least ACC has this option, so the question popped up in my head if something similar is possible on Ams2?
     
  9. chaigneau

    chaigneau New Member

    Joined:
    Mar 26, 2020
    Messages:
    17
    Likes Received:
    10
    Its ok.... Thanks
     
  10. chaigneau

    chaigneau New Member

    Joined:
    Mar 26, 2020
    Messages:
    17
    Likes Received:
    10
    An another question :
    I cant activate realweather....
    If :
    "PracticeWeatherSlots" : 1,
    There is 1 slot activate

    But if :
    "PracticeWeatherSlots" : 0,
    There are 4 slots activate...
     
  11. Shriukan

    Shriukan Touristenfahrten Community AMS2 Club Member

    Joined:
    Sep 23, 2019
    Messages:
    1,293
    Likes Received:
    931
    0 slots = Real Weather. The 4 slots are then there for the Forecast for the start time and following 3 hours, but in reality you get 24 slots allocated for a full 24 hour session (useful for sessions with time multipliers)
     
  12. chaigneau

    chaigneau New Member

    Joined:
    Mar 26, 2020
    Messages:
    17
    Likes Received:
    10
    I understood correctly, but if I put "0", I don't have the actual weather, but 4 slots.

    in me server.cgf :
    "PracticeWeatherSlots" : 0,
    "PracticeWeatherSlot1" : 296956818,
    "PracticeWeatherProgression" : 1,
    Result :
     

    Attached Files:

    Last edited: Dec 12, 2021
  13. chaigneau

    chaigneau New Member

    Joined:
    Mar 26, 2020
    Messages:
    17
    Likes Received:
    10
    the probleme is "RaceDateDay"
    "RaceDateYear" : 2021,
    "RaceDateMonth" : 12,
    "RaceDateDay" : 01,

    if "RaceDateDay" =12 (today), the realweather is not activate
    if "RaceDateDay" =01, the realweateher i activate.
     
  14. Shriukan

    Shriukan Touristenfahrten Community AMS2 Club Member

    Joined:
    Sep 23, 2019
    Messages:
    1,293
    Likes Received:
    931
    Ah I see. I guess something is borked with Live Weather. I think the database is also only polling Historical Real Weather up to the 7th or 8th of this month. Maybe something for @Dave Stephenson to look at. :)
     
    • Useful Useful x 1
  15. Dave Stephenson

    Dave Stephenson Administrator Staff Member AMS2 Club Member

    Joined:
    Feb 13, 2016
    Messages:
    873
    Likes Received:
    1,124
    as @Shriukan noted the slots are created from the real forcast when real weather is enabled. It should be noted that your config examples show practice session and the weather for the practice session will actually come from 48 hours before the race date/time, qualifying from 24 hours before and the race will be from the date set. Could you confirm if that was accounted for please?
     
  16. Julien Lemoine

    Julien Lemoine Member AMS2 Club Member

    Joined:
    Aug 3, 2021
    Messages:
    49
    Likes Received:
    1
    Hello,
    Still no news about the generation of a result file per session? And the in-game custom name support will be available online when?
     
  17. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    hey, I need little help :p

    I am able to run ams2 dedicated on linux (trough wine) just fine, but only with "sportsplay: true". With "sportsplay: false" I get:

    Code:
    0009:err:ole:CoGetClassObject class {4590f811-1d3a-11d0-891f-00aa004b2e24} not registered
    0009:err:ole:CoGetClassObject no class object {4590f811-1d3a-11d0-891f-00aa004b2e24} could be created for context 0x1
    [2021-12-16 16:45:36] INFO: Starting up the Dedicated Server Library.
    [2021-12-16 16:45:36] INFO: Server configuration loaded:
    - server build date: Dec  3 2021
    - server build version: 1
    - protocol version: 67 (1.0.0.67)
    - server name: [RC.O] Formula Trainer race 180
    - max session size: 32
    - details: secure, bind IP INADDR_ANY, Steam port 8766, host port 27015, query port 27016, password protected no
    - whitelist size: 1
    - blacklist size: 0
    - lua api: enabled
    - http api: enabled listening at :9000, 1 extra header(s) defined
    - allow empty join: enabled
    - game setup control: enabled
    - sports play : disabled
    [2021-12-16 16:45:36] ERROR: SteamGameServer_Init failed
    [2021-12-16 16:45:36] ERROR: Dedicated Server startup failed
    
    No error reason, nothing. I'm preatty sure that all needed ports are open
    Code:
    steamPort : 8766
    hostPort : 27015
    queryPort : 27016
    
    I didn't follow linux installation method found in UserGuide.pdf, since it's more for PC2 (app id, etc are PC2 specific). So I didn't created steam user, didn't installed steamcmd, I just put copy of ams2 dedicated server on linux machine and did:
    Code:
    wine DedicatedServerCmd.exe
    any help would be appreciated.
     
  18. chaigneau

    chaigneau New Member

    Joined:
    Mar 26, 2020
    Messages:
    17
    Likes Received:
    10
    Sorry for my late response.
    If I put :
    "RaceDateYear" : 2021,
    "RaceDateMonth" : 12,
    "RaceDateDay" : 16,

    Pratice, Qualify and race are 16 December 2021
    upload_2021-12-16_20-59-14.png
     
  19. roszman

    roszman Well-Known Member

    Joined:
    Jun 11, 2020
    Messages:
    338
    Likes Received:
    419
    is it possible to add some additional logging to dedi or something?
     
  20. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,473
    Likes Received:
    691
    Have you got steam installed on the server? I would try to install steamcmd as the guide mentions, i followed that when installing mine on linux and did not get this error, the steamgameserver init failed looks like its searching for steam stuff which it cant find.

    Maybe installing steamcmd is worth a try
     
    • Like Like x 1

Share This Page