Results 1 to 7 of 7

Thread: Troubleshooting: Project CARS 2 - Dedicated Server

  1. #1
    SMS Staff
    Join Date
    Sep 2017
    Posts
    16
    Platform
    PC

    Troubleshooting: Project CARS 2 - Dedicated Server

    Hi,

    This post aims to address common issues that happen while using Project CARS 2 - Dedicated Server.
    Instructions below may change following further server and game updates.

    Topics covered:
    1. There are very few dedicated server games listed in Game Browser (much less than known valid servers).
    2. Testing server connectivity.
    3. No welcome message after session has been created (using cmdline method).
    4. Host PC gets disconnection message, when trying to create a session from “Create Online Event” screen.
    5. Players can’t see server game session on “Browse Online” screen.




    There are very few dedicated server games listed in Game Browser (much less than known valid servers).

    It’s important to know that although Game Browser employs a number of filters (mainly to ensure protocol version compatibility with the game), it still relies on a server list that Steam itself provides.

    There is a setting in Steam desktop client that is known to affect server query results.
    Navigate to Steam desktop client main menu “Steam” - “Settings”, then navigate to “In-Game” tab.

    Change “In-Game server browser: Max pings / minute” to higher value and see if it helps. Default of “Automatic (5000)” is recommended for best results.

    Click image for larger version. 

Name:	server_ping_limit.png 
Views:	1525 
Size:	31.1 KB 
ID:	243055


    Testing server connectivity

    For server admins it’s important to make sure their server is reachable for players that are supposed to see it.

    Dedicated Server app and the game itself rely on Steam API to register and discover available server games, so it's possible to use Steam desktop client for some basic checks.

    Over the Internet

    Once the server is up:
    1. Look for a line similar to this to deduce public IP that server reported to Steam:
      Code:
      Server startup finished: AppId 378860, public IP 1.2.3.4, Steam id 123456789012345; switching to running state
      Log output can be found at server console window; “My Documents\Project CARS 2 - Dedicated Server” folder (Windows) or “server_install_path/dbgsession” (Linux).
    2. In Steam desktop client main menu go to “View” - “Servers”.
    3. Go to “Favorites” tab.
    4. Here you can ping any Steam-based server.
      Press “Add a server”, then enter server public IP and query port.
      Query port value can be checked at server configuration file. By default it is 27016.


    Format to enter server address is “publicIpAddress:queryPort” (check Examples below the text field). After that press “Find games at this address…”
    Click image for larger version. 

Name:	add_server.png 
Views:	1508 
Size:	20.3 KB 
ID:	243058

    Server will be listed in the bottom section of “Add Server - Servers” window.
    Click image for larger version. 

Name:	server_listed.png 
Views:	1505 
Size:	5.8 KB 
ID:	243057

    If server can’t be reached like this:
    • Check that all relevant ports listed in server config options are open on the firewall.
      Values set for steamPort, hostPort and queryPort options work via UDP protocol.
      Value set for httpApiPort works via TCP protocol.
    • Make sure port forwarding is set correctly on the router (if applicable).
    • Try consulting Hosting or Internet Service provider tech support about firewall and router setup.


    Hosting from home PC: ask a friend or fellow league member to test these steps and ensure server is reachable from remote locations.

    Over LAN

    Once the server is up, navigate to Steam desktop client main menu “View” - “Servers”.
    Then go to “LAN” tab.

    Check that the server is visible there. If it is, then it should also be visible to game clients on the same local network.

    Click image for larger version. 

Name:	lan_list.png 
Views:	1507 
Size:	6.8 KB 
ID:	243061

    If it’s not visible on this tab:
    • Check that all relevant ports listed in server config options are open on the firewall.
      Values set for steamPort, hostPort and queryPort options work via UDP protocol.
      Value set for httpApiPort works via TCP protocol.
    • Steam client discovers LAN servers by broadcasting requests on specific ports (27015 and 27016).
      For server to respond to such requests properly - make sure following options in server configuration are set to specific values:
      Code:
      queryPort : 27016 (this should be either left at this default value or set to 27015)
      bindIP : "" (leave this blank, which is default)



    No welcome message after session has been created (using cmdline method).

    There might be few reasons why there is no message:
    • Lua API (or relevant addon) is disabled on target server.
    • Dedicated server wasn’t found and game fell back to create regular Steam lobby instead.


    Check Dedicated Server logs for indication that session was created on server.
    Log output can be found at server console window; “My Documents\Project CARS 2 - Dedicated Server” folder (Windows) or “server_install_path/dbgsession” (Linux).

    Example of output where session was created would look something like:
    Code:
    Received connection from Steam ID 123456789012345
    Received request from 123456789012345: allocate the server as user 123456789012345, name UserName, size 2, password
    Starting auth of new session member 123456789012345 (UserName)
    User 123456789012345 has allocated the server for game with max 2 members. The session is joinable
    Joined and authenticated user 123456789012345 (UserName) at index 0, refId 37440, admin 1
    If logs indicate that session was properly created on a server, then check if Lua API, “sms_base” and “sms_motd” addons are enabled.
    Welcome message won’t be displayed for host player if at least one of these is disabled.

    If there is no indication that session is up on server, then check the following:
    1. Server was started correctly.
      Check that AppId displayed in server console output is 378860 (AppId of “Project CARS 2” game) .
      Other values would indicate an error. For example value 413770 (AppId of server app itself) would mean that server is running from Steam window or from shortcut created by Steam.
      If that's the case: shut the server down, then navigate to server installation root and ensure DedicatedServerCmd.exe is started directly from Explorer window. Cr
    2. Check recommendations above to test connectivity using Steam client.
    3. Check that game launch options are correct and match target server name.
      Host PC launch options:
      Code:
      -searchds “server_name”
      If hosting on a server that’s only exposed to LAN, make sure to also add this to game launch options:
      Code:
      -lanonlyds



    Host PC gets disconnection message, when trying to create a session from “Create Online Event” screen.

    Exact message text: “You have been disconnected from the multiplayer session. Exiting session.”

    This message can be displayed if, for some reason, server didn’t accept request to allocate game session:
    • In case server is configured to be password protected:
      Code:
      password : "some_password"
      Make sure Host PC enters the same password in “Host Settings” tab at “Create Online Event” screen.
    • Server might be occupied already. It can’t host more than 1 game session at once.
      If you are the owner or admin with sufficient privileges - there are several options to regain control:
      • Kick every member in the session until the server is empty. It’s also possible to issue temporary bans for some players if they abuse the server.
        Kicks and bans can be issued using web tool. It requires HTTP API to be enabled in server config.

        Login into the web tool, find “Status (Old)” link on the left side of the page or go there directly using http://httpApiInterface:httpApiPort/status url (replace “httpApiInterface” and “httpApiPort” with values from server config).

        Then scroll down to the session member list and press “Kick” or one of “Ban” buttons to remove the player.
      • Just restarting the server is also an option to regain control.
    • If it worked fine before and started failing for consecutive sessions, then it’s likely that some players are still active in the session hosted on server.
      In that case it’s the same as above: server can’t host more than 1 session at the same time.

      Kick or Ban players in session to reclaim control or just restart the server.



    Players can’t see server game session on “Browse Online” screen.

    Please check “No welcome message after session has been created” section, as possible causes are most likely the same (excluding Lua configuration).

  2. #2
    SMS Elmo's Avatar
    Join Date
    Dec 2011
    Location
    Motor City, Germany
    Posts
    1,208
    Platform
    PC
    We have added a new method to select a Dedicated Server “-selectds”.

    This replaces "-searchds" method.

    Details can be found here: https://docs.google.com/document/d/1...h8O8kKlC_larS4

    The same info also is placed as a PDF in the Dedicated Server folder.
    The following 4 users likes this Post: cluck, Konan, Krobo, RomKnight


  3. #3
    SMS Elmo's Avatar
    Join Date
    Dec 2011
    Location
    Motor City, Germany
    Posts
    1,208
    Platform
    PC
    Patch Notes from this weeks Dedicated Server update:

    - Browse servers before new session creation if "-selectds" cmdline switch is present. Works for regular MP events and OC.
    - Fixing session attributes edit in Web interface
        * notify the user in web screen that LUA addons in general, and sms_rotate specifically, collide with web interface session config
        * formation lap, driving aids, manual gears, ghost vehicles, manual pitstops, grid position, rules and penaties
        * renamed some of the options to match those in game
    - Minor fixes to the user and game guides

  4. #4
    Online Marketing Director Nathan Bell's Avatar
    Join Date
    Sep 2017
    Location
    Belfast
    Posts
    86
    Platform
    PC
    Hi guys,

    Here are the notes from the latest Dedicated Server Update:

    - Network protocol changes to help servers behind NAT perform better.
    - Soft-restart accounts for lua addon changes in server config.
    - Added missing participant attributes in HTTP and LUA APIs in AI-filled races with only one human participant.
    - HTTP API calls now wait for the host to accept session attribute changes.
    - Web frontend: track list filtered by the grid size set in the current session.
    - Web frontend: numerous fixes related to server configuration values: time and weather progression, weather slots, vehicle classes, cooldown lap, and others.
    Online Marketing Director
    Slightly Mad Studios


    Twitter: NathanBell_SMS
    The following 10 users likes this Post: Asturbo, Brado23, cluck, Dmitry Afanasyev, F1_Racer68, KAMPFBIBER81, Konan, Krobo, PostBox981, satco1066


  5. #5
    Moderator Konan's Avatar
    Join Date
    May 2015
    Location
    Belgium
    Posts
    10,749
    Platform
    PS4 Pro
    Hello. Small Dedicated Server update is now live on Steam.

    * DLC Porsche Legends content available to be picked at DS configuration and HTTP/Lua APIs
    AN OUTLAW MIGHT GIVE IN TO DESTINY BUT HIS LEGEND LIVES ON FOR ETERNITY!
    The following user likes this Post: cluck


  6. #6
    SMS Staff
    Join Date
    Sep 2017
    Posts
    16
    Platform
    PC
    Hello. Here are the notes from latest Dedicated Server update.
    * Server data updated to mention new content available with the patch
    * Fixed session attribute related HTTP APIs, which can now take largest possible request
    * HTTP control interface improvements
    The following 5 users likes this Post: Asturbo, cluck, Dmitry Afanasyev, r3c14im3r, satco1066


  7. #7
    SMS Staff
    Join Date
    Oct 2017
    Posts
    28
    Platform
    PC
    Today's Dedicated Server update.

    • Fixed identical vehicles setup via VehicleModelId setting in sms_rotate lua addon.
    The following 9 users likes this Post: bmanic, cluck, Dmitry Afanasyev, KAMPFBIBER81, Konan, Mad Al, PostBox981, satco1066, Victor Khomskiy


Similar Threads

  1. Project CARS 2 Dedicated Server not listed?
    By MerlinC in forum Multiplayer
    Replies: 1
    Last Post: 04-10-2017, 21:04
  2. Replies: 21
    Last Post: 03-10-2017, 19:42
  3. Project Cars 2 Dedicated Server Availability
    By Brado23 in forum General Discussion
    Replies: 5
    Last Post: 22-09-2017, 15:58
  4. Replies: 12
    Last Post: 23-10-2015, 21:10
  5. Project-Cars Dedicated Server Live App
    By Ph0eNiX in forum Multiplayer
    Replies: 132
    Last Post: 04-10-2015, 20:10

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •