Jump to content
  • entries
    7
  • comments
    0
  • views
    1,046

How to export default outfits from xEdit


kaxat

454 views

This will guide you through exporting a .json file that the mod can use to reset all actors outfits back to their original state. Exporting outfits is not something most users will need to do. The mod will trigger a popup if you ever reset all actors, and it notices some of them could be more accurately reset. If these steps daunt you then skip them. If you ever get that popup you can reconsider. It usually says that only a handful of NPCs were not fully reset.

 

These steps may apply if you played Slaverun Reloaded in your save prior to installing the Outfit Update (v0.5). These steps do not apply if:

  • You have no desire to reset NPC outfits and slavery factions to their default status.
  • If you started a new game.
  • You do not have mods which add NPCs to cities.

1500 of the base game NPCs + Slaverun NPCs are already exported and included in the Outfit Update.

 

Brief overview: We will export a .json file from xEdit using an xEdit script. Copy this file to a location the mod can read from. The mod will use this file to determine the default outfits for NPCs that do not have their default outfit saved. Past versions of Slaverun Reloaded did not save the defaults anywhere. The information is permanently lost as far as the game is concerned. So this is our workaround. Go right to the source game files in xEdit. Generate a list. Hand that list over to the mod for when it needs to reset.

 

Steps

  1. Download List Outfits.pas
  2. Save that file in your xEdit/Edit Scripts/ directory.
  3. Open xEdit with your mod manager.
  4. After xEdit finishes loading, right click on a plugin, click Apply Filter.
    1. This will apply a filter to all plugins.
    2. We want to filter down to just NPC records. So ensure "by Record Signature" is checked then uncheck everything except the NPC_ record type.
    3. If you have used filters before, some of the other filters might be checked. Like "Name Contains". Uncheck all of these. We want all NPCs.
    4. Click Filter. This will take a few seconds to complete.
  5. Select all of the visible plugins, right click, click Apply Script...
  6. Find the List Outfits script that you downloaded. Select it and click OK.
    1. It will take a few seconds to complete. Or a few ages if you skipped step 4.
    2. It will output all of the NPCs it ignored and why. That means the script is working. We don't need all NPCs just those in cities with outfits.
  7. You will get a prompt asking where you want to save the JSON file. Save it somewhere.
    1. Download this example zip file. SES Custom Outfits NPC Defaults.zip
    2. Replace the JSON file in this zip with the JSON file that you exported from xEdit. The JSON file is found inside [zip root]/SKSE/Plugins/Slaverun/
    3. Install this zip as a mod in your mod manager. Be sure it has a priority which overrides the Enforcer mod.

 

Done. When the Enforcer resets an NPC back to their default outfit it will do so accurately. Regardless of whether that NPC is from the vanilla game or a mod you have installed. It will also remove them from the slave faction if they were not originally part of it.

 

Note: On 2023-03-09 updated the two download links to be compatible version 1+ of SES. Previously downloads were only compatible with the beta version 0.x.

Edited by kaxat

0 Comments


Recommended Comments

There are no comments to display.

Guest
This blog entry is now closed to further comments.
×
×
  • 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