rFactor 2 - Howto: Running multiple server instances

Discussion in 'Wiki' started by Diablo, Mar 1, 2013.

  1. Diablo

    Diablo Registered

    Joined:
    Jan 20, 2013
    Messages:
    404
    Likes Received:
    0
    One does not need to have multiple installations for this to work. The only thing necessary is to create additional rFactor 2 profiles and configure them appropriately.

    Creating another rFactor 2 profile:
    Go to the Data path (have a look into Core\data.path in the installation folder) and change into the UserData directory. There is the default profile folder named "player". Create a copy of that folder and name it, so you can remember it. In this Howto the new profile folder will be named "server". Now change into the just created directory ("server") and rename the file "player.PLR" to the name of the new folder, i.e. "server.PLR" in our example.
    You now have a new folder named "server" in UserData, that contains the file "server.PLR". That is all you need to do to create a new profile. Check if it works, by clicking "Host" in the rFactor 2 Launcher, you will see the new profile name in the drop down menu:
    View attachment 6493
    DonĀ“t start a server session just yet! The new profile needs some configuring first.

    Configuring Multiplayer.ini:
    The most important configuration step is to change the ports the server will listen on:
    Code:
    WAN Join Port="54298" // range is 1025 - 65535
    HTTP Server Port="64298" // range is 1025 - 65535. Used for file sharing
    Make sure those don't have the same value in both Multiplayer.ini files.

    Also make sure to use a different root directory for both HTTP servers, otherwise there will be conflicts over the file "server_details.json", which is unique to each server instance:
    Code:
    HTTP Server Document Root="UserData\server\http" // Document root for HTTP server. This path is relative to path stored in data.path. data.path located in root install path
    Make sure that directory exists. Also, any vMods that need to be downloadable with the "Get Mod" function need to be present in that directory and the "Package Dir", which can be set separately in the .PLR file:
    Code:
    Package Dir="UserData\server\http"
    Changing "Package Dir" is optional, it can be set to the same directory as the HTTP server document root, so one can keep vMods that are only used in one profile in one folder.
     
  2. Maxcat

    Maxcat Registered

    Joined:
    Jan 12, 2012
    Messages:
    25
    Likes Received:
    0
    I have set up a host computer with two instances of RF2 after following the above information. I am not sure why but when I attempted to join the first server (named 'myclan Server 1') listed in the RF2 multiplayer list, I ended up in the second server (named 'myclan server2') which was running different cars and track to the other server. When I selected the second server it joined the first.

    I have set ports 54277 and 64277 on the multiplayer.ini on one and 54297 and 64297 on the other.

    Any idea on why the two are crossed over? What have I done wrong?
     
  3. hoover

    hoover Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,211
    Likes Received:
    236
    Create two completely separate installs and don't start messing with two profiles within a single install. It's a known (spurious) bug, sadly I have no idea when the devs will get around to fixing it.

    HTH Uwe
     
  4. Maxcat

    Maxcat Registered

    Joined:
    Jan 12, 2012
    Messages:
    25
    Likes Received:
    0
    Ok Thanks...
     

Share This Page