Costume Framework for P3R
Costume Framework makes adding new outfits, as new items, as simple as adding the files. The time of outfit replacements is over!
On top of that, outfits now have many new features!
Features
- Outfit names and descriptions can be changed with zero file editing.
- New costumes added from existing outfits (non-DLC of course).
- Add new costume functionality to existing costumes (game or other mods).
- New costume that can be equipped for randomizing costumes.
- Outfits can have custom AOAs, Animations, and Skeletons.
- Outfits can replace audio and movies with Ryo.
- Outfits can customize BGM with BGME Framework.
- Outfits can add new battles themes with BGME Battle Themes.
- And everyone's outfits can use the above BGM functionality, not just the Player.
Featured Mods
Adds many Kingdom Hearts costumes which include costume BGM, voice lines, and custom cutins. Highly recommended as an amazing mod and a showcase of Costume Framework features.
Guide
There's a bit to cover but if you've made an outfit mod before it should be as easy, if not easier.
Create a Mod
- Download and install Costume Framework for P3R.
- Create a Reloaded mod following the official guide: https://reloaded-project.github.io/Reloaded-II/CreatingMods/
- While creating it, add Costume Framework for P3R as a Mod Dependency.
- In Reloaded, go to P3R and enable your new mod.
- Click on your mod then click Open Folder. This is where you will put all your mod's files.
Adding a New Outfit
- In your mod folder, create the folders:
MOD_FOLDER/UnrealEssentials/P3R/Content/Costumes/ - Inside the Costumes folder, create a folder with name of the character you want to add an outfit to. Characters: Player, Yukari, Stupei, Akihiko, Mitsuru, Aigis, Ken, Koromaru, Shinjiro.
- Inside the character's folder, create a folder with name of your outfit (see below for spaces in names). Add the following files to set the various meshes:
- Base Mesh (Skeleton):
base-mesh.uasset - Costume Mesh:
costume-mesh.uasset - Hair Mesh: hair-mesh.uasset
- Face Mesh: face-mesh.uasset
- For animations, replace
meshwithanimlike:base-anim.uasset - Allout Normal (Texture):
allout-normal.uasset - Allout Normal (Mask):
allout-normal-mask.uasset - (Optional) For custom special allout (SEES Uniform variation), replace
normalwithspecial. - Allout Text:
allout-text.uasset - Allout PLG:
allout-plg.uasset
And that's it! Just like that you'll find your new outfit unlocked in-game, as a new item, with the same name as your outfit file :)
IO Store
This DOES NOT bypass IO store's limitations. Any new assets need to be cooked with the expected paths in mind. Your assets in UE should be located similar to: Content > Costumes > Player > COSTUME_NAME > costume-mesh. Make note that where Xrd777 would normally be is replaced by Costumes.
Spaces in Names
Since UE doesn't support spaces in file paths, currently the only way to have spaces in costume names is by setting it in the config.yaml, see Outfit Customization below for details.
Mod Settings
By clicking Configure Mod in Reloaded you can change the following settings
- Overworld Outfits: Use equipped costumes in the overworld.
- Randomize Outfits: Randomizes outfits globally, including the overworld. Use the in-game item for randomization only in places costumes work.
- Costume Filter: Filter out costumes from randomization/game.
- Integrations: Disable other mod integrations, such as costume music with BGME Framework.
Using New Outfit Features
Take an outfit to the next level by having it customize, well, a bunch of other stuff! This applies to new outfits and game outfits!
In the outfit's folder, you can add the following things to use new features.
Custom Outfit Audio and Movies
Outfits can replace audio and movies with Ryo. Simply create a Ryo folder in the costume folder: COSTUME_FOLDER/Ryo/P3R
Can be used for customizing voice lines, SFX, cutins, etc.
Custom Outfit Music
Outfits can customize game music through BGME Music Script and/or BGME Battle Themes script. For battle music specifically, BGME Battle Themes is recommended so that multiple outfits can also add music.
Outfit Music with BGME Framework
Create the music script file: music.pme
It's just a regular music script, so for more information see the BGME guides and documentation.
To create a similar effect as the game's outfit BGM, use global_bgm to overwrite game songs:
global_bgm["Butterfly Kiss"]:
music = 10000
end
Outfit Battle Music with BGME Battle Themes
BGME Battle Themes enables the ability for multiple mods (and outfits in this case) to add battle music, which isn't possible with BGME Framework alone.
- To get started, create the battle themes music script file:
battle.theme.pme - Place any music you want to use in a battle theme script in the folder:
MOD_FOLDER/battle-themes/music - For music files, prefer using HCA files. You technically can also use any looped format supported by vgaudio (like ADX), but it will have to convert it for P3R the first time.
- Change your music file names to simple ASCII names, without spaces. Similar to
custom-song.adxorcustomSong.adx. - Finally, open your
battle.theme.pmemusic script in a text editor.
In your battle theme script, create a constant named BATTLE_THEME then set it whatever you music you want the battle theme to be.
const BATTLE_THEME = myCustomSong
Battle theme scripts are mostly the same as normal music scripts, but for new music you use the file name instead of a BGM ID.
For music randomization, this means you can't use random_song(minBgmId, maxBgmId). Instead you'll have to use an array/list, such as in this example:
const pq2_bgm = [pq2_InvitationToFreedom, pq2_PulltheTrigger, pq2_RememberWeGotYourBack, pq2_WaitandSee]
const BATTLE_THEME = battle_victory_set(random_song(pq2_bgm), pq2_TheShowisOver) // Persona Q2
Outfit Customization
Maybe more customization options in the future?
Outfit Descriptions
Add: description.msg
Descriptions are MSG (text) files without a MSG label. Example description ([uf 4 2] inserts the player's name):
[uf 0 5 65278][uf 2 1]The attire [uf 4 2] wears when infilitrating Tartarus.[n][e]
Config File
Add: config.yaml
# Override the outfit name (folder name for new outfits, in-game name for game outfits)
name: "New Name"
# For using game assets, you can either use the file path or the shorthand:
# asset:CHARACTER|TYPE|ID (optional)
#
# Examples:
# asset:Player|BaseMesh
# asset:Player|CostumeMesh|51
# asset:Yukari|HairMesh
# asset:Yukari|AlloutNormal
base:
mesh_path:
anim_path:
costume:
mesh_path: /Game/Xrd777/Characters/Player/PC0001/Models/SK_PC0001_C052.uasset
anim_path:
hair:
mesh_path: asset:Stupei|HairMesh
anim_path:
face:
mesh_path:
anim_path:
allout:
normal_path:
normal_mask_path:
special_path:
special_mask_path:
text_path:
plg_path:
Add New Features to Existing Outfits
You can add any of the new features to existing outfits. This includes both game and mod outfits!
- Create a costume folder per the directions above.
- Create a
config.yaml. - Set the name to the outfit you want to add things to, such as:
name: SEES Outfit - Anything added to the costume folder will be added to that outfit.
Replacing Outfits with New Costumes
Easily replace any game outfit with a mod costume (or another game outfit) with Costume Overrides.
In your mod's folder, create the YAML file: MOD_FOLDER/Costumes/overrides.yaml
Note that that Costumes folder is NOT in the UnrealEssentials, but in your mod's base folder.
Overrides are made up of three parts:
character: The character name of the override (see above for character names list).original_costume_id: The Costume ID or name of the costume/outfit you're replacing.new_costume_name: The name of the new costume replacing it. This can be a mod costume's or a game outfit's name.
Example
# Replace by costume name.
- character: Player
original_costume_id: Winter Uniform
new_costume_name: Just-A-Phase Outfit
# Replace by Costume ID.
- character: Player
original_costume_id: 1
new_costume_name: Just-A-Phase Outfit
# Replace other character's outfits.
- character: Yukari
original_costume_id: Winter Uniform
new_costume_name: Just-A-Phase Outfit
API for Mod Configs
An API is available to allow for mods to have configurable options.
API: Github