Set relative locations of modding tools inside the applications
Configure the WolvenKit (wkit) application and MlSetupBuilder (mlsb), and make sure the Asset Browser loads the game's assets.
If you do not use the folder structure I recommended in Prep your computer, then use whatever path WolvenKit automatically fills in for you. Also be aware that your experience will not match my screenshots.
If your Wolvenkit is already configured (because you have followed the installation guide), then you don't need to do anything here.
Otherwise, please do that now or use the settings page to configure Game Executable Path
and (optionally) Depot Path
.
In Wolvenkit, click on HOME
Click on Plugins
REDMod should already be installed. If it isn't, please follow the instructions .
For every other plugin, click Install
or Update
.
If you have been following the setup instructions exactly, then the paths you need to enter here are:
uncook folder: C:\Cyberpunk2077Mod\Depot
WolvenKit-CLI executable: C:\Cyberpunk2077Mod\WolvenKit.CLI\WolvenKit.CLI.exe
If you have not, then your paths will be different and you need to adjust them accordingly.
Let's make sure that your game path is configured correctly and that Wolvenkit can access the files:
Click on Continue to Editor
Open the Asset Browser
After several seconds, a success notification will appear and the asset folder structure will appear on the left. This means WolvenKit was able to access the Cyberpunk archive and extract the game assets.
Congratulations - everything is working! If you haven't done this during the full prep, now is a good time to create a depot. Otherwise, you can move on to ELI5: Validate Functionality!
Please note that before you can do anything with files, you need to create a Wolvenkit project.
Now that all plugins are installed, you can configure (but read the blue box first). This step is optional; you don't need to do it at this time, but you won't be able to make full use of the plugin if it is not configured.
For detailed configuration instructions, head to -> ->
To make sure the modding tools were setup correctly, you will use the below steps to create a very basic color swap mod.
This section is about validating the modding tools and potentially building your first mod.
Learning objectives:
Understand how file types relate to each other,
Identify assets with clothes in the game,
Create and add assets to projects,
Searching the Asset Browser,
Understand the Project Explorer,
Review log for activity,
Understand the purpose of the Archive folders versus Raw folders,
Look at assets in File Editor,
Convert to-and-from JSON files,
Opening files from the Asset Browser to plugins,
Use the Import/Export tool,
Install a REDmod type of mod,
Look at installed mods in WolvenKit Mod Manager.
Use the name of the game item to find the asset files in WolvenKit,
Find all the asset files for the item,,
Create the GLB and DDS file for MlSetupBuilder models,
Open an asset in MlSetupBuilder and change its color from green to orange,
Import the edited asset back into your project,
Install the mod,
Party like it’s 2077 in your new orange tank.
Some of the steps below are unnecessary, but it's important to see how:
An in-game item is used to find the ENT file,
The ENT file is used to find the APP file,
The APP file is used to find the MESH file,
The MESH file is used to find the MLMASK and MLSETUP files,
The MLSETUP file is used to find the MLTEMPLATE file,
MLMASK file is used to find the DDS files,
DDS file is used to find the XBM file.
Understanding this topology will help with your future mod development.
These steps get confusing. Just remember that we’re using the entity file tshirt_08_old_02_w.ent to find the material layer file t1_080__leather_croc.mlsetup
To make sure you do not have any mod conflicts, please uninstall all Cyberpunk mods except for Material and Texture Override. This can normally be done by disabling the mods in Vortex or whatever mod managing application you use for your normal gameplay.
Launch Cyberpunk 2077 and either load an existing woman character, or start a new one if you have to. If you start a new game, then you'll have to play up to the scav hunt with Jackie before you can swap your clothes.
Once you reach a point in the game when you can change your clothes, run the Cyber Engine Tweaks (CET) command “Game.AddToInventory("Items.TShirt_08_old_02",1)”. This will load Judy’s Tank in your torso inventory.
Wear the shirt, take a screenshot, save the game, and then exit the game. This screenshot will be your reference to compare against when you have made the edit.
The name of the shirt is Secondhand Knotted Tank and it’s an Inner Torso item
Navigate to Fandom’s Cyberpunk clothing page and find the asset name for Judy’s tank. Since we know the item is an inner torso shirt, please add #Inner_Torso to the end of the URL. This convention works for all other items as well. If we want to find V’s Pants then you would add #Legs to the end of the URL. If you’re looking for blades, use Fandom’s menu to navigate to the weapons section Gameplay > Items > Weapons and then add #Blade to the end of the URL. But in this case, we’re looking for Judy’s shirt.
https://cyberpunk.fandom.com/wiki/Cyberpunk_2077_Clothing#Inner_Torso
Launch WolvenKit and #create-a-new-wolvenkit-mod-project:
Project Name: Judy’s Orange Tank
Creation Location as C:\Cyberpunk2077Mod\Projects
In the menu bar click on View and click on Reset Layout to make sure your screen matches the screenshots in this guide.
Click on the Asset Browser and search for the asset name we found on Fandom. Start by searching for the entire name “tshirt_08_old_02” and then slowly start deleting characters from the right side until the entity (ENT) file shows up.
Right click the t1_tshirt_08.ent
file and open the file without adding it to your project. Notice that the file opens in the File Editor and is not listed in the Project Explorer.
In the File Editor, expand appearance and locate the full asset name we found on the Fandom website. Notice that in the appearances array, the name ends in “w” which stands for woman (aka “wa” which stands for woman average). Cyberpunk uses postfixes m, ma, mb, mf, w, wa, wb, and wf to describe the gender of the asset and the body type it goes to. A is average, and b and f are synonymous for big/fat. There are other postfixes, but that’s the general concept.
In the File Editor, expand appearance 7 for “tshirt_08_old_02_w”. Click on the blue button for apperanceResource to open the APP file without adding it to the project.
In the File Editor, select the APP file, and expand the appearances array. The asset name we got from the Fandom website is tshirt_08_old_02, which is a mashup of its entity name tshirt_08 and one of its appearance names old_02. We want the woman version of that appearance, so we're looking for old_02_w. Expand the old_02_w appearance and expand its components. This is where you will start seeing the pseudo name of the asset which is Judy’s Tank. The meshAppearance has a value of leather_croc, and the mesh file is listed right next to it. That mesh file is used to create the GLB file that MlSetupBuilder uses to generate the tank's 3D model. Click on the yellow button for the mesh file to add it to your project, only files added to your project will show up in the Import/Export Tool.
In Project Explorer, hover your mouse cursor over the mesh file and click on the blue button to open the file in File Editor. Expand the arrays localMaterialBuffer > Materials > leather_croc CMaterialInstance > values > 0 and 1. [0] contains the MLSETUP file which you'll import into MlSetupBuilder to change Judy's Tank from green to orange. [1] contains the MLMASK file which you'll use with Export/Import Tool to generate the DDS files that you'll need to view the 3D model in MlSetupBuilder. Click on the yellow buttons for the MLSETUP file and the MLMASK file to add them to your project.
Right click the mlsetup file and convert it to JSON
Right click the JSON file and open it in MlSetupBuilder (aka mlsb). MLSB should automatically open for you. If it doesn't, then first check the Windows task bar to make sure it's not open but hidden, and then check click on HOME > Plugins to make sure it is installed.
Over in MlSetuipBuilder (MLSB), close the developer tool, then savagely and with mercy throw more coffee at Neurolinked#4973 (the author of this guide is not Neurolinked), and then click anywhere off the Welcome popup to get into the building tool.
Notice that the material layers loaded but not the model. Click on Library to bring up the frame with the available models.
Search for the mesh name from step 13 and then double-click on the model. Depending on how you created your Depot, you may see up to two errors. The errors are saying that the model requires two files, and those files are not in the locations that MLSB expects. One is the GLB 3D binary and the other the DDS flat image.
To generate these two files, you will use the WolvenKit Import/Export Tool. First thing is to find out where MLSB is expecting these files. Close the Library by clicking the X icon in the orange bar on the top-right of the library. Then click on the warning icon on the bottom-left to open the error log.
The error log says MLSB wants the DDS file in C:\Cyberpunk2077Mod\Depot\base\characters\main_npc\judy\textures and the GLB file in C:\Cyberpunk2077Mod\Depot\base\characters\garment\player_equipment\torso. If you decided not to create an Asset Depot then you will need to manually create these folders for the files you are about to create.
Back in WolvenKit, on the right-side of the screen, click on the tab Import/Export Tool to expand the tool's window. Notice that the MLMASK file is currently set to export as a PNG, but MlSetupBuilder asked for a DDS file. To change that, right click on the MLMASK file and then click on Show Settings. Click on the export type dropdown and change png to dds, and then click on Confirm.
Now that the mesh is configured to export as a GLB and the mask as a DDS, you are ready to export. You can either check the boxes next to each file and click on Process Selected, or since you need to export all the files anyway, ignore the checkboxes and click on Process All. Depending on the speed of your computer, the exported files will eventually show up in Project Explorer in the RAW folders. Notice how several DDS files were exported? This is because each DDS file represents an appearance layer on the 3D model. You can figure out which DDS file you need in three different ways:
On step 18, the leather_croc layer is listed as layer 0 which matches to the numbering system of the DDS files: masksset_0.dds, masksset_1.dds, masksset_2.dds, masksset_3.dds, etc...
On Step 21, MlSetupBuilder told you which DDS file it needed ml_t1_001_wa_tank__judy_masksset_0.dds
Back in WolvenKit you can open the MLSETUP file and expand the appearances list to see which layer number is needed. This is the exact same information as the layer information displayed in MlSetupBuilder (MLSB).
From the error logs on Step 21, and create the folders:
C:\Cyberpunk2077Mod\Depot\base\characters\main_npc\judy\textures
C:\Cyberpunk2077Mod\Depot\base\characters\garment\player_equipment\torso
Back in WolvenKit, hover your mouse over the GLB file and click on the yellow button to open the file's location in File Explorer. Right click the file and copy it, and then paste it in the folder you created back on step 21 (C:\Cyberpunk2077Mod\Depot\base\characters\garment\player_equipment\torso\)
Back in WolvenKit, hover your mouse over the MASKSSET_0.DDS file and click on the yellow button to open the file's location in File Explorer. Right click the file and copy it, and then paste it in the folder you created back on step 21 (C:\Cyberpunk2077Mod\Depot\base\characters\main_npc\judy\textures\)
Back in MlSetupBuilder, click the refresh button at the bottom of the screen. The model should load without errors and the multilayers display on the right.
Attention: As of MlSetupBuilder version 1.6.5, the model does not change with the material selections (e.g. color Normals, Metal Outside, etc.). The model only shows the relationship of the layers with each other. You can see this by clicking through the layers, and the colored region on the model is the currently selected layer.
You can leave the leather_croc material and only change the color to orange (in the case of this guide’s example), but I feel that the orange color looks better in spandex. Select the leather_croc layer and then click the Material dropdown. Type spandex into the search box and select the spandex_clean_02_30 material, and then click the Material dropdown again to close the dropdown.
Attention: Please take a mental note that each layers’ name starts with a number that is in sequence from 0 through however many layers the asset has. The layer we’re editing starts with a 0, which means we’re editing layer 0.
These four settings alter how the material is rendered to physically represent how light interacts with its surface. The dropdown values are not color HEX, but instead reference numbers. The important numbers are inside the brackets (#).
Normals: A texture mapping technique used for faking the lighting of bumps and dents.
Metal Outside: Defines the outside of the material as diffuse with a white dielectric coating (0.0) or metallic (1.0)
Rough Inside/Rough Outside: Sets the roughness of the surface, where 0.0 is completely smooth, and 1.0 is completely rough (wholly diffuse).
Set the Normals to 1.66, Metal and Rough Inside to null, and Rough Outside to 0.3333,0.6666.
Scroll down the color grid, select orange, and then click the Apply Edits button. Notice that the wording in the layer changes to match your selections.
Attention: While you’re here, make sure the Opacity is 1.0 which means this layer is 100% visible.
With the layer updated, click on Export and selected the Wkit version that matches what you have installed, and as of 10/20/2022 that is WolvenKit 8.7. The Save Dialog Window should open to your Project folder and have the same name as the JSON you converted in WolvenKit. When you click on Save, also click on Yes to replace the existing file. There is no need to save a copy of the original because you can repeat step 16 to re-create it.
Back in WolvenKit, right click on the JSON file and click on Import from JSON. Normally a log would be created to show you the import occurred, but currently that isn’t happening so I cannot show you that. Regardless, if you look at the modified date of the mlsetup file in File Explorer, you will see an updated datetime.
Notice the button Pack as REDmod. This button packs your asset files into an archive file, generates the required info.json, puts them into the necessary folder structure to install the mod into your game. This package can be viewed on the PACKED tab. Feel free to click the button Pack as REDmod to see what it does, it will not harm the mod, or else you can skip this step and just look at the screenshot below to see what it does.
Click the button Install as REDmod. This button will pack your mod just like Pack as REDmod did, and then it will also install the mod into your game folder. Let me repeat myself but with different words,
Pack as REDmod generates the archive file,
Install as REDmod also generates the archive file and then install it to your gaming folder.
Your new mod will be listed in the Cyberpunk 2077 REDmod folder
Launch the Cyberpunk 2077 game and load your saved game from step 4. How you launch the game doesn’t matter because the mod is deployed directly to the game’s install directory. Enter your inventory and you’ll notice that the tank you created in step 3 changed from green leather to orange spandex.
Congratulations! You have now validated that WolvenKit is deployed and setup correctly on your computer. Happy modding!
If you want step-by-step instructions on how to install and configure Wolvenkit
Created by @JJTurtle Published October 22 2022
Updated Jul 30 2023 by
This guide is intended for the beginning modder, who is still learning, and wants step-by-step instructions on how to fully install and configure their modding tools and asset depot.
To keep things simple, the recommendations in this guide will centralize many of the modding applications, assets, and related resources.
If any of the steps in this guide fail, then STOP immediately and either fix them or ask for help on Discord.
Some of the recommendations in this guide may be outdated or obsolete by the time you read it. In that case, use your best judgement and play around!
Hard disk space for the Depot:
For regular operations, <5GB storage will be enough
If you want to extract materials and meshes, you should have at least 15GB storage
Optional: If you want to create a full asset depot, then you want at least 75GB storage. If you are reading this guide, then you won't need that.
Optional, but recommended: a basic level of computer knowledge. The guide contains detailed instructions, but you'll have an easier time if you already know things like like:
Open a command prompt and run a command,
Locate your download folder and extract a zipped file,
Install an application,
Find and move files
Remember, if you don't know how to do something, you can always throw the question into Google or ask ChatGPT or the Bing assistant!
First, install Wolvenkit:
Then, we'll start with general prep work:
Let's configure and set up Wolvenkit and all its plugins:
Then, we unbundle those game assets that we need…
We do that by creating a tiny mod to make sure everything worked OK.
Feel free to skip this step, or hit up the modding wiki and get cracking.
Perquisites: All the stuff you could possibly need, with download links
Created by @JJTurtle Published October 22 2022
Updated Jul 30 2023 by
This section is optional, as most guides will tell you what programs you need anyway. If you are not computer-savy or feel very insecure about all this, then you want to read this. Otherwise, you can probably skip straight to the .
Prepare your computer with Windows configuration, basic software requirements, and creates a centralized modding location that will match what you will see in the ELI5 guide screenshots.
This is a suggestion. We're not your real mom, so you can put stuff where you want. However, the paths below will be used through the rest of the ELI5 guide, so you might as well stick to them.
The folder structure below will be the centralized location for modding tools, assets, project folders, guides, shortcuts, and the depot.
I recommend pinning CyberPunk2077Mod folder to File Explorer’s Quick Links. I keep going back to this parent folder to access my guides, shortcuts, to get into the asset depot, etc...
To quickly open the game folder, you can create a shortcut under C:\Cyberpunk2077Mod\
. This will save time when programs keep asking you for the install location.
By default, Cyberpunk installs to the following locations (disregard this if you've changed them):
This will prevent you from running into problems because your path names are too long. Use this if you really like subfolders and/or have OCD. If you plan to put your mods in, for example, C:\mods
, this is not necessary, but it won't hurt under any circumstances.
Enable Windows long path names and then reboot your computer.
Other programs you might need, and what you might need them for
I recommend that you pin Blender, GIMP, and Notepad++ to your Start Menu because you’ll need to access them as you’re creating mods.
If you haven't done that, go and now.
Here is a quick link if you want to do your own research
Otherwise, expand the below.
You should have done that as part of . If you haven't, please do it now, because you need it.
Redmod is CDPR's entry point for mods. For full instructions on how to enable it, see .
Program | What you need it for |
---|
Notepad++ JSON Viewer is used to correctly format JSON syntax, such as when a file has been collapsed onto a single line.... for job security reasons Alternatively, you can install Visual Studio for its VCode JSON Viewer extension, but Visual Studio is a full featured coding solution and only needed by application developers.
Now that wer're geared up and ready, let's proceed to the .
Steam |
|
Epic |
|
GOG |
|
3d modelling - refitting, printing your V, you name it. The software is free and open source. |
Importing and exporting meshes with ease from and for Wolvenkit |
Image editing. You can also use Photoshop or Paint.net. |
( as of Aug.2023)
The for Wolvenkit
Text editing. Using this rather than whatever Windows wants you to use will save you a lot of pain later-on. If you don't know how to enable it after installation, check out the .