rFactor 2
54 voti
Publishing to the Steam Workshop
Da marrs
The workshop is basically a marketplace to share content, making it a nice fit for rFactor 2. For users it’s a great way to add new content easily, as all they need to do is subscribe to that content and it will get downloaded, installed and updated automatically. For content creators (mod teams) it’s a great way to share their content as Steam will provide them with all the bandwidth they need and creating and updating workshop items is relatively straightforward. This guide is for mod teams that create content and want to publish it.
3
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Prerequisites
Before you can publish anything, you need to create the car or track and package it like you normally would for rFactor 2. This is a complicated process that will not be discussed here. At this point in time we assume you already have one or more packages that you want to publish in the workshop.

Furthermore, you have to have a Steam account that satisfies the following conditions:
  • Your account has to be at least "level 1".
  • You need to have accepted the Steam Subscriber Agreement.
  • You need to have bought a copy of rFactor 2 on Steam (you don't need an on-line subscription, just the base simulation).
Setting up SteamCMD
You need to download a small tool called SteamCMD. If you’ve ever downloaded dedicated server packages on Steam, you might be familiar with it. Instructions on how to download and install it can be found here: https://developer.valvesoftware.com/wiki/SteamCMD
Publishing and Updating
Create a new folder somewhere on disk where you’re going to keep all your workshop related content. I propose a structure somewhat like this:

C:\dev\workshop\mycooltrack\ metadata.vdf preview.jpg C:\dev\workshop\mycooltrack\content\ MyCoolTrack-v1.rfcmp

The preview.jpg is actually a small preview image that will be shown in the workshop. You can later add more images or videos manually. The MyCoolTrack-v1.rfcmp is just a normal component which you create like you always do with the rFactor 2 modding tools. The only thing you need to then do is create a textfile called metadata.vdf which contains the following text:

"workshopitem" { "appid" "365960" "publishedfileid" "0" "contentfolder" "C:\dev\workshop\mycooltrack\content" "previewfile" "C:\dev\workshop\mycooltrack\preview.jpg" "visibility" "0" "title" "My Cool Track" "description" "My Cool Track is a road circuit designed by famed Mister Modding. It is a 3-mile road circuit with elevation changes and 12 corners. Situated in the lovely countryside, this track is a favorite of both drivers and fans, with good weather throughout the year." "changenote" "Version 1 is the first public release of this track." }

That’s all you need in terms of setup. Going over each line in the file:
  • appid is the unique identifier for rFactor 2, so there is no need to change this;
  • publishedfileid should be zero for all new items and after running SteamCMD once, that tool will fill out a unique identifier for your workshop item, which use can use to update this item later;
  • contentfolder must contain an absolute path to a folder with all the content for this item and the convention we use for rFactor 2 is that you can put one or more components in that folder that get installed automatically by the package manager;
  • previewfile points to an image that will be shown in the workshop;
  • visibility can be left at zero, which means your item is visible to the public ("1" makes it visible to friends only and "2" makes it private, so only you and other co-creators can see it);
  • title is the title of the item in the workshop;
  • description is a multi-line description of your item and can contain some “bbcode” for formatting;
  • changenote is a message that is specific to the version you are uploading and normally includes a version number and a change log.

If everything is setup, open a command shell and run SteamCMD like this (you should probably make a small batch file for it that you can quickly re-run):

SteamCMD.exe +login USERNAME PASSWORD +workshop_build_item c:\dev\workshop\mycooltrack\metadata.vdf +quit

One word of warning here. If you use the same USERNAME and PASSWORD to log into the Steam Client on the same computer, there seem to be some unwanted interactions between those two accounts. Therefore, in that case, please quit your Steam Client while SteamCMD is running!

Watch the output for any errors. If everything worked you should be able to view your item in the workshop and others can subscribe to it. More details can be configured using the Steam Client of website of Steam.

That's it. You can further enhance your workshop item in the web interface where you can add further screenshots, movies and many other things that you cannot do with the command line tool.

Updating your item is also simple. Just make changes to the content folder and the metadata file and re-run the command to update your item.
47 commenti
Z_M71 4 set, ore 2:35 
why purchase rFactor 2 its just a game nothing to do with workshop.
acincheyenne 13 dic 2022, ore 7:37 
If no one is willing to help me out....how about someone upload the mods for me then??
acincheyenne 11 dic 2022, ore 13:48 
Reason being I am getting the config file error, I made sure the .vdf was saved as a .vdf file and the cmd points to the location, but I still get this error? Any help would be great :-)
acincheyenne 11 dic 2022, ore 13:47 
Can someone shed some light on this? [2022-12-11 16:30:29] Loading workshop items for 0 installed apps for user [U:1:174285448]:
kidthatcries 16 ott 2021, ore 16:58 
Dude amazing guide, thanks a lot! :resmile:
LuisB 21 lug 2021, ore 8:43 
As a newbie I have a track uploaded and I have some updates to it. I built the file and change the metadata.vdf and as a newbie I replace the "unique identifier for the workshop item" by "0" which I found later that I should had kept it for updates. So the question is: how can I get back that unique identifier for thr workshop item ?
juanarg70 26 feb 2021, ore 13:40 
I'm modding in rf2. Is it posible to upload a workshop item with a car. And then adding different component cars to the same item?
DerDealer 4 mar 2020, ore 2:32 
You can now set the visibility of a workshop as "not listed" with the option 3. Maybe this could be added to the guide
Autodromo Virtual 14 lug 2018, ore 10:03 
Hello, I need to ask if I can upload a MOD in the workshop and put the sale price on the download.
JJ 3 mag 2018, ore 13:50 
How do I stop workshop from constantly updating? everytime I start rf2 it uploads stuff I have already un subcribed to. No matter how many times i remove stuff it just loads it again.