About this mod
A batch file to copy meshes and textures for U.P.F. (unique Player Framework)
- Requirements
- Permissions and credits
- Changelogs
This is a batch file to copy textures and meshes for your unique female player.
I made this in the same spirit as HD DLC - Head Texture Fix (Batch File)
As I don't really know powershell however, I just made the decision to code this in pure PHP.
Usage:
- Download it as a mod using Mod Organizer 2 or Vortex
- Make sure you have PHP installed and that PHP can be ran from the command line (type php -v in windows terminal (start > run> type cmd) to see if PHP is working). If not, you can follow this guide: https://www.sunant.com/running-php-from-windows-command-line/ It uses PHP version 5.6 as an example, but the code can be ran in PHP 7 or 8 with no problems. Use this page to download PHP: https://windows.php.net/download (use one of the zip files, not the PHP source code).
- Add a new executable, and select tools/upf_copy/upf_copy.bat.
- Run the tool.
The batch file will automatically copy files if they dont exist or when the file has a different fingerprint (uses md5_file).
For step 2, I highly recommend setting the executable path to the one in the mod staging folder.
For example: D:\mo2\mods\upf_copy-1.0\tools\upf_copy\upf_copy.bat
Doing this will make sure the Fallout 4 data directory will stay clean (as the meshes will be inside the mod folder).
Instructions for possible batch file updates in the future
To not loose your copied meshes/textures:
- Go into the mod staging folder for upf_copy.
- Drag the meshes/ and textures/ folder to a temporary folder
- Install the update
- Drag back the meshes/ and textures/ folder
- Run the tool again whenever you want