Tool
REDscript
Compiler and decompiler toolkit for REDscript, a statically typed, object-oriented language for writing scripts for REDengine, CD Projekt's engine used in Cyberpunk 2077. Its Rust crates parse and analyze source, generate bytecode with monomorphization of generics, decompile .redscripts bytecode bundles back into REDscript source, read and write REDengine's native binary format, and provide a drop-in replacement for CD Projekt's scc script compiler plus a C API with source mapping. The CLI exposes decompile, compile, lint and format commands; the language server and debugger live in a separate redscript-ide repository.
Requirements and limitations
- GitHub's latest stable release is v0.5.31 (2025-08-28), with Windows and macOS archives and standalone CLI binaries for Windows and macOS arm64. The default 1.0.x branch declares 1.0.0-preview.22, the newest prerelease (2025-09-07); the reviewed commit (2026-05-27) is 26 commits after that tag, and older lines live on the 0.5.x and 0.6.x branches. Source builds use Cargo with a Rust toolchain that supports the 2024 edition.
- Installation targets the user's own Cyberpunk 2077 installation: the Windows archive is extracted into the game directory so scripts compile at game startup, with logs under r6/logs. On native macOS the game does not compile scripts at startup, so the README uses a bundled launch_modded.sh, and downloaded binaries must first be removed from quarantine. The decompiler reads a .redscripts bundle from the user's game, compilation uses one as its base, and the reviewed tree contains no game scripts or bundles.
- Language documentation is on the REDmodding community wiki, and editor support for VS Code, neovim, IntelliJ IDEA, Zed and Helix is in the separate redscript-ide repository; neither was reviewed. The README states no supported game patch range, and compatibility with a particular game version is not implied.
- MIT. This entry covers single-player script modding and analysis of the user's own game installation; the game's license terms are separate. No scripts were compiled or decompiled, and the reviewed sources establish no REA connection.
About this entry
- Type
- Tool
- Category
- Game analysis tools
- Relationship
- Foundation tool
- Targets
- Game
Sources reviewed
The description was reviewed against primary sources. This does not establish runtime testing, security auditing or verified compatibility.
Primary sources
- README.md GitHub · jac3km4/redscript · Revision 3ca666c
- Cargo.toml GitHub · jac3km4/redscript · Revision 3ca666c
- LICENSE GitHub · jac3km4/redscript · Revision 3ca666c
- crates/cli/src/main.rs#L31-L120 GitHub · jac3km4/redscript · Revision 3ca666c
- assets/macos/archive/launch_modded.sh GitHub · jac3km4/redscript · Revision 3ca666c
- https://github.com/jac3km4/redscript/releases/tag/v0.5.31
- https://github.com/jac3km4/redscript/releases/tag/v1.0.0-preview.22
- https://github.com/jac3km4/redscript/compare/v1.0.0-preview.22...3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86