← Back to context

Comment by bouk

5 hours ago

This is great! Been using GPT 6 Luna for decompiling my childhood favorite game (Age of Mythology) and this means I can throw Haiku into the mix as well. 17352/21965 functions matched so far...

How do you validate the functions are correct? I did something similar, letting it (mostly deepseek 4.1) translate from assembly to C but it commonly made mistakes, some really hard to discover and fix.

can you share more details? was this very involved or asking codex/claude/open code with a 1 shot like approach?

  • I'll write a blogpost when I actually have it working, but basically I gave the game .msi installer to claude opus 5.5 and said to read these blogs:

      - https://blog.chrislewis.au/using-coding-agents-to-decompile-nintendo-64-games/
      - https://blog.chrislewis.au/the-long-tail-of-llm-assisted-decompilation/
    

    And to setup a harness that will decompile the game and start doing a matching decompilation of every function. It set up a bunch of tooling and started a service in the background to do this actual decompilation campaign. I put some instructions into the main opus chat now and then to e.g. add automatic git pushing including a nice svg chart of progress and to switch model strategies here and there i.e. to do a first pass with a cheap model and then switch to opus/sol if the small model can't solve it.

    I could now one-shot a new game, yeah.

i love Age of Mythology, but why did you feel the need to decompile it? Its got a great world editor if you were trying to "mod" it.

  • I want to get the original (Age of Mythology Gold Edition) running natively on macOS and then port it to WASM to run it on the web so I can easily play it with friends