blitz3d-decomp
하는 일
이 스킬은 오래된 Blitz3D 게임을 역공학하여 로직을 이해하고 옮길 수 있게 합니다. 자신의 게임이나 공개 라이선스 게임을 다루는 개발자를 위한 것이며, 에셋 권리에 대한 경고를 포함합니다.
사용하는 경우
- ✓오래된 Blitz3D 게임이 내부적으로 어떻게 작동하는지 이해하고 싶을 때.
- ✓Blitz3D 게임의 로직을 다른 엔진에서 다시 만들 계획일 때.
- ✓사용할 권리가 있는 게임의 애니메이션 3D 모델을 변환하고 싶을 때.
스킬 링크
https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/blitz3d-decomp/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 Blitz3D 게임을 분해해서 소스를 읽고, 다른 엔진에서 로직을 다시 만들 수 있게 해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 디스어셈블리 도구로 게임 파일에서 읽을 수 있는 Blitz 소스를 복원하고, 그 소스를 옮기기 위한 명세로 사용합니다. 분해된 파일은 공유 프로젝트 밖에 보관하고, 재배포할 수 있는 것을 정리합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
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 withDOTNET_ROLL_FORWARD=Majorandbin/Release/net8.0onPATH: the decompiler startsBlitz3DDisasmby name. - If one function aborts the whole run, apply
references/b3ddecomp-skip-failures.patch (
git apply; made on commit 2b3148b): the decompiler then skips a function it can't finish, with astep5 failedline, 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 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; 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
자주 묻는 질문
어떤 게임이든 포팅을 공개해도 되나요?
아니요. 이 스킬은 자신의 게임이나 공개 라이선스 게임처럼 권리가 있는 것만 포팅하라고 안내합니다.
보호된 게임에도 쓸 수 있나요?
이 스킬은 약관이 분해를 금지하는 독점 파일은 건드리지 말라고 안내합니다.
분해된 파일은 어디에 보관하나요?
스킬에 따르면 프로젝트 폴더 밖에 보관하며 절대 공개하지 않습니다.
상세 정보
작성자의 원본 설명
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.
인기도
- GitHub 스타
- 9.3k
- 순위
- #12283
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
asset-pipeline
9.3k에이전트가 생성되었거나 직접 만든 그림을 게임 엔진이 불러오는 정확한 크기, 프레임 배치, 팔레트, 파일 형식으로 바꾸도록 돕습니다.
fal-assets
9.3k에이전트가 fal.ai로 게임 그림, 효과음, 음악, 3D 모델을 만들도록 돕습니다. 스프라이트와 텍스처부터 음성 대사와 영상까지 다룹니다.
game-automation
9.3k에이전트가 실제 게임을 실행하고, 스크린샷을 찍고, 메뉴를 클릭하고 입력하며, 로그를 읽어 자신이 만든 게임 모드를 테스트하도록 돕습니다.
game-recon
9.3k에이전트가 설치된 게임을 찾고, 엔진, 버전, 안티치트, 세이브, 커뮤니티 모딩 경로 등 모드를 만들 수 있는 방법을 파악하도록 돕습니다.