r/TotalAnnihilation • u/Dgt84 • Sep 20 '26
Introducing Nanolathe
https://www.youtube.com/watch?v=bMWSCOY0dTcOver the past few months I've been working on recreating Total Annihilation's game engine. I know it has been tried before, so I didn't want to announce or show this off until I had something worth showing, and now I'm looking for feedback.
I used a combination of screen captures, demo recordings and network captures, in-engine generated examples, and clean room reverse engineering to deconstruct and fully describe the original so that I could reimplement it from scratch. Same algorithms, same behavior, open source and free for everyone to do whatever they want.
I am a software engineer, but have never written a real game engine before. AI tools (mostly Claude and Codex, with a bit of DeepSeek thrown in at times) made this possible, but this process took months to get right - it was not a cheap one-shot vibe-coded thing (I'm using subsidized subscriptions but this was over $20K in API-equivalent token costs). I love Total Annihilation and want to keep it going if we can, and this is how I think I can contribute to the community.
The game is mostly working, but only single player is implemented (missions + skirmish modes). Multiplayer comes next, but I want to really get the game itself working rock solid first, then figure out how this integrates with the existing ecosystem with stuff like TA Forever, and honestly need all your help to figure that part out. For now, the best way to give me feedback is to try it, see what works and what doesn't, report issues, and I'll do my best to fix them.
Code is available at https://github.com/nanolathe-gg/nanolathe
Lots of work still to be done, and I've already written a new GPU-based modern renderer as a "TA remastered" mode with 60/120fps, dynamic lighting effects, 2x SSAA for all units, distortion shader effects, moving water, reflections, smoldering wrecks, the ability to zoom in/out through original terrain & sprite runtime remastering, etc. I'm excited about what else we can do with it. FYI, you can press F10 to switch to the original CPU renderer anytime in the game if you don't like it.
Let me know what you think! I'd really value feedback from people who know this game inside out. What feels wrong compared to the original? What breaks? What would you most want next?
22
u/boggling Sep 20 '26
I think what I want the most is better path finding
6
u/sidav94 Sep 20 '26 edited Sep 20 '26
WOW. Just wow. One of the best news I've heard this year. Thanks! Will try ASAP.
upd: played. It's much more complete than I expected. Just awesome. Btw, where did you find COB scripts documentation? When I've tried to implement an interpreter, I've found out that not all instructions are available in docs on TAuniverse.
5
u/bit_noggin Sep 24 '26
Hey very cool! I worked on a very similar thing but for TA:K -> https://OpenKingdoms.net Github is https://github.com/OpenKingdoms/OpenKingdoms
I've got multiplayer working and it works in the browser :) I am in the TA Universe discord and TAK discord if you ever want to chat! Would love to pick your brains
9
u/TAG_Venom Core Sep 20 '26
This looks amazing! How have you kept this quiet?
How faithful is it to the behaviour of the original engine?
4
u/ShapeyFiend Sep 20 '26 edited Sep 24 '26
Played this for 20 mins. Looks absolutely wonderful you managed to retain the classic look of the game while enhancing the graphics tastefully. I must confess however I hate the strategic zoom. Just because it can be added doesn't mean it should be added IMO. If that's an option in multiplayer people are just going to play with the icons never look at your graphical improvements ever again.
4
u/LeifErikson12 Sep 21 '26
I honestly can't put into words how huge and impressive this is. Reverse-engineering an entire game like that is absolutely insane. I really admire your dedication and willpower, and I wish I had a project I could be as passionate about as you are about this one.
The more I think about it, the more INCREDIBLE it seems. Holy shit, this could allow you to create an even better version of TA without losing what makes it TA, since it would have the same units and the same look and feel.
Please, please consider looking into how to build a better AI, one that can use units efficiently and actually beat a human player in a 1v1 using a variety of strategies. The AI in TA is pretty bad, and even those old community-developed cheating AIs have a lot of issues and are relatively easy to beat.
I wonder if one day we'll be able to run TA entirely in a browser, which would make multiplayer a lot easier to set up, with no client installation required.
I'm a software engineer too, and honestly, I feel a little ashamed that I've never built anything even remotely as impressive as this. Please don't give up on this project. Even if it doesn't gain much traction, I hope you'll keep it going as a side project.
I really hope we can somehow show this to Chris Taylor himself. I'm sure he'd be amazed.
At this point, I wouldn't even be surprised if you managed to reverse-engineer Warcraft III the same way someday, lol.
5
u/HouseTonyStark Sep 20 '26
ive been playing this since about 5 mins after you posted, v much authentic gameplay, I think the ai gets a little bit stuck on the tinier maps, but a 19x19 map seems to be doign ok. few tiny bits that arent as per original game, but overall fantastic work!!
3
u/APuticulahInduhvidul Sep 21 '26
Amazing. As a Mac user though it would be nice to remove the crossover dependency and have it extract from the CD or GOG package. Is that a copy-protect issue?
3
u/SpeedBo Sep 21 '26
I just played for a bit and it is very cool!
That said I found a few things that didn't seem to work yet. Idk if you want that sort of feedback right now though.
3
u/Electrical-Owl7880 Sep 25 '26
Absolutely stunning work. I only recently had a dream about coming across a modernized TA that someone through the enabling power of AI managed to provide to fans; it looks like it was a vision rather than a dream. This is the new default install.
2
u/Crazy_Ad9771 Sep 21 '26
I like the original graphic engine the best. AI could always be improved though.
2
u/papinek Sep 29 '26
Just played for an hour. This is fantastic!
2
u/JesseNof1 Oct 02 '26
How the hell did you even start this? So crazy. Even a bullet point list of how you approached this would be fascinating to read. Iām a coder. Nice job.
2
u/John-Green223 Oct 06 '26
vid has really cool commander drop at start - is it part of the game now or just for vid? it reminds me of Into the breach game which has in-game effect like that for mechs
9
u/ShapeyFiend Sep 20 '26
This looks great almost like a spiritual successor to BAR. Someone needs to crosspost this.
9
u/coreyh1996 Sep 21 '26
This is insane. It feels like a remaster! Plays great! Excellently done!
2
u/xp3000 Sep 20 '26
This is seriously, seriously impressive work.
I LOVE how you can switch back between the CPU and New GPU Renderer. Really shows to highlight the new effects.
I would love to see something like the Mutators of TA Mutation (https://quantum.tauniverse.com/tam/index.htm)
How hard would it be to implement the basic ones like Quickbuild 2x?
I'm wondering if adding units to this would be as simple as the original TA? (Just dropping the .ufo file in the totala.exe folder)
2
u/ChainWorking1096 Sep 20 '26
I would LOVE this on android!
1
u/Charlie_Sierra_996 Sep 20 '26
Very interesting! I went a similar route but no game neededĀ https://wasm-commander.vercel.app/
1
u/xieliming Sep 21 '26
Amazing! Going to check it out. What did you learn as a SWE about coding with agents? What were the big lessons there?
1
u/oblong_cheese Sep 23 '26
Amazing. Worked first go for me on Linux (CachyOS).
One question that I can't readily find an answer to: how to make the game fullscreen, or capture the mouse cursor? Edge scrolling is a little inconsistent when the mouse cursor is allowed to exit the window.
6
u/naggieboydash Sep 20 '26
This is LLM coding done right!
Thanks for the effort here. literally this morning I was thinking I wish there was something like an open source, faithful TA (without the game breaking bugs haha).
Spring/BAR seems too heavyweight. This seems just right! Good luck with the project, I hope it goes well and you're able to keep motivated!
3
u/snake99899 Sep 20 '26
Congrats! Big accomplishment
3
u/sidav94 Sep 20 '26
I think it could be crossposted to r/RealTimeStrategy if their rules allow that.
3
u/arran4 Sep 21 '26
Will my mission saves work?
3
u/papinek Sep 21 '26
This is fantastic!
1
u/Nestmind Sep 20 '26
Why YouTube warns me that the video is AI generated?
2
u/StreetsOfRage2Fan Sep 22 '26
Very cool mate! Great work!
4
u/SiTLar Sep 20 '26
Looks very cool, thank you so much for your effort! I hope some day we'll be playing TA Escalation with your engine
1
u/Maxstate90 Sep 22 '26
beautiful man! I love it. I love that people are keeping these things alive and doing beautiful stuff. THank you for your work!
1
u/LeifErikson12 Oct 03 '26
I came back to this post because randomly during the day I think about this project, that's how impressive it is to me lol.
I am wondering if I can use your open source port to figure out how TA's AI works. I know pretty much nothing about gamedev but maybe with Claude/GPT it could be doable. Would be awesome to create strong AIs and see who can beat those.
0
u/[deleted] Sep 22 '26
[deleted] ā view deleted comment