description |
---|
How to add your NPV to Photomode's list of spawnable characters |
Published: Oct 30 2023 by @manavortex
Last documented update: January 4 2025 by @nutboy
This page shows you how to add your NPV to Photomode's spawnable character list. It is part of the guide for creating an . .
- If you want to update your custom pose packs to work with photo mode NPCs, check archivexl-adding-photo-mode-poses
- If you are trying to make or edit a NPV Nibbles replacer, read on. Nibbles Replacer is no longer compatible as of patch 2.2, and this guide will show you how to make a new Photomode NPV.
{% hint style="info" %} This is a history lesson. If you don't care, skip straight to #how-to-create-a-photomode-npv.
You don't need to install any of the mods mentioned below if you don't want to. {% endhint %}
With 2.2, CDPR added up to three spawnable Photo Mode NPCs. Before that, you could only spawn Nibbles the cat — and modders took full advantage. The result was the Nibbles Replacer, a mod by xbaebsae.
By integrating the Photo Mode with Appearance Menu Mod, modders tricked the game into believing that NPCs were valid alternate appearances for Nibbles the cat.
- Adds up to 250 new spawnable NPC to the character list (this number has yet to be tested)
- Spawn different kinds of NPVs without exiting Photomode and managing Nibbles "slots"
- Switch NPC appearances directly in photo mode
- NPC now can spawn props and weapons if a pose has them
Requirements:
minimum version | |
---|---|
Cyberpunk 2077 | Game version 2.2 |
ArchiveXL | 1.19 or newer |
Wolvenkit | Wolvenkit > 8.15.1, Nightly published after Jan 25 2025 |
Optional: PhotomodeEx | 1.0 |
- You have a custom NPC Wolvenkit project with an .app file and a root entity file.
If you don't have one, you can download the template project from . - You have configured your modder name in Wolvenkit's settings (click the link if you haven't)
Optional: Adding your NPV's files to a new Wolvenkit project
If someone else made your NPV and you don't have the original Wolvenkit project, or you're scared of fucking up your existing NPV project, you can create a new Wolvenkit project and add the necessary files from your Mod Browser.
Here's how:
- Open Wolvenkit and create a new project. Avoid using special characters such as ! or #
- In your new project, open the Asset Browser. Toggle the Mod Browser button to on.
- Scroll down to your installed NPV's mod folder.
Note: Mod files are in alphabetical order of archive name, but split into two sections for capitalized archive names and lowercase archive names.
- Open the NPV mod folder. Locate both the
.app
and the.ent
file. Double click to add them to your project.
Note: You may have an .app for a Nibbles replacer as well as your NPV's regular AMM app. Use the AMM app (not the Nibbles replacer app) if you want to keep your character's appearance names.
When you are done creating the photo mode files, you can delete the .app and .ent files you added. (Don't worry, the guide will show you a reminder)
After you are done creating the photomode files, you can combine the projects by merging their source folders in the Windows Explorer.
{% hint style="info" %}
If you made any mistakes, you can simply repeat the process. Either delete the files that you want to regenerate, or check the Overwrite Existing File
box in the dialogue.
{% endhint %}
Click on File > Add Files > Add Photomode Files
Wolvenkit will pre-fill everything based on your project name and your file names, but you can still customize the options. (Keep reading)
If you have more than one .app or .ent already in the project, you can select the correct one from the drop down.
-
Double-check the NPC name, as Wolvenkit guesses it from your project and file names and you will see it every time you spawn your NPC in the photo mode picker. Remove any special characters from the file names.
-
Make sure that the right
.app
and.ent
file are selected (if multiple of those are in the project, Wolvenkit can't tell which you want)
&#xNAN;Note: You may have an .app for a Nibbles replacer as well as your NPV's regular AMM app. Use the AMM app (not the Nibbles replacer app) if you want to keep your character's appearance names. \ -
Next to NPC Name, select the body type of the character you're adding from the drop down. (Selecting the wrong one may lead to horrors.)
-
When you click "Finish", Wolvenkit will generate everything you need to spawn a photo mode NPC. You should now see something like this (Project browser's
source
tab):
If you created an extra project just for photo mode:
Do not delete the new _photomode.app
and _photomode.ent
!
Delete the original .app
and .ent
file (they are a part of your NPV's mod, you don't need them in this mod as well).
{% hint style="success" %} You are done creating your photo mode files! You can now head to #step-2-install-your-photomode-npv.
If you want to know more about the process, feel free to expand the boxes below. {% endhint %}
Wolvenkit just did the following things for you:
Created your_modder_name\photomode\npc_name_photomode
and added the following files:
- Create an icon: It added the
.inkatlas
and the.xbm
texture it uses, and connected them (we'll customize it in #step-3-add-a-custom-icon-for-your-character) - Create a photomode
.ent
file: It created a copy of your original.ent
file, then configured it to use the npc-animations.md required by photo mode - Create a copy of your original
.app
file and registered it in the photomode.ent
. In this file, your character's facial-animations.md have been configured to be photo mode compatible (including xBaebsae's Photomode expression pack) - Create a .json: For photo mode to know your NPC's name, it needs a translation file
Added the following control files under resources
:
.archive.xl
: Tells ArchiveXL to load your.json
file, and that your.ent
file is a photo mode .ent that needs animation support.yaml
: Tells ArchiveXL about the photo mode character you're adding, such as the
It's time to test your Photomode NPV!
- Click install in Wolvenkit's toolbar and open your game.
- Enter Photomode. In the characters tab, you should see a new icon at the very bottom (you might need to scroll) with blue text:
- Click the icon and your character will appear!
In this step, we'll change the blue ICON
text to your very own texture.
{% hint style="info" %} There is a detailed guide for images-importing-editing-exporting.md, so this guide will only give you a quick overview. {% endhint %}
- In the Export Tool, check the box next to the
.xbm
- Click on
Export Selected
- This will export a PNG to your
raw
folder:
- Open this PNG in Photoshop or an image editor of your choice and update it with an image of your character.
{% hint style="danger" %} Do not change the size of the image width or height. {% endhint %}
How to create a good icon
Check out these articles in the Wiki:
images-importing-editing-exporting.md
game-icons-the-inkatlas-file.md
custom-in-game-icons.md
- Save over the PNG in the raw folder. Do not change the file name.
You should be able to see a preview of the icon in Wolvenkit when selecting the .png:
Example icon of my NPV
- Use the Import Tool to import your
.png
back into the.xbm
. Set Texture Group toTEXG_Generic_UI
- Click import selected. It will overwrite the existing placeholder .xbm in your project files.
- Select your
.inkAtlas
file or open it and check thePart Mapping
tab to check if your new icon appears:
- Press install and check in game to see your new character icon!
Some poses spawn props, and if the pose calls for a certain weapon type (melee, handgun, etc.), it will spawn a default weapon for your NPC. You can customize your NPC further by adding specific in-game weapons to their inventory to spawn instead.
Check "AcceptedWeaponConfig" in poses-animations.md to see a list of the types of weapons that can spawn in poses.
Here's how to give your NPC weapons:
- Open your NPC's .yaml
- You should see a section like this:
Character.your_characters_name_Photomode_Puppet
$type: PhotoModeSticker
atlasName: filename.inkatlas
imagePartName: character_icon
Add a new line underneath it, and copy and paste this:
effectors:
- !append
$type: AddItemsEffector
itemsToAdd:
- item:
- Find the record for the weapon(s) you'd like to add to your character's inventory. There are a few ways of doing this:
- Check the CET Console commands list.
Find the weapon(s) you want (you can CTRL + F to search by name).
In the "Command" column you'll see a CET command that readsGame.AddToInventory("Items.Item_Name")
, Copy theItems.Item_Name
and paste it into your yaml after- item
.
It should now read:
effectors:
- !append
$type: AddItemsEffector
itemsToAdd:
- item: Items.Item_Name
Alternatively, you can search "Items." in the Tweak Browser in Wolvenkit and find your weapons.
- If you want to give your NPC more than one weapon, copy and paste
- item:
to a new line for each weapon you want . Spaces are important, make sure it's in line with the item entry above it. Multiple items registered properly will look like this:
effectors:
- !append
$type: AddItemsEffector
itemsToAdd:
- item: Items.Item_Name
- item: Items.Item_Name
- item: Items.Item_Name
- Save your yaml, check poses with weapons in game to see them.
{% hint style="warning" %} If you want to update your custom pose packs to work with photo mode NPCs, check updating-photomode-pose-packs-for-2.2.md {% endhint %}
- Make sure you have AMM's "Photomode Enhancements" turned off in the AMM settings
- Uninstall Appearance Creator Mod, as of this guide (Jan 4 2024) it's not updated for 2.2
Check images-importing-editing-exporting.md -> #importing-a-texture