HOW TO: Getting content from the Workshop on my dedicated server?

Discussion in 'Hosting Help' started by Christopher Elliott, Dec 22, 2017.

  1. Christopher Elliott

    Christopher Elliott Administrator Staff Member

    Joined:
    Jul 31, 2014
    Messages:
    3,606
    Likes Received:
    3,181
    How do I get Studio 397 content (or any content) from the Workshop on my dedicated server?

    1. First - Follow this guide to setup your dedicated server: Setting up a Dedicated Server
    2. Locate the URL of the steam item you want to download here
    3. At the end of the URL you should see a 9 or 10 digit number, this is the workshop ID for that item (Screen-shot showing Malaysia 2007) Malaysia.JPG
    NEXT: Open terminal and use SteamCMD to download the item from workshop.

    Copy/paste the following line into terminal (replace the text in bold: username, password, and the workshop item number) - This example shows Malaysia 2007

    \steamcmd\steamcmd.exe +login USERNAME PASSWORD +workshop_download_item 365960 922034184 +quit


    Installing the content:
    1. Open the folder C:\SteamCMD\steamapps\workshop\content\365960
    2. Look for the item's Steam ID folder (in this example 922034184) Malaysia2.JPG
    3. Manually copy the .rfcmp file to your server's package folder
    4. Install the content manually using 'ModMgr.exe' located in C:\…..rFactor2\Bin32
     
    juanchioooo likes this.
  2. SmellySkidmark

    SmellySkidmark Registered

    Joined:
    Jan 11, 2012
    Messages:
    314
    Likes Received:
    61
    So I have the S397 GT3s but the Admin don't, can they put the GT3's on a server for those that do have the cars installed, using this method?

    Edit: So since they (GT3s) are not in that list, I think the answer to my question would be No.
    I don't see the BT44 in the list either.

    SS
     
    Last edited: Dec 22, 2017
  3. TheGame316

    TheGame316 Registered

    Joined:
    Sep 27, 2015
    Messages:
    75
    Likes Received:
    29
    In the case of a day like the last 24-48 hours where just about all content was updated, can this be done for a bulk load of content?
    eg. can another +workshop_download_item 365960 (content number) before the +quit; or does each peice of content need to be done separately?
     
  4. Carr

    Carr Registered

    Joined:
    Mar 23, 2013
    Messages:
    82
    Likes Received:
    61
    SmellySkidmark likes this.
  5. Carr

    Carr Registered

    Joined:
    Mar 23, 2013
    Messages:
    82
    Likes Received:
    61
    @TheGame316 I had a look and there still is a cache for rF2 but instead of it being in the rF2 folder, it is now in the Steam Workshop folder. I had a look at a few that had been updated and they were there. I put a shortcut on the desktop for Sarge and send him a message with some detail.

    For anyone else using a full rF2 install (the setup guide on Steam isn't the full install) through SteamCMD and is looking for these files, there is a folder in your rFactor 2 install called SteamApps. Inside there you will find Workshop, then Content, then 365960 (this is rF2's Steam ID). Inside here you will find all the S397 content as well as all the content that has been subscribed to by account used in the SteamCMD command used to install or update rF2. Not sure if this folder exists for the default "lite" version through SteamCMD, you will need to check yourself.

    If you want the command for the full install of rF2 instead of the default "lite" version from SteamCMD, this is the command:
    steamcmd +login username password +force_install_dir ../rFactor2-Dedicated +app_update 365960 +quit

    For this command let it be known that SteamCMD is installed to C:\SteamCMD and rFactor 2 will be installed to C:\rFactor 2-Dedicated. You may need to adjust the command to suit you install path for rF2.
     
    TheGame316 likes this.
  6. Goanna

    Goanna Registered

    Joined:
    Jan 19, 2012
    Messages:
    419
    Likes Received:
    250
    @Carr We're using a little batch file that I found on the web that we use for downloading via CMD ARMA 3 content and I copied and modified it for rF2 content as well (rather than having to do a full rF2 install on the server). It has all the current S397 and ISI content listed and ya just go through it and set the ones you want...also has space for adding any 3rd party steam content that you may want to use...if you want to have a squiz just yell and I'll send you and Sarge a pm on your forums with details.
     
    TheGame316 likes this.
  7. Carr

    Carr Registered

    Joined:
    Mar 23, 2013
    Messages:
    82
    Likes Received:
    61
    @Goanna The reason we are using the full install is that when trying to get some of the content in the workshop doesn't work via SteamCMD and you only get a 1kb cache file and the rF2 lite has no content at all. This is because the content was included in the normal copy of rF2 and needed a placeholder file for it to be listed in the workshop. Not sure if this is still needed with the new changes and considering we would need S397 to tell us, I guess we never will.
     
  8. Numrollen

    Numrollen Registered

    Joined:
    Nov 4, 2011
    Messages:
    34
    Likes Received:
    2
    I have a question to automate more the update process: is there no way to get some parameters to modmgr.exe? To extract the rfcmp files to the dedicated server?

    I mean i already have done a cmd file to update all my mods on the server, so i dont need to look if there is an update every hour:
    Echo ---------- Nuerburgring (Turb) ----------
    E:\Games\steamcmd\steamcmd.exe +login BLAHUSER BLAHPASS +workshop_download_item 365960 1138101594 +quit

    Echo ---------- SaoPaulo 2013 (Studio 397) ----------
    E:\Games\steamcmd\steamcmd.exe +login BLAHUSER BLAHPASS +workshop_download_item 365960 951986312 +quit

    Echo ---------- MillsMetro 2011 (Studio 397) ----------
    E:\Games\steamcmd\steamcmd.exe +login BLAHUSER BLAHPASS +workshop_download_item 365960 922034133 +quit

    Now i a have a script that looks after the id folders that are updated the last 30min and copy over to the packages folder. I only need an option to extract the rfcmp files that are updated. Is there a way i could do this? This "do manually" is a pain on dedicated servers with big content.
     
    Last edited: Jan 7, 2018

Share This Page