AMM: Custom NPCs
How to customize NPCs with AMM
Summary
Published: Nov 27 2023 by manavortex Last documented update: Jun 02 2024 by manavortex
This guide will show you how to create fully custom NPCs for AMM.
Wait, that's not what I want!
If you want to create AMM: Custom Props instead, check the link.
If you want to add new appearances to already existing NPCs, check AMM: Custom NPC appearances
If you want to add V as an NPC, check NPV - V as custom NPC. (It's a more advanced version of this workflow)
OK, let's go
In this tutorial, we're creating a custom entity for Mamá Welles, because right now, she's .app-sharing with all the female Valentinos in the world (base\characters\appearances\gang\gang__valentinos_wa.app
), and frankly, she deserves better.
So we're moving her out of there and setting her up with her own files. We're also giving her a comfy outfit to wear at home.
We will be creating a new character, which we can spawn in addition to the regular Mamá Welles. That's because adding appearances to an existing character is simpler, so it has its own guide under AMM: Custom NPC appearances.
Prerequisites
You need at least the following versions and mods (newer is fine):
Cyberpunk 2077 game version >= 2.02
WolvenKit >= 8.11.1
AppearanceMenuMod >= 2.5.2 and its dependencies
Cyber Engine Tweaks >= 1.28.1
Codeware >= 1.5.0
Step 0: Setting up
Create a Wolvenkit project and give it a name that you can remember
Download the example project from Nexus
Extract the downloaded zip file into your project's root directory (the
source
folders should merge).You should now see the following files:
Step 1: The files
Any links in this section will go to the NPV guide, which is a more complex version of this guide. You can read the theory and then come back here, or you can go along and find out later.
The archive contains
The .lua fileto tell AMM about our files
The root entity, which is where we register our appearances with the game (it's a copy of
base\quest\tertiary_characters\mama_welles.ent
)The app file, which actually contains the appearances (it's a copy of
base\characters\appearances\gang\gang__valentinos_wa.app
)… and a bunch of custom meshes for the
mama_welles_comfy
appearance.
When you're making your own NPC, you should make sure to take the root entity from a compatible character — what animation template and which set of facial expressions they use. If you don't know what that means, just look at Takemura-san and Viktor when they walk.
Alright, here's how you go about making changes:
A different NPC
Read this section if you want to take the example project and mod a different NPC than Mamá Welles. Otherwise, you can check out Adding more appearances below.
Find the NPC's
.app
or.ent
file by using the Wolvenkit Search.If you've found an
.app
, use "find files using this" to find the correct.ent
Replace the .ent and the .app in your project with the NPC's original files
Adjust the .lua:
entity_info
=>path
must point at your.ent
fileThe list
appearances
I won't repeat it here — this section will only tell you how to change things. hold entries corresponding to thename
field in your .ent. This is how AMM populates the dropdown and activates the right appearance:
Optional, but recommended: before you start custompathing, change your folder structure. Since this will break your mod, can check Finishing and cleaning up for how to go about that.
Adding more appearances
1. The .lua
In the .lua
file, add an appearance to the appearances
array to register it with AMM.
2. The .ent
In the
.ent
file, open theappearances
array at the top of the file.Optional, but recommended: Delete all appearances that you don't want, but keep one for the next step.
Create a new appearance:
Select an existing item
Right-click and select "#duplicate-item-in-array-buffer" from the context menu. This will create an exact copy of your existing appearance.
In the new entry, change the following fields:
name
: must match the name that you just registered in the.lua
appearanceName
: must match the name that you are going to use in the .app file in step 3.3
3. The .app
In the
.app
file, open theappearances
array at the top of the file.Optional, but recommended: Delete all appearances that you don't want, but keep one for the next step.
Create a new appearance:
Select an existing appearance
Right-click and select "#duplicate-item-in-array-buffer" from the context menu. This will create an exact copy of your existing appearance.
Change the appearance's
name
to the value you used in step 2.3.2
Now it's time to adjust the components. This guide won't go into detail about this — see Appearances: change the looks for more intel on the process.
Finishing and cleaning up
If everything is working: Congratulations! You have successfully made a mod!
But before you can share it, you need to do one last thing, which is changing the file structure. Otherwise, everyone will overwrite the same tutorial files, and only one of those mods will work.
You can find a full guide on how to do that here.
Last updated