blitz3d-decomp
Qué hace
Esta habilidad aplica ingeniería inversa a juegos Blitz3D antiguos para que su lógica pueda entenderse y adaptarse. Está pensada para desarrolladores que trabajan en sus propios juegos o en juegos con licencia abierta, y advierte sobre los derechos de los recursos.
Cuándo usarla
- ✓Cuando quieres entender cómo funciona por dentro un juego Blitz3D antiguo.
- ✓Cuando planeas reconstruir la lógica de un juego Blitz3D en otro motor.
- ✓Cuando quieres convertir modelos 3D animados de un juego cuyos derechos de uso tienes.
Link de la skill
https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/blitz3d-decomp/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Descompila este juego Blitz3D para que pueda leer su código fuente y reconstruir la lógica en otro motor.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente usa una herramienta de desensamblado para recuperar código Blitz legible a partir del archivo del juego, y después usa ese código como especificación para la adaptación. Mantiene los archivos descompilados fuera de los proyectos compartidos y anota qué se puede redistribuir.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Puedo publicar una adaptación de cualquier juego?
No. La habilidad indica que solo se debe adaptar lo que tienes derecho a usar, como tu propio juego o uno con licencia abierta.
¿Funciona con juegos protegidos?
La habilidad indica que no se toquen los archivos propietarios cuyas condiciones prohíban la descompilación.
¿Dónde se guardan los archivos descompilados?
Fuera de cualquier carpeta de proyecto, y nunca se publican, según la habilidad.
Detalles
Descripción original del autor
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.
Popularidad
- Estrellas en GitHub
- 9,3 mil
- Posición en el ranking
- #12283
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
asset-pipeline
9,3 milAyuda a tu agente a convertir arte generado o hecho a mano en el tamaño exacto, la disposición de fotogramas, la paleta y el formato de archivo que carga un motor de juego.
fal-assets
9,3 milAyuda a tu agente a generar arte de juego, efectos de sonido, música y modelos 3D con fal.ai, desde sprites y texturas hasta líneas de voz y vídeo.
game-automation
9,3 milAyuda a tu agente a abrir un juego real, hacer capturas de pantalla, hacer clic y escribir en los menús y leer los registros, para poder probar sus propios mods de juego.
game-recon
9,3 milAyuda a tu agente a encontrar un juego instalado y determinar cómo puede modificarse, incluidos su motor, su versión, los antitrampas, las partidas guardadas y la vía de modding de la comunidad.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.