Saltar al contenido
Skillpedia
Programación general9,3 mil · #12292

reverse-engineering

Qué hace

Esta skill explica cómo descompilar y estudiar el código, los archivos de datos y la memoria de un juego para que un mod pueda conectarse a ellos. Está pensada para modders que necesitan los detalles internos reales del juego y no suposiciones.

Cuándo usarla

  • ✓Cuando un mod necesita los nombres internos de funciones o la estructura de datos de un juego.
  • ✓Cuando quieres descompilar un juego de .NET, Unity o Java para leer su código.
  • ✓Cuando necesitas averiguar un formato de archivo no documentado de un juego.

Link de la skill

https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/reverse-engineering/SKILL.md

Có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

Usa esta skill para ayudarme: https://github.com/rehan-remade/universal-modder/blob/main/.agents/skills/reverse-engineering/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Descompila el código de este juego de Unity para encontrar la función que controla el salto del jugador.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente elige la herramienta adecuada para cada tipo de código, como ILSpy para .NET o Ghidra para programas nativos, estudia la salida y anota nombres, identificadores y formatos en un registro a medida que avanza.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Reverse engineering for mods

Rule zero: read the real thing, don't guess. Decompiled code, the actual data, a live memory view or a GPU capture is the spec. Write what you learn into MODLOG.md (names, IDs, offsets, formats) as you go.

Keep all decompiled output and extracted assets outside the mod repo (e.g. ~/<game>-decomp/) and never publish them. Single-player, offline or servers the user runs. Never attach debuggers or scanners to games with anti-cheat (see skills/mod-any-game/references/safety.md).

Pick the tool by what the code is (um scan tells you)

If REA (Reverse Engineer Anything, npx rea-agents setup) is connected as an MCP server, start there: one server covers native binaries (through an existing Ghidra, IDA or Hopper install), .NET assemblies and JavaScript/Electron apps, and its answers come with the evidence behind them. The tools below are the fallback, and the way to go deeper.

Managed .NET (XNA/FNA, Unity Mono, most indie C#)

  • dotnet tool install -g ilspycmd, then ilspycmd -p -o ~/<game>-decomp <Game>.exe (or Assembly-CSharp.dll). This gives a full C# project you can grep.
  • dnSpyEx: step through with a debugger, set breakpoints, edit methods.
  • MCP: ILSpy-MCP / dnspy-mcp let an agent query types and methods directly.

Unity IL2CPP

  • Cpp2IL (or Il2CppDumper) on GameAssembly.dll + global-metadata.dat gives types, fields, method signatures and addresses, plus dummy DLLs for ILSpy.
  • Method bodies are native: load GameAssembly.dll in Ghidra/IDA and apply the generated script to name functions.
  • Live: UnityExplorer, or il2cpp-frida-mcp.

Java (Minecraft, Slay the Spire...) Vineflower / CFR / Recaf. For Minecraft, use Loom genSources with Mojang mappings.

Blitz3D (.bb games; SCP: Containment Breach's source is public): the game is a module inside the exe that Ghidra can't see. Use the blitz3d-decomp skill (B3DDecomp, runtime behaviour for ports, animated .b3d models).

Native C/C++ (custom engines, Unreal game code, console recomps)

  • Ghidra (free) or IDA, driven through MCP so the agent can decompile, rename, retype and follow cross-references:
    • Ghidra: GhidraMCP (LaurieWired), pyghidra-mcp (headless, with a run-script tool; code-capable tools beat hundreds of tiny ones), ReVa.
    • IDA: the official Hex-Rays IDA MCP (IDA 9.4+ Pro/Home; "code mode" runs IDAPython), or ida-pro-mcp.
    • Binary Ninja and radare2 have MCP servers too.
  • Workflow:
    1. Strings, then cross-references, then the function.
    2. Name and type everything you understand. Renames accumulate into a readable program.
    3. Confirm dynamically (below) before building on a guess. Agents can confidently misidentify things.
  • Unreal: dump the reflection data first (UE4SS dumper or Dumper-7); it names most gameplay classes and properties for free.

Dynamic / live

  • Cheat Engine: value scans → "find out what writes to this address" → struct → owner. CheatEngine MCP servers exist.
  • x64dbg: breakpoints and tracing (x64dbg-mcp; bind it to 127.0.0.1, since some default to 0.0.0.0).
  • Frida (frida-mcp, frida-game-hacking-mcp): hook functions from JavaScript, log arguments.
  • ReClass.NET rebuilds structs from live memory.

Graphics

  • RenderDoc (renderdoc-mcp) captures a frame and shows every draw, the render targets, the constant buffers (view/projection matrices) and the depth buffer.
  • That's how you find where to inject geometry or effects (mashup-mods), and which texture holds a sprite atlas.

Data files and asset formats

Use the community tool first:

  • Unity: UABEA, AssetRipper
  • Unreal: FModel, UAssetGUI
    • Fully compressed UE3 .upk (UELib shows Exports=0): unpack a copy with Gildor's decompress (from UE Viewer), or, for LZO packages, with unpack_upk.py.
  • Bethesda: xEdit, BSArch
  • GameMaker: UndertaleModTool
  • Genie: genieutils
  • Source: VRF, Crowbar
  • FromSoft: WitchyBND, Smithbox
  • Godot: GDRE Tools

Before reversing a format yourself, search the community archives. Most game formats from the 2000s and 2010s were worked out there:

Preguntas frecuentes

¿Funciona con juegos que tienen anticheat?

No. La skill indica que no se deben conectar depuradores ni escáneres a juegos con anticheat.

¿Dónde se guardan los archivos extraídos?

Fuera del proyecto del mod, y nunca se publican.

¿Cómo se comprueba un formato de archivo?

La skill propone una prueba de ida y vuelta, en la que los datos se leen y se vuelven a escribir para demostrar que el formato está bien entendido.

Detalles

Descripción original del autor

Read how a game actually works so a mod can hook it. Decompile .NET/Mono (ILSpy), IL2CPP (Cpp2IL, Il2CppDumper), Java (Vineflower) and native code (Ghidra, IDA, via MCP servers); dump data and asset formats; reverse-engineer a binary file format and prove it with a round trip; read live memory (Cheat Engine, Frida, x64dbg); find render passes (RenderDoc). Use when a mod needs game internals, e.g. "how does the boss AI work", "find the damage function", "what format is this .sld/.pak/.dat", "where is the player position in memory".

repo: rehan-remade/universal-modder

Popularidad

Estrellas en GitHub
9,3 mil
Posición en el ranking
#12292
Licencia
MIT
Actualizada
2/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas