Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

Langmans

Uploaded by

Langmans

Virus scan

Safe to use

Tags for this mod

About this mod

A batch file to generate bodyslide sliderset files for U.P.F. (unique Player Framework) for vanilla outfit replacers.

Requirements
Permissions and credits
Changelogs
Note: requires PHP!!!

This is a batch file to generate sliderset files for BodySlide.

This is a followup of my upf_copy batch file and I made it because it doesn't handle .tri (bodymorph) files correctly.

I made it for replacers, like:

2PAC skimpy armor and clothing replacer
Lazman female armor replacer
Grafpanzer Classy Chassis Outfits
Ghaan revealing fusion girl outfits

But any replacer for vanilla outfits will work. You just need bodyslide data.

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_bodyslide_generator/upf_bodyslide_generator.bat.
  • Copy the sample ini file and change the fallout 4 data directory (or do it after running it initially).
  • Run the tool.

The batch file will automatically copy and convert bodyslide project files (tools/bodyslide/slidersets/*.osp) to unique player framework when it matches the rules.

There is a chance the tool will also pickup slidersets for non-vanilla armor/clothes, as outfit authors sometimes will place their meshes in meshes/armors/<outfitname>/<outfitname>.nif. You can just delete the wrongly generated osp files afterwards.

For step 2, I highly recommend setting the executable path to the one in the mod staging folder.
For example: D:\mo2\mods\upf_bodyslide_generator-1.0\tools\upf_bodyslide_generator\upf_bodyslide_generator.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 or changed sliderset files

  • Go into the mod staging folder for upf_copy.
  • Drag the tools/bodyslide folder to a temporary folder
  • Install the update
  • Drag back tools/bodyslide folder


Technical details for outfit replacer authors
The batch file will parse the .OSP file, look for the outputpath, change it according to UPF rules, and then save it with a prefix or suffix as a new bodyslide project file. .OSP files are code files in xml format, they contain instructions for bodyslide how to build a mesh and where to output a specific
mesh. See the screenshots for an example (CBBE automatron original bodyslide file on the left, generated UPF bodyslide copy on the right).

TODO
Add support for copying TXT files (high heels framework)