👪Changing NPCs - Tweak edit (REDMod)
Changing NPC's info on scan and its archetype.
Created & Published: October 19 2023 by daemon2077 Game Version 2.01
This tutorial will show you how to use REDmod to edit an NPC's TweakDB record, changing their info when scanning them with your Kiroshis. In this tutorial we will edit Panam
If you want to learn more about the Tweak database, check TweakDB: Game database.
Prerequisites
the free REDMod DLC (you can get it here)
An IDE to edit .json files. I prefer Visual Studio Code, but you can also use Notepad++
Preparation
Since we are using REDmod, we need to structure our project accordingly.
Open your in the Windows Explorer.
Find the folder
mods
. If it doesn't exist, create it.Inside
mods
, create a folder for your custom mod — call it however you want. For this tutorial, we will name ours "example mod"Inside your mod folder, create an empty text file with the name of
info.json
. This file will tell Cyberpunk how to load your mod.Copy the following template and paste it into your empty file:
Inside your mod folder, create the following nested folders: tweaks\
base\gameplay\static_data\database\characters\npcs\records\quest\main_characters
Copy the following file to the folder
main_characters
inside your mod directory:Cyberpunk 2077\tools\redmod\tweaks\base\gameplay\static_data\database\characters\npcs\records\quest\main_characters\primarycharacters.tweak
Your mod folder should now look like this:
Editing the .tweak file
To make changes inside, find an NPC with the properties that you want, and copy/paste the values into the record that you want to edit.
Open primarycharacters.tweak in your IDE and search for "Panam
". You will find the following record:
Properties
We will take a look at some of the properties.
property name | value in Panam's template | explanation |
---|---|---|
| Which text is displayed in scan tab? | |
displayName | Which text is displayed in dialogues and choices? | |
archetypeData |
| base template (how she fights) |
Changing an NPC's faction
All existing factions are defined in the following file:
To change an NPC's affiliation, you will need to add the following line to their template:
Results
That's, save your work, deploy your mod and hop in the game to see the results.
If you have any questions, you're welcome to join us on discord.
Last updated