Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

Free Fred

Uploaded by

ffsnexusgo

Virus scan

Safe to use

About this mod

A launcher for Fallout 4 VR with Script Extender that checks/fixes missing Fallout4_VR.esm entries in your plugins.txt. Useful for Idle Hands etc.

Requirements
Permissions and credits
Changelogs
Donations
This batch file is a launcher for Fallout 4 VR with F4SEVR.

 It checks your plugins.txt for the *Fallout4_VR.esm 
 line required by some VR mods such as CylonSurfer's 
 Idle Hands  (
https://www.nexusmods.com/fallout4/mods/42922)

 If it's already  there, it'll to try to launch Fallout 4 VR
 using the F4SEVR loader (https://f4se.silverlock.org/)
 
 If the line is missing (thanks, LOOT/Vortex) then it'll make the
 fix and try to launch the F4SEVR loader.

Installation:
Mod Manager will put the file in your Data directory.  
Or manually extract the .cmd from the .7z and shove it where you'd like.
It's just a batch file and pathing shouldn't matter - as long as it ends up somewhere it can write to.

Usage:
Get Steam going and run the cmd file (typey type, double-click, create a shortcut; choose your poison).

v0.1 source:
@echo off
cls
setlocal enabledelayedexpansion
TITLE FO4VR Launch Codes
echo ----------------------------------------------------------
echo -------- Free Fred's Fallout 4 VR Launch Codes v0.1 ------
echo ----------------------------------------------------------
echo.
REM Find plugins.txt
set "file=%LocalAppData%\Fallout4VR\plugins.txt"
if not exist "%file%" (
echo ERROR - Could not find %file%
echo.
goto FAIL
) else (
findstr /b /l /i /n "*Fallout4_VR.esm" %file% 
if !errorlevel! == 0 (
echo VR ESM entry already exists.  Good to go.
echo.
) else (
REM needs to add
(echo *Fallout4_VR.esm) >plugins.txt.new
type %file% >>plugins.txt.new
move /y plugins.txt.new %file%
echo VR ESM entry prepended to %file%.
echo.
)
)
REM Launch F4SEVR Loader
REM First, find the Fallout 4 installation directory.
for /f "usebackq tokens=4*" %%a ^
in (`reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Bethesda Softworks\Fallout 4 VR" /v "Installed Path"`) ^
do (set fallout4dir=%%a %%b)
REM Launch f4sevr_loader.exe if possible
if not exist "%fallout4dir%\f4sevr_loader.exe" (
    echo ERROR - Could not find "%fallout4dir%\f4sevr_loader.exe".
    echo.
    goto FAIL
) else (
echo Launching...
echo.
"%fallout4dir%\f4sevr_loader.exe"
goto:EOF
)
:FAIL
echo Operation failed.
echo.
pause