How to hot reload things with RedHotTools
Published: Aug 18 2024 by Last documented edit: Aug 18 2024 by
This page describes Red Hot Tools's Hot Reload mechanism.
Although there is a CET overlay, Hot Reload is fully integrated with Wolvenkit and Visual Studio Code — you don't have to do anything except pushing the right button.
As you know, Cyberpunk 2077 loads its mods from archive/pc/mod
. While you run around in Night City, it will keep them open and use the files inside as it needs them.
As far as the game is concerned, the .archive
files never change.
By placing .archive
s inside the hot
folder, you put them under the control of RHT, which will add them to the game's internal pool of never-changing content:
That's because RHT moves the file into mods
and splices them into the game's resource pool.
Don't worry if your files disappear from hot
, that means everything is working as intended.
Red Hot Tools invalidates the game's resources and loads your changes, but things that are already spawned won't be affected. Here is how you can trigger change detection:
Loading a save (always works)
Spawning a new copy of your item via CET and equipping that (usually works)
Despawning and respawning the NPC or world entity you're modifying (usually works)
Respawn the UI widget (usually works)
Unequipping and re-equipping your item (sometimes works)
Simply push the "Hot Reload" button in your toolbar:
You can download the RHT plugin red-hot-vscode-x.x.x.vsix
from github:
Install the extension via Extension Manager's ...
menu (Install from VSIX...
) and restart VScode.
Now you can see the following actions:
Here, you can manually trigger a reload of archive extensions (read: .xl
files).
You only have to do this if you edit an .xl file in archive/pc/mods
.
Pushing the button will not reload .archive
files. RHT will do that automatically by watching the hot
folder.
Here, you can manually trigger a reload.
You can do this via by running "Hot Reload Scripts" from Visual Studio Code
Here, you can manually trigger a reload.
You can do this via by running "Hot Reload Scripts" from Visual Studio Code
Hot Reload is integrated with . Depending on your workflow, you don't need these buttons.