Jump to content

Recommended Posts

View File

ABOUT
This script will swap between two versions of Fallout 4 on the same PC. This is meant for mod developers to easily switch between modded and vanilla versions of the game without hassle. The script does nothing more than rename the 4 folders where a modded fallout installation lives.

 

This does not: Alter or modify in any way the content within the folders
This does: allow swapping between 2 distinct installs of the game

 

Source code is attached in text format for review as well. Please check the usage section on how to customize for your installation.

 

Cheers!

 


WHY
Steam installed Fallout 4 resides in 3 directories on the user's PC. If using Nexus Mod Manager, a fourth folder is used. When developing mods, authors and testers often need to test on a vanilla version of the game. There are many ways to accomplish this - this is how I chose to handle it.

 

Folders:


  • ..\Steam\steamapps\common\Fallout 4 [Where Steam installs the game]

  • ..\%USERNAME%\AppData\Local\Fallout4 [where data about the game is stored]

  • ..\%USERNAME%\Documents\My Games\Fallout4 [save games, ini files, logs, etc.]

  • ..\Nexus Mod Manager\Fallout4 [NMM mods folder, if used]


In order to swap between two different versions of the game on the same PC, I chose to rename the game's folders as the path of least resistance. After allowing the game to reinstall to a vanilla state, I had both version. Swapping the folder names can be done manually - but it is cumbersome, not very efficient, and prone to error. The delete option in Windows is directly above the rename option when right clicking!

 


SETUP & USE
First, this requires a bit of time, patience, and hard drive space. Depending on your connection speed, anywhere from 30min-2hr to download and install Fallout 4. Space requirements (30GB vanilla, with all DLC) are double what they would be for the base game at minimum, can grow much larger as mods are installed on each profile.

 

Preparation:

  1. Logout and exit Steam
  2. Find the above 4 folders using Windows File Explorer
  3. Rename them to include the suffix _PLAY i.e. ..\Steam\steamapps\common\Fallout 4_PLAY (keep the space)
  4. Restart Steam, Verify Integrity of game files (this will reinstall Fallout 4)
    1. Navigate to Library>Fallout 4
    2. Right click Fallout 4, select Properties then Local Files tab
    3. Click Verify Integrity of Game Files
    4. Find something to do for the download and install (30min - 2hr, depending on connection speed)

[*]After installation of Fallout 4, navigate to the 4 folders above and verify you have both the vanilla and _PLAY folders

  • ..\Steam\steamapps\common\Fallout 4
  • ..\Steam\steamapps\common\Fallout 4_PLAY



You're all set now with 2 versions of Fallout 4 on the PC
  • Start the game once to create necessary ini and log files
  • Start Nexus Mod Manager, set it up, ensure it's empty
  • Reinstall/setup any tools on the vanilla copy needed (FO4Edit, Loot, Wrye Bash, etc.)
  • Access Creation Kit and Verify Integrity of Game files (will reinstall to vanilla install folder)
  • etc. and anything else you might need


Using the Script:

  • When ready to swap between game versions

  1. Unpack the script to your desktop or favorite folder, location does not matter (DO NOT RUN IT)
  2. UPDATE the script (right click on batch select "edit") with your folder paths (lines 13-16) for each case

    [*]Close the game if open, Nexus Mod Manager, etc. [*]Close any open Windows File Explorer windows (can cause folder access issues if open while running the script) [*]Right-Click on FO4_Folder_Swap.bat and Run as Administrator [*]Follow batch window prompt, verify what it's asking you to confirm (see screen shot)

    1. a Y answer executes the renaming procedure
    2. a N answer exits the procedure and makes no changes



    What it will do:

  • Detect which state your game install is in between the two of DEV (for development) or PLAY (for main playing)
  • Whichever state your in, the script will rename the 4 folders listed above and either:
    • Swap your DEV folders to become the active profile OR
    • Swap your PLAY folders to become the active profile

    [*]These changes will be immediate and have been tested to work with:

    • Steam
    • Fallout 4
    • Creation Kit
    • Nexus Mod Manager
    • FO4Edit
    • Wrye Bash
    • Loot


 

Please post questions or comments! Feedback is welcome!

Review the script, ensure that no silliness like deleting your hard drive or sending your personal information is included!


 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use