blitz3d-decomp
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
v2026.11.6-3c4ac6c5 installs+5 in 7 days9.7K StarsMITsynced 11 hours ago
Install
No NotHoly CLI yet? Install it first.
$ curl -fsSL https://notholy.com/install.sh | sh$ notholy skills install rehan-remade/blitz3d-decompWrites to ~/.notholy/skills after checking the signature and the SHA-256.
SignatureSigned, ed25519
Package7f290f16…c4d5617f
7f290f16fed6…4dd7c4d5617f8 files · 14.5 KBScanMedium5 findings
- injection.no_confirmationSKILL.md:46
- Executable script shipped with the skillscripts/roblox/b3d_skin.py
- Executable script shipped with the skillscripts/roblox/vm_anim_data.py
Sourcegithub.com/rehan-remade/universal-modder/tree/main/.agents/skills/blitz3d-decomp@3c4ac6c
On this page
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 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.
Files in this version
references/312.9 KB
- b3ddecomp-skip-failures.patch3.7 KB
- b3d-to-roblox.md4.4 KB
- blitz-runtime.md4.8 KB
scripts/418.6 KB
roblox/418.6 KB
- b3d_skin.py5.9 KB
- vm_anim_data.py5.1 KB
- vm_build.py6.6 KB
- vm_render.py1.0 KB
- SKILL.md5.2 KB
Permissions
| Permission | Declared | Found by the scan |
|---|---|---|
| Reads files | Yes | Yes |
| Writes files | Yes | Yes |
| Runs shell commands | Yes | Yes |
| Uses the network | No | No |
| Uses connectors | No | No |
| Drives a browser | No | No |
Scan findings
Reviewed on Nov 13, 2026
- MediumPrompt injection · injection.no_confirmationSKILL.md:46
- MediumFile · Executable script shipped with the skillscripts/roblox/b3d_skin.py
- MediumFile · Executable script shipped with the skillscripts/roblox/vm_anim_data.py
- MediumFile · Executable script shipped with the skillscripts/roblox/vm_build.py
- MediumFile · Executable script shipped with the skillscripts/roblox/vm_render.py
A clean scan lowers the risk but does not prove a package is safe. Read what you install.
| Version | Published | Commit | SHA-256 | Signature | Permission change |
|---|---|---|---|---|---|
| v2026.11.6-3c4ac6c | Nov 13, 2026 | 3c4ac6c | 7f290f16 | Signed | – |
More from rehan-remade
All from this publisherMore in Game security and anti-cheat
See the categoryAsk anything your scope allows.
Create an account, add credits and ask the first question in the chat or the terminal.
- 1/3
Create the account
Individual or company. You can switch to a company later without losing balance or keys.
IndividualCompany - 2/3
Add credits
By card. Pay per token, no subscription.
$5.00minimum deposit - 3/3
Ask
In the chat, or install the CLI and run notholy login in your terminal.
$ notholy login