WS: Script Studio basics
Script Studio is a tool that can be used to edit, create and debug your WitcherScript functions.
Below you can find some basic tips on how to use Script Studio in REDkit, the go-to tool for editing everything to do with scripts for The Witcher 3: The Wild Hunt.
Open Script Studio
The latest version of ScriptStudio is included in REDkit and can start it from the toolbar’s Tools section. Script Studio will keep everything synced for you once you start a project.
This is how the project setup screen looks:
Checking out files
While editing files, you will notice that they are marked as Workspace files when they are checked out:
If you are editing files which exist in the game already, they will need to be checked out - so that REDkit then knows which files to package when publishing your mods!
Edit while the game is running
Script Studio allows you to place breakpoints in your code and hot reloads your code - which means you can change the code while the game is running in the Editor.
Script Studio connects to the game automatically.
Debugging scripts
Script Studio also hosts a useful script debugger.
The editor should automatically attach to Script Studio so you can just add breakpoints inside your code and step through your code. It also supports the recently added function overrides.
Table of contents:
Local Variables when editing:
Overrides debugging:
Callstack when debugging:
______________________________________
The Witcher 3: Wild Hunt Complete Edition © 2024 CD PROJEKT S.A. Published by CD PROJEKT S.A. Developed by CD PROJEKT RED. CD PROJEKT®, The Witcher®, REDengine® are registered trademarks of CD PROJEKT Capital Group. All rights reserved. The Witcher game is set in the universe created by Andrzej Sapkowski in his series of books. All rights reserved.