Multiple graphical profiles for VR and screen play?

Discussion in 'Technical & Support' started by AlexNordic, Dec 15, 2018.

  1. AlexNordic

    AlexNordic Registered

    Joined:
    Feb 25, 2018
    Messages:
    56
    Likes Received:
    11
    Hi all, Is it possible to have multiple profiles, so you can launch rF2 with different graphical settings?

    In my case I need:
    • VR profile, pretty low/med settings
    • Screen profile, maxed out for video recordings
    It's pretty annoying to have to change almost all the settings, only to then have to change them again when you're going to play in VR. Specially when you're about to join your weekly online league race and realise that you're on max settings!

    Could this be solved with multiple installations of the game?
     
  2. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    You can indeed have multiple profiles, the command line option is
    Code:
    +profile "<name>" // this will run the game with the given player file name.
    So a shortcut to use a profile "VR" might be
    Code:
    steam://rungameid/365960 +profile "VR"
    but I can only get it to work by adding +profile "VR" in the launcher options.

    I also save a Config_DX11.ini for VR and monitor and copy that over the one in c:\Program Files (x86)\Steam\steamapps\common\rFactor 2\UserData

    Instead of multiple profiles I use my https://forum.studio-397.com/index.php?threads/scripted-json-file-editor.58905/ which is more complicated to set up but gives more flexibility.
     
    Last edited: Dec 15, 2018
    AlexNordic and Lazza like this.
  3. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    FYI this is the batch file I use to start rF2 in VR

    Code:
    @echo on
    setlocal
    set SJE=c:\ScriptedJsonEditor\ScriptedJsonEditor
    set rF2UserData=c:\Program Files (x86)\Steam\steamapps\common\rFactor 2\UserData
    set CrewChief="C:\Program Files (x86)\Britton IT Ltd\CrewChiefV4\CrewChiefV4.exe"
    
    echo Use ScriptedJsonEditor to set player.JSON and controller.JSON for VR
    pushd %SJE%
    ScriptedJsonEditor jobs\VR_G25.json
    popd
    
    echo Set config.ini for VR
    copy "%rF2UserData%\config_DX11_VR.ini" "%rF2UserData%\Config_DX11.ini"
    
    rem Use Open Composite VR in place of Steam VR
    call c:\rFactor2\OpenComposite\OC_on.bat
    
    echo CrewChief is set to start rF2
    %CrewChief%
    
     
    Prodigy likes this.
  4. AlexNordic

    AlexNordic Registered

    Joined:
    Feb 25, 2018
    Messages:
    56
    Likes Received:
    11
    @Seven Smiles I don't... fully understand what you're describing, but looks exactly like what I need.

    While I figure it out, if the Config_DX11.ini stores my current settings (VR), I duplicate the file, max out all settings and then duplicate it again, call it Video. Using one file or the other would allow me to change the settings without using the UI, right? But that doesn't seem to include all the display settings (textures, shadows, etc.). Where are those?
     
  5. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    Config_DX11.ini just stores the screen resolution and stuff, there's only one of those (which is why I have to copy over it). The internal rF2 settings (textures, shadows, visible cars and stuff) are in userdata/player/player.json and there's one for each profile so if you create a new profile "VR" that would be userdata/VR/VR.json
     
  6. AlexNordic

    AlexNordic Registered

    Joined:
    Feb 25, 2018
    Messages:
    56
    Likes Received:
    11
    Oh cool, I didn't know that the player in userdata/player/ was a profile. I have no idea of how rF2 is structured, this is very handy!
    I'll then duplicate that player folder, rename it and tweak the settings
     
  7. Seven Smiles

    Seven Smiles Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,099
    Likes Received:
    1,152
    I can now run rF2 without the launcher with the command line options I want
    Code:
    in
    c:\Program Files (x86)\Steam\steamapps\common\rFactor 2
    
    run this command
    "C:\Program Files (x86)\Steam\steamapps\common\rFactor 2\Bin64\rFactor2.exe"  +path="." +profile="VR"
    
     
    Prodigy likes this.

Share This Page