Moving and renaming in existing projects
How to avoid changing every single depotPath in your mod by hand
TL;DR:
Check the following steps:
Exporting the files to JSON
In Wolvenkit, save all your open tabs and close them. You don't want any files to be open in Wolvenkit for what comes next.
Move and rename your files and folders, e.g.
tutorial\myshirt
toyour_modder_name\my_tshirt
. (If Wolvenkit doesn't let you, you can use the Windows Explorer.)
Make sure that you stick to lower case letters and use _ instead of spaces!
Good: your_modder_name\my_tshirt
Bad: yourModderName\myShirt
Horrible: your modder name\My Shirt
In Wolvenkit, right-click on the top level folder under archive and select "Convert to JSON"
Changing the file paths
We will use Notepad++ to adjust the file paths in all files in your project. For that, we need to find and replace the following entries. If you aren't sure about that, see the next section.
Inside the .archive (with double slashes)
tutorial\\myshirt
your_modder_name\\my_tshirt
in resource files (e.g. .xl)
tutorial\myshirt
your_modder_name\my_tshirt
in script files (e.g. reds)
tutorial/myshirt
your_modder_name/my_tshirt
If you already know what to do, you can skip forward to Importing Back.
Preparation: what do I replace again?
Switch Wolvenkit's project browser to
raw
, then open one of the created.json
files in Notepad++.Use "Search: Find in Files..." (
Ctrl+Shift+F
)In
Find What
, enter the name of your old folder (e.g.tutorial
)Click
Find All
- that will give you all the entries you have to replace.
Make sure that you are using the same kind of slashes. If the old path has double backslashes, the new path must have them as well.
We goin' in
You know what to replace now. For every type of entry, do the following:
Use "Search: Find in Files..." (
Ctrl+Shift+F
)Check the
Follow Current Doc.
checkbox.Click into the
Directory
field. It now has the path to the file you've just openedCut off the subdirectories: you'll want to search and replace directly under
source
For
Find what
put the name of your old folder that you copied in step 6For
Replace with
put the name of your new folder. Make sure that you have double backslashes!Click on
Replace in Files
Importing back
Deleting leftover files
If you have packed any tutorial projects before renaming files or folders, make sure to delete leftover files from your Cyberpunk 2077 directory. It's easiest to search the root folder for tutorial
and delete everything that looks like your old stuff — if it's from your project, the next install will put it back.
That's it! Have fun!
Last updated