NPV: AMM Nibbles Replacer

How to make your NPV work with the AMM Nibbles Replacer

This guide is part of the guide for creating an NPV - V as custom NPC. It will teach you how to make your NPV compatible with xBaebsae's awesome Nibbles to NPCs 2.0 mod, letting you use your NPV in the game's photo mode.

Requirements:

You can find the original instructions in the mod description under Creating an NPC+/NPV Replacer inside the spoiler tags.

If you experience floating clothes, try switching appearances. Often, that resolves the issue. If not, you can check Appearances: change the looks for how to copy the correct components.

Compatibility: NPV < 2.0.0

For NPV projects >= v2.0.0 (30. October 2023), you can skip to #the-photo-mode-.app-file.

For earlier versions, or if you have not been using the example project, you need to add the photo mode animations component.

Download Wkit Project - NPC App from the mod's optional files.

If you don't care about the expression pack

you can also lift the component from Johnny's photo mode app file:

base\characters\appearances\main_npc\silverhand_photomode.app

If you're doing that, then the component you need will be near the bottom of the appearance.

  1. In the .app file, open the first appearance

  2. Open the components array

  3. Find the entAnimationSetupExtensionComponent with the name of PhotomodeAnimations

  4. Copy it to each appearance in your NPV's .app file.

Step 1: The photo mode .app file

base\characters\appearances > npv

If you don't find those files, your AMM Nibbles Replacer isn't installed correctly. You'll want to fix this before proceeding.

If a file name shows up more than once, you already have an NPV with photo mode replacer support installed. In that case, you'll want to pick the other file โ€” there are two for each body type.

Adding support for more than two .app files requires you to edit both the photo mode replacer and AMM, so it won't be covered in this tutorial.

Step 2: Overwrite the file

Instead of the dummy file, you will want to put your own app file there. You can copy the file by holding the ctrl key while dragging in the Wolvenkit Project Browser.

Can I move my file instead?

No, you can't do that, because the photo mode expressions are using a different graph for the facial setup. CDPR solved that by pulling in different entity files, but (for now) we can't do that, so we have to have duplicate files.

Step 3: Appearance names

The photo mode replacer assumes that your appearances will be named like this:

appearance_01
appearance_02
โ€ฆ
appearance_100

For the sake of clarity, the NPV appearances are not named this way. Open the photo mode .app that you copied in the previous step, and change the names of your appearances.

I don't want the numbers, can I keep my names?

In theory, yes. In practice, you'd have to edit both AMM and the Nibbles Replacer, so the answer is probably no.

Step 4: Changing the facialsetup graph

  1. For each appearance definition in In your photomode .app file, find the component with the name face_rig.

  2. Make sure that the depotPath is of the graph is set to the correct .animgraph depending on your body gender:

/base\animations\facial\_facial_graphs\player_woman_photomode_sermo.animgraph   
base\animations\facial\_facial_graphs\player_man_photomode_sermo.animgraph
  1. Save the file. You now have photo mode expressions, but no more AMM expressions. Can only have oneโ€ฆ

Step 5: Pack and test

Before entering photo mode, select the correct replacer in AMM:

  1. Open the AMM overlay

  2. Switch to Settings -> Photomode Nibbles Replacer

  3. Select the correct replacer corresponding to your file

Step 5 (optional): Edit pose packs

The paths that you need to replace are in the mod description under Adding your Pose Packs to Nibbles Replacer inside the spoiler tags. For your convenience, there's a duplicate in the expandable box below. If that's not working, please check the mod description!

To add more compatibility to a pose pack, you only have to edit the mod's .xl file, which you can do with a text editor. An entry looks like this:

  - entity: base\characters\entities\photomode_replacer\photomode_npc_woman_average.ent
    set: manavortex\animations\quality_time\pwa.anims

There might be one or multiple entries for each supported .ent file. Find out which entry or entries belong together, then duplicate them and replace the paths with the one to your NPV replacer's .ent file.

Make sure that you keep the indent at the beginning (the number of spaces) exactly the same as it is for the other entries, or the file will break. If that happens, you'll see an entry in the .

To make sure that your file is okay, run it through yamllint.

.ent file paths

This is a copy for your convenience. If the paths below aren'ร„t working, please check the mod description under Adding your Pose Packs to Nibbles Replacer inside the spoiler tags.

base\characters\entities\photomode_replacer\photomode_npc_woman_average.ent
base\characters\entities\photomode_replacer\photomode_npc_man_average.ent
base\characters\entities\photomode_replacer\photomode_npc_man_big.ent
base\characters\entities\photomode_replacer\photomode_npc_npv_fem1.ent
base\characters\entities\photomode_replacer\photomode_npc_npv_fem2.ent
base\characters\entities\photomode_replacer\photomode_npc_npv_masc1.ent
base\characters\entities\photomode_replacer\photomode_npc_npv_masc2.ent
base\characters\entities\photomode_replacer\photomode_npc_npv_big1.ent
base\characters\entities\photomode_replacer\photomode_npc_npv_big2.ent

Troubleshooting

(Most of) my NPV isn't moving in photo mode!

Force a refresh - select a different pose.

If that isn't working, refresh the appearance:

  1. Open the AMM overlay

  2. Switch to the Tools tab

  3. Click the Target Replacer button

  4. In the scan tab or the target tools, assign a different appearance. You can switch back right away.

Last updated