Skip to content

A standalone Command Line Interface debugging tool for The Witcher 3 written in Rust.

License

Notifications You must be signed in to change notification settings

SpontanCombust/rusty_witcher_debugger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

A standalone Command Line Interface debugging tool for The Witcher 3 written in Rust.

This tool is intended for Witcher 3 modders who make mainly script based mods. The main features of it include recompiling game scripts at run time, monitoring scripts log and remotely running exec functions in game, which can greatly help during mod development.

Parts of this code are based off of Wolvenkit modding tool by Traderain, rfuzzo and others https://github.com/WolvenKit/WolvenKit


Usage

In order to use this tool make sure the game is running and that it was launched with following arguments: -net -debugscripts.

Print help information.

rw3d_cli.exe help
rw3d_cli.exe help <SUBCOMMAND>

Recompile game scripts.

rw3d_cli.exe reload

Remotely call an exec function from the game. Remember to use quotation marks for the command argument.

rw3d_cli.exe exec "spawn('Nekker', 3)"

Remotely call an exec function from the game without waiting for tool messages or any game response.

rw3d_cli.exe --no-wait --no-listen exec "gotoProlog()"

Monitor game's scripts log and highlight lines that include specific keywords. You can set multiple key words to be highlighted with the same color.

rw3d_cli.exe scriptslog --yellow="[My mod]" --yellow="[Also my mod]"

Monitor game's scripts log and filter out non-highlighted lines.

rw3d_cli.exe scriptslog --red="[My mod]" -f

Print the list of mods installed.

rw3d_cli.exe modlist

Print the root path of game's scripts.

rw3d_cli.exe rootpath

Print the opcode for a script function.

rw3d_cli.exe opcode -f IsCiri -c CR4Player

Print the list of config variables.

rw3d_cli.exe varlist