So... we see you haven't signed up here on our website.  

Do you really want to sit here and be "Unregistered" all your life?  No, of course you don't!  So, click this here link and you'll take that all important first step into enlightenment! (or something, whatever...)

[DOC] Running Multiple Instances of RAT

Discussion in 'General' started by Trekkan, Feb 25, 2018.

  1. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,225
    Started with RAT 2.0 (Currently in Alpha, but available for 64 bit download), you can now run multiple instances of RAT in order to manage multiple 7D2D servers.

    In order to do this, please follow the below steps.

    Make a copy of the current RAT database

    The database file is located in %appdata%\nomadsoft
    Make a copy of the 7d2d_rat.db file, this is your database file.
    Name it something that makes sense to you such as 7d2d_rat_myGameServer1.db
    You can copy this file anywhere, but for the example, we're just going to leave it in the same folder.

    Create a new RAT Shortcut and point it to the new database file

    RAT now has command line parameter that allows you to point to a database file anywhere on your computer.
    Go into your RAT installation folder (Default is: C:\Program Files\NomadSoft\7D2D RAT) and find the file 7D2DRAT.exe.
    Right click this file and select "Create Shortcut".
    You will get a popup telling you that you can't create a shortcut here, click Yes to create it on your desktop.
    Now right click your new shortcut on your desktop and select Properties
    In the "Target" text box, you should see something like "C:\Program Files\NomadSoft\7D2D RAT\7D2DRAT.exe".
    After that, add the following: -db=7d2d_rat_myGameServer1.db
    It should now look something like this: "C:\Program Files\NomadSoft\7D2D RAT\7D2DRAT.exe" -db=7d2d_rat_myGameServer1.db
    Note: if you have copied the database file somewhere else on your system, you need to set the path to it here. Example: -db=c:\mynewpath\7d2d_rat_myGameServer1.db

    Rename the 7D2D Server EXE file

    Since you're running multiple instances of the game, you should already have installed another copy of the game server in a different folder. Go into that folder and find the file 7DaysToDieServer.exe and rename it to something like "7D2DServer_MyGameServer1.exe".
    This is so that RAT knows the different server processes from each other and can monitor them as needed.

    Once RAT starts

    Set the Server Path in RAT to point to your second installation of the 7D2D game server.
    Edit the Executable Name and enter the same name as you renamed your server EXE file above, example: "7D2DServer_MyGameServer1.exe"
     
  2. joaociocca

    joaociocca New Member

    Points:
    4
    I can't find a 7d2d_rat.db on %appdata%\nomadsoft - only two files there: "7d2dusa.sdf" and "upgrade.dat", along with a "localization" folder containing "us_english.ini" file.

    %appdata% opens AppData\Roaming. On Local, there's only a "user.config" file, inside some weird folder ("7D2DRAT.exe_Url_utbycvmkqlt4a2yqbvctlsidmaejp1wo\1.0.0.0")
     
  3. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,225
    That is because you aren't running the Alpha 2.0 version of RAT. What is it you are trying to do and maybe I can help?
     
  4. joaociocca

    joaociocca New Member

    Points:
    4
    I currently have a game I play with a friend. For some reason, when I create a new game to play solo, after a while my game crashes - and I noticed this doesn't happen when I run a dedicated server on my PC and play on it, so I wanted to make a "second server" to play using RAT, without messing with our game..
     
  5. Trekkan

    Trekkan JFF Administrator Staff Member

    Points:
    1,225
    Ok, so if you want to run more than one copy of RAT, then you need to use the Alpha 2.0
     
    • Friendly Friendly x 1
  6. joaociocca

    joaociocca New Member

    Points:
    4
    thanks for the link! Going to check it now!

    (edit) ohhhh I can use RAT itself to install the second instance of the server via steamcmd?! HOW NICE. Awesome work, Trekkan!!! <3

    (edit again) hm... if I just copy the RAT exe, instead of making a new installation, it'll use the same email settings, right? But it also seems to not want to run two servers at the same time (I did it just to test. One was running, when I tried to start the second it said it was already runninig...)

    (edit) dumb me, forgot to rename the solo server's EXE!

    (edit) Spot some other info for you to add to the tutorial: changing port for Telnet, web panel and web map! =)
     
    Last edited: May 5, 2018
  7. joaociocca

    joaociocca New Member

    Points:
    4
    One more problem: while the new server for solo works nicely, the old game one keeps kicking me out saying "player not found" =(

    But I'm there on lkp....

    lkp
    2018-05-05T04:45:24 206.316 INF Executing command 'lkp' by Telnet from 127.0.0.1:53767
    1. JohnnyCiocca, id=171, steamid=76561198003024125, online=False, ip=, playtime=163 m, seen=2018-05-04 00:28
    Another weird thing: none of the servers show up on LAN, even if I'm locally hosted - is this expected?
    [​IMG]
     
    Last edited: May 5, 2018

Share This Page