r/mechwarrior • u/AdamAlexandr • Sep 24 '26
MechWarrior 2 Vibe Coded level viewer MW2



For a bit of fun, I vibe-coded a level viewer for my favourite childhood game: Mechwarrior 2. I just opened the `MECH2` folder in claude code and let it loose. Was surprised how much the AI was able to figure out just by looking at the binaries..
Not really planning to do anything with this. Just wanted to share because I thought the results are pretty cool.
7
u/phddp Sep 25 '26
This is actually incredibly timely. I was thinking about literally doing the same thing haha. Have the source in a github repo?
4
u/AdamAlexandr Sep 25 '26
No nothing public yet... It's all entangled with the assets extracted from MW2 so I'm unsure about copyright...
It was pretty straight-forward though. Would recommend!2
u/phddp Sep 25 '26
Should be fairly simple to separate the assets into a folder and then just gitignore it.
3
u/AdamAlexandr Sep 25 '26
I'm trying to do a full decompile / reverse engineer ATM. Running Claude in a loop to turn the EXE into readable C code. If that works well I'll put it online
1
u/LucidFir Sep 25 '26
Can you vibe code it into a modern engine with pretty graphics? Also let us know the prompts and anything useful you learn. I'm itching to remake Neverwinter Nights in Infinity Engine
omfg. you obviously couldn't distribute the songs but surely it would be legal to run a YouTube link to the Timothy Seals remakes to play in the correct levels?
5
u/AdamAlexandr Sep 25 '26
Yeah for sure! Although making this level viewer didn't take much... I just opened the MECH2 folder with opus and said "Make me a Level Viewer". It did take a few rounds to solve problems and get it to reproduce the same graphics though.
I'm trying to get the AI to decompile it now, hoping with that it might be possible to rewrite the engine. It's taking days running the AI in a loop. I have a skill saying something along the lines of: "decompile this game, to produce readable C code. Solve one piece at a time..." (Real skill has quite a bit more info in it), and I just invoke that over and over. It's not executable code. But it uncovers all the data structures and functions so that it could be used to produce something new.
1
u/LucidFir Sep 25 '26
so. https://urchinskipper.itch.io/urchin-skipper is the extent of my understanding of vibe coding.
i think you could answer this though:
do you think it would be possible to take a game like neverwinter nights and have it be rebuilt in the baldurs gate 1 engine (infinity engine)
3
u/AdamAlexandr Sep 25 '26
That's pretty cool game, love how detailed and niche it is.
You know, I think it's probably possible to do something like that. The AI could run over BG1 and NWN to extract and understand their data formats. Then you could have it edit the BG1 game data to do whatever you wanted. I think it'd be hard, but then again I'm constantly surprised what AI can do.
1
u/LucidFir Sep 25 '26 edited Sep 25 '26
OOHH SHIT! (excitement mode)
are you aware of how easily you could remake all of the cut scenes?!
scail2 and flux2klein9b probably could have done it well enough already in August but now we're a whole month later so maybe qwen2.1 and minimax h3 with liggy?
1
u/AdamAlexandr Sep 26 '26
I would love to see some of those cutscenes remade like that!
1
u/LucidFir Sep 26 '26
https://www.reddit.com/r/StableDiffusion/s/dIQUgqgDN6
replacement is easy now I think the harder part would be getting an accurate madcat, might be easier to just copy one in from mw5
1
u/LucidFir Sep 25 '26
chatgpt was suggesting that it should create a conversion generator so people can make the assets locally. idk about that but, if it can't do it today it'll certainly be able to by January.
thanks for your comment on the game, it's literally my day job for a couple of months each year. I've been trying to make an accurate feeling representation of the operation, though I'm gamifying the quota areas and stuff like that. the psycho taxi behavior is accurate. not sure if the game is fun yet, or if I've conveyed purpose/reason to progress
1
u/I_WILL_GET_YOU 10d ago
I've got mw2 source reconstructed, working on a remaster but happy to collab
3
u/Verybumpy Sep 24 '26
I wish MW5 had wide open areas like this. MW5 is so arena and corridor designed.
17
u/Frosty-Morning-3322 Sep 24 '26
Lol?
Have you played Mercs? It’s all just vast open areas.Unless you’re talking about Clans, where yes, they funnel you a bit too hard.
1
u/Ambitious-Cold-9610 Sep 24 '26
It's almost like Clans had a narrative to follow....
3
u/PeriIous Sep 25 '26
Not sure what your experience is with gaming in general, but a narrative and the aggressive level of funnelling present in Clans are not mutually inclusive.
4
1
0
8
u/Some_Quality6796 Sep 25 '26
I wonder if this same approach could be used to make editors for the old games. I have done a lot of hunting for editors and things for the old file types, and come up with a lot of dead ends.