К основному содержанию
скилл CX Codex

blitz3d-decomp — скилл для Claude Code: декомпиляция игр

Скилл blitz3d-decomp для Claude Code разбирает игры Blitz3D в исходный код Blitz и помогает перенести их логику или модели в другой движок. Запускается, когда нужны код игры или анимированные модели .b3d.

MIT 430 установок ★ 9 829 обновлён 2026-10-25

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add rehan-remade/universal-modder --skill blitz3d-decomp -a claude-code
Открыть на GitHub

Что делает blitz3d-decomp

Скилл использует B3DDecomp, чтобы разобрать исполняемый файл игры Blitz3D и получить читаемый код Blitz. Затем он прослеживает значения в коде и помогает перенести поведение по шагам, сохраняя порядок операций и временной шаг игры. Для моделей .b3d с костями и ключевыми кадрами в Roblox есть отдельные инструкции и скрипты.

Для сборки B3DDecomp нужен .NET 8 SDK; утилита запускает Blitz3DDisasm по имени, поэтому собранные файлы должны быть доступны через PATH. Для игр на коде SCP: Containment Breach нужен также fmod.decls. Защищённые от декомпиляции сборки и зашифрованные модули скилл не обходит: разбор на этом прекращается. Публиковать или загружать можно только код и материалы, на которые есть права; для SCP: Containment Breach действуют условия CC BY-SA 3.0.

Какие задачи решает

  • получить исходный код Blitz из исполняемого файла игры
  • проследить, где игровые параметры задаются и читаются
  • перенести поведение Blitz3D в другой движок
  • перенести анимацию модели .b3d в Roblox
  • сопоставить работу порта с числами из декомпиляции

Примеры запросов агенту

  • Разбери мою игру Blitz3D и получи читаемый исходный код.
  • Помоги перенести поведение этой игры Blitz3D в другой движок.
  • Перенеси анимированную модель .b3d в Roblox и сравни результат с исходной игрой.

Как установить blitz3d-decomp

1Через Skills CLI (Vercel)

npx skills add rehan-remade/universal-modder --skill blitz3d-decomp -a claude-code

2Вручную: положить файлы

~/.claude/skills/blitz3d-decomp/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/blitz3d-decomp/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о blitz3d-decomp

Как установить blitz3d-decomp в Claude Code?

Выполни npx skills add rehan-remade/universal-modder --skill blitz3d-decomp -a claude-code. Файл скилла появится по пути ~/.claude/skills/blitz3d-decomp/SKILL.md.

Что делает blitz3d-decomp?

Скилл применяет B3DDecomp для получения исходного кода Blitz из игры Blitz3D, а затем помогает перенести её поведение или модели в другой движок. Он также описывает проверку результата по числовым значениям из декомпиляции.

Что нужно для работы blitz3d-decomp?

Для сборки B3DDecomp нужен .NET 8 SDK. Также нужны B3DDecomp и запускаемый им Blitz3DDisasm; для игр на коде SCP: Containment Breach требуется fmod.decls.

Исходный текст

SKILL.md · MIT
---
name: blitz3d-decomp
description: Decompile a Blitz3D game to readable Blitz source with B3DDecomp and port what it does to another engine. Covers SCP - Containment Breach-era and other .bb games, B3DDecomp, Blitz3D runtime behaviour (fixed tick, Animate, CurveValue, Euler angles, quaternions, Rnd), animated .b3d models (viewmodels with bones and keyframes) into Roblox, and where to stop (builds protected against decompiling, games and assets the user has no rights to). Use when a Blitz3D game's code or animated models are needed.
---

# Blitz3D decompile and port

Blitz3D games ship as one exe: the runtime in `.text` and the compiled game in a resource module that
the runtime links at load. Ghidra on the exe shows only the runtime. The route that works:
**B3DDecomp disassembles the module and decompiles it to Blitz source.** Then the source is the spec for the
port, and the original game stays the oracle.

Keep every disassembly and decompile outside any repo (convention: `~/<game>-decomp/`), and never
publish them; the scripts here are fine to keep. Leave proprietary DLLs that forbid decompiling alone: their
export names in the exe are enough. Journal in the mod's `MODLOG.md`.

Read the source when there is one: SCP: Containment Breach (Regalis11/scpcb) and its Ultimate Edition Reborn
fork (Jabka666/scpcb-ue-my) are open source under CC BY-SA 3.0.

**What a port may use.** A port that re-expresses a game's logic, or converts its models, keyframes,
textures or sounds, redistributes that game once it is published or uploaded (to Roblox too). Port only what
the user has the rights to: their own game, or an openly licensed one on its terms (SCP: Containment Breach:
credit it and keep the port under CC BY-SA 3.0, and check each asset's credits, since fan games mix
licences). Anything else stays a private study: nothing from it is uploaded or published.

## 1. Tools

- B3DDecomp (juanjp600/B3DDecomp, C#, GPL-3): clone outside the repo, then
  `dotnet build Blitz3DDecomp.sln -c Release`. It needs a .NET 8 SDK; a user-local one installs without admin
  (`dotnet-install.ps1 -Channel 8.0 -InstallDir <dir>`). Run with `DOTNET_ROLL_FORWARD=Major` and
  `bin/Release/net8.0` on `PATH`: the decompiler starts `Blitz3DDisasm` by name.
- If one function aborts the whole run, apply
  [references/b3ddecomp-skip-failures.patch](references/b3ddecomp-skip-failures.patch) (`git apply`; made on
  commit 2b3148b): the decompiler then skips a function it can't finish, with a `step5 failed` line, instead
  of stopping.

Done when `Blitz3DDecomp.exe` and `Blitz3DDisasm.exe` build.

## 2. Disassemble and decompile

`Blitz3DDecomp.exe <copy of game.exe>` writes `<game>_disasm/` (Code/ per function, Type/, Strings.txt,
BuiltIn/, Libs/, BuiltInSymbols.txt), then decompiles it to `<game>_decomp/`. Games built from SCP:
Containment Breach's code need the game's `fmod.decls` as a second argument (B3DDecomp's README: the shipped
decls drop a parameter from `FSOUND_Stream_Open`).

When it still aborts, the exception names the construct. Never make a type setter silently ignore writes to
get past one: the type propagation then loops forever with no output.

**Protected builds: stop.** Some builds are protected against this step: a modified compiler and runtime
hash every function, type and builtin name (B3DDecomp stops with `Unrecognized function:
@_builtIn_f<garbled>`; SCP: Containment Breach 2's client is built this way), or the module is encrypted.
Those are protections the developer added against decompiling. Don't reverse them: tell the user and stop
(`skills/mod-any-game/references/safety.md`). Current B3DDecomp undoes one of them by itself, without saying
so: an XOR on a `.b3dmod` section. List the exe's sections first (`objdump -h`, or any PE viewer) and stop if
it has one.

Done when `<game>_decomp/` holds `Main.bb`, `Functions/`, `Types/` and `Decls/` and the run prints
at most a handful of `step5 failed` lines.

## 3. Find the system

- Strings first: an asset path or sound the system loads (`grep -l StringConstant_<n> Code/*`).
- Data-driven templates: the init function stores constants into a template per item. If the game has an
  addon/JSON loader, it names every field.

Done when every number the port will use is traced to the line that sets it and the line that reads it.

## 4. Port

Read [references/blitz-runtime.md](references/blitz-runtime.md) before writing port code: Blitz3D's clock,
Animate, CurveValue, Euler angles, Rnd and entity calls behave in ways a straight transcription gets wrong.
For animated `.b3d` models (viewmodels, rigs, keyframes) into Roblox, follow
[references/b3d-to-roblox.md](references/b3d-to-roblox.md); its scripts are in `scripts/roblox/`.

Port step for step: same order, same constants, same tick. Mark every deviation in a comment with the reason.
The rights rule above covers the code as much as the models.

## 5. Verify against the oracle

Measure the port against the decompiled numbers in the engine, not by eye: rates (shots per second at the
fixed tick), durations (frames / speed / ticks per second), aim (the sight's dot on the screen centre),
ammo on the server. Record each check and its result in the journal.

Done when every ported behaviour has a measured number next to the decompiled one.

© rehan-remade · MIT · rehan-remade/universal-modder

Похожие скиллы

Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →
decomp-code-rules lemiur Скилл decomp-code-rules для Claude Code задаёт стандарты написания C/C++ кода при декомпиляции. Он помогает отличать подлинные программные идиомы от «фейковых» совпадений. CX Codex +1 ★ 231звёзд репо native-platform-porting lemiur Скилл native-platform-porting для Claude Code помогает переносить исходный код игр и программ на современные платформы без эмуляции. Он включается при замене аппаратных интерфейсов и портировании старых проектов. CX Codex +1 ★ 231звёзд репо atb-game-porting ATBPort Team Скилл atb-game-porting для Claude Code переносит классические desktop-игры в Web/HTML5. Запускает разбор бинарников, работу с ассетами и проверку адаптации. CX Codex +1 ★ 369звёзд репо binary-analysis-patterns Dávid Balatoni Скилл binary-analysis-patterns помогает разбирать дизассемблированный код, восстанавливать логику программ и находить знакомые шаблоны в бинарных файлах. CX Codex +1 10 900установок roblox-luau gamedev-skills Скилл roblox-luau для Claude Code помогает писать Luau-код для Roblox и проверять его статическими инструментами. Подключается, когда не запускается LocalScript, клиент получает nil после входа или пора заменить wait(). CX Codex +1 12 300установок roblox-luau-patterns TabooHarmony Скилл roblox-luau-patterns для написания и рефакторинга модулей Roblox на Luau: жизненный цикл объектов, сигналы, планирование задач, pcall и очистка ресурсов. CX Codex +1 3 500установок

Из того же набора13

Весь набор →
mashup-mods Скилл mashup-mods для создания кросс-игровых модов: от Minecraft внутри Skyrim до скейтбординга в MW2. Охватывает passthrough-моды, портирование контента и встраивание одной игры в другую. CX Codex +1 2 000установок game-automation Скилл game-automation запускает игры, снимает экран через GPU-захват и управляет окном через виртуальные клавиши и мышь. Нужен ИИ-агенту для автоматической проверки модов в реальной игре. CX Codex +1 2 000установок showcase-video Скилл showcase-video записывает окно игры с её собственным звуком и собирает из нарезки короткий ролик о моде: титры, переходы, музыка, затемнение. CX Codex +1 1 900установок fal-assets Скилл fal-assets генерирует спрайты, бесшовные текстуры, PBR-карты, 3D-модели и звуки через API fal. Пригодится разработчикам модов и инди-игр, когда в проекте не хватает арта или аудио. CX Codex +1 1 900установок publish-mod Скилл publish-mod для Claude Code помогает подготовить игровой мод к выпуску и публикации. Он включается, когда нужно упаковать мод, загрузить его на площадку или написать пост о релизе. CX Codex +1 1 900установок share-field-notes Скилл share-field-notes ищет в общей базе заметки о том, как модифицировали конкретную игру, и помогает записать свой опыт в виде pull request. CX Codex +1 1 900установок game-research-websearch Скилл game-research-websearch для Claude Code ищет сведения об играх, движках и моддинге в сети. Он подключается, когда старые ссылки не работают или нужно подтвердить источниками заметку о моддинге. CX Codex +1 1 500установок port-a-mod Скилл port-a-mod помогает переносить существующий мод на новую версию игры или другой загрузчик, сохраняя поведение, значения и мелкие особенности. CX Codex +1 1 100установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой