{
  "added_at": "2026-10-19",
  "additional_evidence_urls": [
    "https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/Cargo.toml",
    "https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/LICENSE",
    "https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/crates/cli/src/main.rs#L31-L120",
    "https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/assets/macos/archive/launch_modded.sh",
    "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"
  ],
  "category": "game-analysis",
  "description_en": "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.",
  "description_zh": "REDscript 的编译器与反编译器工具集。REDscript 是一种静态类型、面向对象的语言，用于为 CD Projekt 在《赛博朋克 2077》中使用的 REDengine 引擎编写脚本。其 Rust crate 负责解析和分析源码、生成字节码并对泛型做单态化、将 .redscripts 字节码包反编译回 REDscript 源码、读写 REDengine 原生二进制格式，并提供可直接替代 CD Projekt scc 脚本编译器的实现，以及带源码映射的 C API。命令行提供 decompile、compile、lint 和 format 命令；语言服务器和调试器位于单独的 redscript-ide 仓库。",
  "entry_url": "https://awesomerea.org/resources/redscript/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/redscript/",
  "evidence_url": "https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/README.md",
  "group": "tools",
  "id": "redscript",
  "json_url": "https://awesomerea.org/resources/redscript/record.json",
  "kind": "tool",
  "markdown_url": "https://awesomerea.org/resources/redscript/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/redscript/index.md",
  "name": "REDscript",
  "name_zh": "REDscript《赛博朋克 2077》脚本编译与反编译工具集",
  "record_type": "resource",
  "relationship": "foundation",
  "requirements": [
    "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. The README states no supported game patch range.",
    "MIT. The game's license terms are separate."
  ],
  "requirements_zh": [
    "GitHub 上最新的稳定版为 v0.5.31（2025-08-28），提供 Windows 和 macOS 压缩包，以及适用于 Windows 和 macOS arm64 的独立命令行二进制。默认的 1.0.x 分支声明的版本为 1.0.0-preview.22，即最新的预发布版（2025-09-07）；所审阅的提交（2026-05-27）比该标签多 26 个提交，较早的版本线位于 0.5.x 和 0.6.x 分支。从源码构建需使用 Cargo 及支持 2024 版次的 Rust 工具链。",
    "安装面向使用者自己的《赛博朋克 2077》安装目录：在 Windows 上将压缩包解压到游戏目录，游戏启动时即会编译脚本，日志位于 r6/logs。在原生 macOS 上游戏不会在启动时编译脚本，因此 README 使用随附的 launch_modded.sh 启动游戏，下载的二进制文件还需先解除隔离。反编译器读取使用者游戏中的 .redscripts 包，编译也以该包为基础；所审阅的源码树中不含游戏脚本或脚本包。",
    "语言文档位于 REDmodding 社区 wiki，适用于 VS Code、neovim、IntelliJ IDEA、Zed 和 Helix 的编辑器支持位于单独的 redscript-ide 仓库。README 未说明支持的游戏补丁范围。",
    "采用 MIT 许可。游戏本身的许可条款与此相互独立。"
  ],
  "targets": [
    "game"
  ],
  "url": "https://github.com/jac3km4/redscript",
  "verification": "source-reviewed",
  "verified_at": "2026-10-19"
}
