REDscript is an [[MIT License]] licensed [[Domain Specific Programming Language]] for modding [[Cyberpunk 2077]] written in [[Rust]]. - [Source](https://github.com/jac3km4/redscript?tab=readme-ov-file) - [Documentation](https://wiki.redmodding.org/redscript/) > REDscript is a statically-typed, object-oriented programming language designed for developing scripts for the REDengine, CD Projekt's game engine used in Cyberpunk 2077. # Notability Popular in the [[Cyberpunk 2077]] modding community. Not to be confused with [[RedMod Script]], which was used by [[CDProjekt Red]] to make the game, but is *not* very popular in the modding community. # Philosophy ## Documentation There is some decent documentation and various tutorials by the community. # Platform Support Like [[Cyberpunk 2077]] itself, it only runs natively on [[Windows]]. Works fine through [[WINE]] or [[Proton]] just fine though. # Features ## Editor Tooling > REDscript provides extensive editor tooling, including a language server and a debugger that integrate with many popular editors such as VSCode, neovim, IntelliJ IDEA, Zed, and Helix. # Tips # Resources ## Original Scripts Decompiled to REDscript Basically, [[REDscript]] ships with a tool to convert compiled [[RED Engine]] bytecode into [[REDscript]]. Someone used this tool on the entirety of the original game's logic and uploaded it. This is the same code as the [[RedMod Script#Corpus]], just in [[REDscript]] instead of [[RedMod Script]]. - https://codeberg.org/adamsmasher/cyberpunk > This is the decompiled scripts from the `final.redscripts` binary included in the game, as decompiled by the [redscript](https://github.com/jac3km4/redscript) compiler. The code is largely human-readable because the compiled script binary still has a ton of metadata, including class, function and variable names, and the file path of the script. > > It's all .swift files because the redscript language (as designed by jekky, not CDPR) uses a swift-like syntax, so they're marked as such for syntax highlighting purposes. It's not swift though, and it's not what CDPR used. > > CDPR internally use their own scripting language and compiler, which is what's available now with the redmod tools. If you install the redmod tools you can see the original scripts and how they differ slightly from the decompiled versions. The community doesn't use it much though because it doesn't support some fundamental modding features that redscript does, like method wrapping and not having to modify entire files to change a single function. \- `flibX0r` via Reddit[^1] # References