I wrote a blog post on the current trend of game decompilations using AI and where we’re going with this. It’s all very promising but oh boy are the implications scary.
I want to see AI turn boring white male game protagonists into awesome POC ladies!
What’s is the token cost to decompile one of these games? I want to fix a game breaking ‘bug’ in an old game are we talking $10s or $100s to make that happen?
Given it’s a game from 2004, it should be relatively easy to decompile, so if you’re the kind of person happy to tinker - it could be a great project to self-host and try to get done yourself?
That way the only cost is time, and a little bit of electricity.
I only just looked up some of the basic requirements, as it’s piqued my interest in trying to decompile something myself over the Christmas break!
Will read up on everything. I got a 9B model running, anything else was dog slow or didn’t run, even on a 16GB card (AMD though)
Its very unlikely you will have any success decompiling things with such a small model, unfortunately this is a case where you need a cloud hosted model.
No idea about AI costs, but there’s many humans who would do it for free, if you let them know what the issue is.
That one specifically - the game is ruined by parking, you run out of space for car parks long before you really fill up the mountain.
The car parks have coach spaces, but the seem to be broken and never appear. Either fix coaches or remove parking completely.
Will look into it when I have some time next week.
the game is ruined by parking, you run out of space for car parks long before you really fill up the mountain.
sounds like a case for public transport! :)
Maybe open source licenses are completely unenforceable now. Maybe critical software and hardware can be easily hacked into now, and we haven’t realized just how bad it is yet. Maybe everything will have more invasive DRM on it soon. Who knows. We’re about to find out in the next few months.
Oh my god, anything but DRM. It freaking sucks and only ruins experience to normal users
As some else discussed, apps where most infrastructure is on the server just for the sake to protect code might be popular. Which means even more reliance on the internet.
Could they do this to port vintage old mac games?
I’ve always kept up on recomps and decomps of games I like to put on my Steam Deck, but recently it’s been hard to do with so many coming out and of varying quality! Quiver Launcher has been really useful for keeping track, and it lists how much AI was used for the projects, too. I’m going to try out Super Mario Eclipse tonight.
bot comment
Oof I got a lot of conflicting thoughts on this. Going to need another coffee to mull this one over.
My reaction as well to seeing all of this.
Not scary at all for open source games! Or open source software. What, AI os going to decompile linux and 1000 AD?
Can it decompile windows and make it Linux
We have Linux at home.
Linux at home:
It’s called ReactOS :)
Compile this fucking [expletive] [slur]!
They already decompiled indiegames demo and used that to build a clone of it and ship it, faster than the indie dev can finish their game. It’s definitely an awful situation for small indie dev because they not only have to compete with bigger budget, their peers, and the f2p market, now they have to compete with cloners
The compiler was never meant to be a source code obfuscating tool anyway, the real sea change is Copyright being ignored. I’ve always wanted Copyright to go away, but it’s going away in a way different than anything I’d imagined and I don’t know what to think about that.
The obvious upside is we can sort of return to a time when every game was openly moddable. 25 years ago almost every hot game was a mod of another game.
I’ve always wanted Copyright to go away, but it’s going away in a way different than anything I’d imagined and I don’t know what to think about that.
It’s interesting seeing all the people who used to complain about copyright now realizing that copyright does in fact protect small artists, and it’s actually the reason why anyone was able to make a living as an artist at all.
On the one hand, it’s good that everyone is starting to get on the same page, but it sucks that things always have to get worse before they get better. This is a good opportunity to perform some introspection and think about what kind of mistakes led you to the wrong conclusion on this issue. Maybe it’ll be constructive and helpful for other issues.
It’s interesting seeing all the people who used to complain about copyright now realizing that copyright does in fact protect small artists, and it’s actually the reason why anyone was able to make a living as an artist at all.
nah, the artist income game is even more rigged than the capitalism people like complaining about. basically 99% of all art revenue goes to 1% of artists, while the bottom 50% of artists get basically 0% of the income. it’s incredibly unevenly distributed. the income inequality among artists is even more extreme than it is for wage workers.
basically 99% of all art revenue goes to 1% of artists, while the bottom 50% of artists get basically 0% of the income.
99% of what art revenue? There isn’t a global “art account” that gets divided among anyone who calls themselves an artist. Individuals earn what they earn.
The people pumping out mainstream movies are obviously going to earn more than those doing furry porn commissions on the fediverse.
if there is no global art budget, then why would anyone care about AI output taking away market chances from small artists?
This is a good opportunity to perform some introspection and think about what kind of mistakes led you to the wrong conclusion on this issue.
Me personally? Copyright is failing your advocated purposes of protecting artists work and their living, and living up to my belief that it was the wrong tool all along. Maybe you could use some of that.
What a shame.
The thing is, just getting rid of it is worse.
The tool is done, the current implementation has been warped to favor corporations. That doesn’t mean throwing out the tool is the answer
It’s not really copyright that you want to go away. It’s corporations exploiting the work of individuals. There are countries that have much saner, a lot more ethical laws around it.
The AI issue here is their theft, and since the theft is not addressed, it’s going to get ugly, and the big game producers will just lock games behind networks , so unless you’re online and likely paying a subscription, you ain’t gonna be pLaying thaT game.
Decompilation offers you the possibility of cutting out network-required features, if you dream a little bigger.
They’re not talking about individual features, they’re talking about locking the entire game behind a network (such as game streaming) so the game can’t be downloaded to be decompiled in the first place.
It’s been tried before, but the fundamental limitations on networking- not to mention the compute you have to spend in data centers to run it - makes it pretty unlikely to happen, especially as a means of preventing piracy.
Aren’t we assuming the data center buildout is to monopolize compute and turn our home computing into dumb screens?
That’s what I think the hyper scalers are planning, especially after the LLM bubble pops.
I haven’t seen any reason to believe that’s the case.
I appreciate that at least we are all reeling from the implications of it all.
I think that’s a very interesting point about the compiler, companies have really leaned on that as a way to obfuscate code, some folks seem to think compiled is as good as encrypted? Just another lock on the door, I guess, and a free one at that.
I think it does make a ton of sense that an llm would be so capable at decompiling code… it’s basically just translating? But having decompiled some stuff myself years ago, it’s still sort of amazing to see such a tedious process automated.
Bleh, too many conflicting feelings… yes, let’s hope we reclaim some bits of culture taken from us! And let’s cross our fingers that copyright is destroyed in a manner that actually benefits people…
Additionally the bigger thing is once AI has the feel for understanding how an engine works, it can pretty easily be applied to another game with the same engine. That’s why nobody here gives a shit about unreal or cryengine games, but rather is reacting to RAGE or Nintendo games. The proprietary studio owned engines are the ones people care about
I think that’s a very interesting point about the compiler, companies have really leaned on that as a way to obfuscate code, some folks seem to think compiled is as good as encrypted? Just another lock on the door, I guess, and a free one at that.
Well, (depending on the language) compilation is a 100% lossy conversion. So when a game gets ‘decompiled’ with an LLM like this, they’re not restoring the original code. It’s just generating new code with the same behavior, which is functionally the same. People doing this generally wasn’t considered infringement, but it’s clear that having a machine automate it is a big problem. Even if we ignore the fact that the output of an LLM is legally tainted/grey area, the scale at which it can happen now means we need new laws to deal with it.
This is basically doing to software what the internet did to piracy. That led to the DMCA, which as shitty and corrupt as it is, at least succeeds at some of its main goals.
Copyright is going away in a way that only benefits AI companies. WE still get burned at the stake for downloading shit from limewire even if we’re training our own AI models.
It’s not like we need to individually train our own AI models, a few groups could do it and release for everybody else. Like Anna’s Archive.
I’ve been thinking about this a lot too, because of seeing all these decompilations (with all the implications that comes with, as you point out some of them), but also because my own “learning LLM tooling” project was reverse engineering Civ IV, and rereleasing in a 64 bit engine with more accessible controls at the expense of 3d (sort of like Unciv).
I did not do a decompilation, especially because the core of the game has restrictive-licensed source released, but i was able to build clean specs from that source, and then with as clean of context of possible, stage the production and testing of features. I honestly don’t know how you’d prove a classic clean room implementation with LLMs (and definitely not in a one shot), and i can’t really prove my implementation is clean either.
I really hate the direction of all this stuff (so so much), and i hate that my disabled ass feels compelled to learn such tools so I am able to feed myself. But I did try to have some good come out of it (generic reverse engineered specs, basic accessibility framework, game automation framework, and i definitely learned a lot, plus it does work pretty ok)
I haven’t been able to figure out a way to release in a way that fits my ethical framework, without also resulting in people insulting me (which I don’t have a lot of room for in my life right now). I’ll happily take suggestions though!
I’d love for this to not be wasted effort, especially because of the accessibility enhancements for a beloved but proprietary game.
This is all very new to me, but I think I get what you’re saying. Could I ask you to check my understanding of this part?
but i was able to build clean specs from that source, and then with as clean of context of possible, stage the production and testing of features.
Does this mean that Civ 4 has its source available – and you fed it into the LLM and asked it for a human -readable design spec for what the source code does.
Then you took that spec sheet and asked a new LLM to generate source code that matches the spec sheet, with some modifications you desired (e.g. 64 bit and different controls).
I guess i have a follow up question which is, is it possible that the Civ IV source code was included in the training data of the LLM, and would there be any way to know?
Thanks for considering
Could I ask you to check my understanding of this part?
I think your understanding is basically correct, but i just want to clarify what i did with the specs:
I found the source code, which doesn’t include the rendering engine, is composed of Python and C++ and contains the game logic.
I then fed the LLM the source code I had available to turn them in to a set of specs for that specific codebase, for important APIs and the logic that connects then.
I then took those specs and made the LLM genericize them, and in particular creating a structured, human readable description of all game rules.
With those new generic specs, i was able to creat a development plan and architecture (with heavy aid of LLM), the new engine is written in Godot with json data store.
Project was bootstrapped like normal, start with the smallest core functionality, especially including debug infrastructure. Get it stable and then keep adding features and testing until everything seems okay.
I guess i have a follow up question which is, is it possible that the Civ IV source code was included in the training data of the LLM, and would there be any way to know?
Agreed, that’s actually part of why I said I don’t think i can prove it’s fully clean room!
But I did try my best to make it unlikely, and even if it did, I imagine it was closer to broken bits and pieces.
I don’t think that’s actually true. I think it’s more just AI propaganda. Most of the so-called “advances” that I’ve seen advertised seem to be far less than they seem when you dig deeper, often relying heavily on previous, human reverse-engineering efforts or simply being injection points built into wrappers for the actual binary game code. It’s just suddenly cool and polished looking because AI padded it out with a bunch of fragile and flaky filler code whose only purpose is to make it look finished and beautiful at first glance when it actually isn’t. The typical AI gameplan, in other words.
Every single month another hidden advertisement for AI companies surface. This is another one.
I fear this might be another push for live service shit or even game streaming. I absolutely like services like GeForceNow as an option to play games on less ideal hardware. But I wouldn’t want to be forced to that.
The information yearns to be free.
I guess we will see big studios push gaming as a service again? I honestly wouldn’t care too much since I haven’t been interested in Triple A games for a while now. (except for some exceptions ofc) As long as they keep my indie games unaffected!!
Scary implications aside, video game decomps are so cool! I honestly feel like we have enough games to last humanity. And having them all in their best form possible is kinda cool, soon we can run all time classics and built our dream console out of an raspi 5, with mods keeping it fresh.
















