Question Is there a way to switch between graphics settings 'profiles'?

Discussion in 'Community Support' started by FlakNine, Apr 1, 2019.

  1. FlakNine

    FlakNine Member

    Joined:
    Jan 22, 2019
    Ratings:
    +15 / 0 / -0
    I recently got a WMR headset and have been massively enjoying the VR experience in R3E - as expected I've needed to drop a load of graphics settings to get a good experience. However there are times that I want to run the game in non-VR mode with "full fat" graphics, e.g. when viewing race replays on my monitor.

    So I have two graphics "profiles":
    1. VR profile: reduced graphics quality
    2. Non VR profile: max graphics quality for running on monitor.

    I'm looking for a way to switch between these settings without having to manually change them in-game. I was thinking about creating a batch file to switch between two copies of whatever settings file contains the graphics settings, then launch the game.

    So my question is: is there such a graphics settings file? If so, where?

    Many thanks for any help.

    Edit. Edit2: strike this out... user error! and a related question, while I'm here: is there a Steam launch option to force the game to start in non-VR mode? It always starts in VR mode for me unless I disconnect the WMR headset. This may be a quirk of WMR...
     
    Last edited: Apr 2, 2019
  2. Bull Shark

    Bull Shark Well-Known Member

    Joined:
    Mar 14, 2019
    Ratings:
    +162 / 0 / -0
    Would be lovely to have such option.
     
  3. majuh

    majuh Well-Known Member

    Joined:
    May 1, 2015
    Ratings:
    +257 / 0 / -0
    You should check Documents\My Games\SimBin\RaceRoom Racing Experience\UserData\graphics_options.xml
     
    • Like Like x 1
  4. FlakNine

    FlakNine Member

    Joined:
    Jan 22, 2019
    Ratings:
    +15 / 0 / -0
    Thanks, that's exactly what I was looking for. Will take a look tonight.
     
  5. FlakNine

    FlakNine Member

    Joined:
    Jan 22, 2019
    Ratings:
    +15 / 0 / -0
    Nice, I wrote a batch file to switch between graphics profiles and then launch the game in either VR or 2D mode. Can share here if anyone wants to take a look.
     
    • Like Like x 2
    • Creative Creative x 1
  6. FormelLMS

    FormelLMS Well-Known Member

    Joined:
    Apr 8, 2015
    Ratings:
    +229 / 0 / -0
    Yes, please :)
     
  7. FlakNine

    FlakNine Member

    Joined:
    Jan 22, 2019
    Ratings:
    +15 / 0 / -0
    OK here it is - I'll probably add some more tweaks, and there may be neater ways to do this, but it works for me. I'm open to all suggestions and ideas on how to improve this! :)

    Use it at your own risk, but I don't think it is likely to cause any problems. If in doubt, keep a backup of graphics_options.xml.

    I also suggest checking the content of graphics_options.xml after upgrading R3E to a new version, in case there are any changes to the structure/contents of that file. If that occurs, repeat steps 6 and 7 below to generate new copies of that file.

    Instructions:
    1. Copy the text below into a text file. Notepad will work but I recommend Notepad++ (free)
    2. Edit the paths in rows 3,6,9 and 12 so they are correct for your system.
    3. In rows 47 and 63, edit the VR supersampling values to your liking. I'm using -vr 1.8.
    4. Save that file as RaceRoomLauncher.bat (name doesn't actually matter) to any folder on your computer.
    5. Make two subfolders in that folder, called VRsettings and 2Dsettings
    6. Make a copy of your graphics_options.xml file after running the game in VR mode, with the settings to your liking. Copy that into the VRsettings subfolder.
    7. Make a copy of your graphics_options.xml file after running the game in 2D mode, with the settings to your liking. Copy that into the 2Dsettings folder.
    8. Run the batch file and you should see four choices:
      1. Launch R3E with VR settings + Crew Chief
      2. Launch R3E with VR settings
      3. Launch R3E with 2D settings
      4. Cancel

    Notes
    1. I have added an option to launch Crew Chief, you can remove that if you don't use it.
    2. I have commented out lines 32-37 and 50-55. These lines kill processes related to SteamVR, this fixes some problems I have launching RaceRoom in VR mode (probably specific to WMR). You can remove the 'rem' on these lines if you need this functionality.

    Code:
    ECHO OFF
    rem The path below should point to your RaceRoom user settings folder, should be: "<your user account>\Documents\My Games\SimBin\RaceRoom Racing Experience\UserData"
    SET SettingsPath="C:\Users\xxxx\Documents\My Games\SimBin\Raceroom Racing Experience\UserData"
    
    rem The path below should point to the folder where this Batch file is saved
    SET LauncherPath="C:\Users\xxxxxxx\RaceRoomLauncher"
    
    rem The path below should point to the folder containing the 64 bit RaceRoom exectuable, should be "<your steam library>\steamapps\common\raceroom racing experience\game\x64"
    SET GamePath="c:\xxxx\steamapps\common\raceroom racing experience\Game\x64"
    
    rem The path below should point to your Steam installation folder, typically "c:\program files (x86)\steam"
    SET SteamPath="C:\Program Files (x86)\Steam"
    
    CLS
    :MENU
    ECHO.
    ECHO  .........................................................
    ECHO  :                 RACEROOM LAUNCHER                     :
    ECHO  .........................................................
    ECHO.
    ECHO  1 - Launch with VR settings and CrewChief
    ECHO  2 - Launch with VR settings
    ECHO  3 - Launch with 2D settings
    ECHO  4 - Cancel
    ECHO.
    SET /P M=Choose an option then press ENTER:
    IF %M%==1 GOTO LAUNCHVRCC
    IF %M%==2 GOTO LAUNCHVR
    IF %M%==3 GOTO LAUNCH2D
    IF %M%==4 GOTO EOF
    :LAUNCHVRCC
    rem ECHO Killing any existing SteamVR processes
    rem Taskkill /IM vrwebhelper.exe /F
    rem Taskkill /IM vrserver.exe /F
    rem Taskkill /IM vrmonitor.exe /F
    rem Taskkill /IM vrdashboard.exe /F
    rem Taskkill /IM vrcompositor.exe /F
    rem Delete graphics_options.old if it is present
    del %SettingsPath%\graphics_options.old
    rem Rename the original graphics_options.xml file to graphics_options.old
    rename %SettingsPath%\graphics_options.xml graphics_options.old
    rem Copy the VR settings to the settings folder
    copy %launcherPath%\VRsettings\graphics_options.xml %settingsPath%
    rem Launch CrewChief with the argument to start in Raceroom mode
    "C:\Program Files (x86)\Britton IT Ltd\CrewChiefV4\CrewChiefV4.exe" RACE_ROOM
    rem Launch Raceroom via Steam
    %steampath%\steam.exe -applaunch 211500 -vr 1.8
    GOTO EOF
    :LAUNCHVR
    rem ECHO Killing any existing SteamVR processes
    rem Taskkill /IM vrwebhelper.exe /F
    rem Taskkill /IM vrserver.exe /F
    rem Taskkill /IM vrmonitor.exe /F
    rem Taskkill /IM vrdashboard.exe /F
    rem Taskkill /IM vrcompositor.exe /F
    rem Delete graphics_options.old if it is present
    del %SettingsPath%\graphics_options.old
    rem Rename the original graphics_options.xml file to graphics_options.old
    rename %SettingsPath%\graphics_options.xml graphics_options.old
    rem Copy the VR settings to the settings folder
    copy %launcherPath%\VRsettings\graphics_options.xml %settingsPath%
    rem Launch Raceroom via Steam
    %steampath%\steam.exe -applaunch 211500 -vr 1.8
    GOTO EOF
    :LAUNCH2D
    rem Delete graphics_options.old if it is present
    del %SettingsPath%\graphics_options.old
    rem Rename the original graphics_options.xml file to graphics_options.old
    rename %SettingsPath%\graphics_options.xml graphics_options.old
    rem Copy the VR settings to the settings folder
    copy %launcherPath%\2Dsettings\graphics_options.xml %settingsPath%
    rem Launch Raceroom via Steam
    %steampath%\steam.exe -applaunch 211500
    :EOF
     
    • Winner Winner x 3
    • Like Like x 1
    Last edited: Apr 2, 2019
  8. ElNino

    ElNino Well-Known Member

    Joined:
    Feb 7, 2015
    Ratings:
    +475 / 0 / -0
    Kudos @FlakNine for providing a solution. I'm sure this is about #9785 on the priority list, but it would be nice if we could somehow use a launch parameter to switch between 2 completely different sets of saved settings - from the car seating positions to the graphics to the hud settings. So you could have essentially one user profile or VR, and another for flat screen, while each being saved separately. Looks like this could be done via this batch file as well - and also copy the file to the storage location after closing the app to save changes...hmmm...might get to work on this
     
  9. pierredietze

    pierredietze Well-Known Member

    Joined:
    Sep 8, 2017
    Ratings:
    +232 / 0 / -0
    We should have this as a tab in the grafic option menĂ¼. One page of settings for 2D, one page for VR.
     
    • Agree Agree x 1
  10. [RWB] FxUK

    [RWB] FxUK Well-Known Member

    Joined:
    Dec 2, 2018
    Ratings:
    +99 / 0 / -0
    • Informative Informative x 1