NOTE: You should probably use WolvenKit to edit TweakDB instead. |
---|
This tool isn't updated and was mostly just a little experiment to convert the output of tweakdump.exe to structured JSON. |
Cyberpunk 2077 TweakDB editor to be used in conjunction with TweakDump.
You will need Node.js. (Any recent version should work, I recommend 14.15
if you encounter issues). Make sure to enable "Add to PATH" in the installer.
- Install this project to a folder in your root Cyberpunk 2077 game folder.
- Put
TweakDump.exe
,tweakdb.str
, andtypes.csv
in that folder - Run
tweaks.bat
to generate CSV and JSON. This might spit out a bunch of warnings about missing strings, but you can generally ignore those. - In this folder, run
node flats_json.mjs
to generate adata
folder.- You can also optionally run
node flats_csv.mjs
to generate adata_csv
folder from the exported CSV data.
- You can also optionally run
- Browse the new data folder, you should see everything you'll want to see.
- Compiling back to
tweakdb.bin
coming soon!
- Expands the full structured TweakDB into a set of JSON files
- Handles pretty much all weird quirks in TweakDump JSON
- Unpacks every
_inline#
object - Adds type metadata to structs (key is
_type
), for integral types and types with a record ID from TweakDB Schema
- Ability to compile JSON back to TweakDB
- Incremental loading of TweakDB patches to support multiple mods
- Streamlined process to set up and use
- More integration with TweakDB Schema