# REDscript《赛博朋克 2077》脚本编译与反编译工具集

> REDscript 的编译器与反编译器工具集。REDscript 是一种静态类型、面向对象的语言，用于为 CD Projekt 在《赛博朋克 2077》中使用的 REDengine 引擎编写脚本。其 Rust crate 负责解析和分析源码、生成字节码并对泛型做单态化、将 .redscripts 字节码包反编译回 REDscript 源码、读写 REDengine 原生二进制格式，并提供可直接替代 CD Projekt scc 脚本编译器的实现，以及带源码映射的 C API。命令行提供 decompile、compile、lint 和 format 命令；语言服务器和调试器位于单独的 redscript-ide 仓库。

- 类型：工具
- 目标：游戏
- 类别：游戏分析工具
- 关联：基础工具
- 来源复核于：2026-10-19
- 收录于：2026-10-19
- 原始资源：<https://github.com/jac3km4/redscript>
- 一手来源：<https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/redscript/>
- 记录 JSON：<https://awesomerea.org/resources/redscript/record.json>
- 英文版：[English](https://awesomerea.org/resources/redscript/index.md)

## 使用条件与局限

- 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 许可。游戏本身的许可条款与此相互独立。

## 一手来源

1. <https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/README.md>
2. <https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/Cargo.toml>
3. <https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/LICENSE>
4. <https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/crates/cli/src/main.rs#L31-L120>
5. <https://github.com/jac3km4/redscript/blob/3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86/assets/macos/archive/launch_modded.sh>
6. <https://github.com/jac3km4/redscript/releases/tag/v0.5.31>
7. <https://github.com/jac3km4/redscript/releases/tag/v1.0.0-preview.22>
8. <https://github.com/jac3km4/redscript/compare/v1.0.0-preview.22...3ca666c8ec14cfc803ef3888aab6ebc7a1c2bb86>

## 同分区更多条目：游戏

- [Spice86 实模式 DOS 逆向与重写模拟器](https://awesomerea.org/zh/resources/spice86/index.md) · 工具
- [PS2 Web Recomp 浏览器游戏重编译工具](https://awesomerea.org/zh/resources/ps2-web-recomp/index.md) · 工具
- [xboxrecomp 初代 Xbox 静态重编译工具包](https://awesomerea.org/zh/resources/xboxrecomp/index.md) · 工具
- [PCSX-Redux PlayStation 1 调试模拟器](https://awesomerea.org/zh/resources/pcsx-redux/index.md) · 工具
- [Il2CppInspector Unity IL2CPP 静态分析工具](https://awesomerea.org/zh/resources/il2cppinspector/index.md) · 工具
- [MelonLoader Unity 游戏模组加载器](https://awesomerea.org/zh/resources/melonloader/index.md) · 工具

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
