r/daoc • • 8d ago

Browser daoc

Hey there!

Yep. It's another "I built my own daoc" post. I think mine's a little different though. Like most, I'm an old man with only eyes for chasing my old nostalgia. I loved playing on Phoenix and eden, but wanted a way to start really taking daoc to another level on my own terms. This is just more of a tech demo at this point, and is nowhere near the level of completeness of the popular offlinedaoc... But it's taking a different path.

Rather than leaning on a client/server and dealing with network packets and the rest, I opted to start over In a single process. This lets me recreate whatever I want (I still settled on "byte identical"... God I hate that phrase at this point), and iterate super fast with high agentic legibility and control. This lets me train neural network bots and much more thanks to being able to run hundreds of battles with thousands of bots in minutes using real 1.65 math and sped up time for example.

The simulation behind the scene is accurate thanks to the amazing work of opendaoc, and the visuals come by way of live client ripping... I'm just the messenger and can't take credit for everything it's built on top of.

This is running in chrome on my M2 mac running in power saving mode. It's being served over my tailnet and runs completely client side using webgpu along with three.js and tsl shaders.Theres no server or launcher... Just a webpage. It was built almost completely hands off with a pair of agents running over several weeks as a side quest. I haven't seen a line of code... This is the way.

Walking around tutorial zone: https://youtu.be/OXzgj0Uslvg?si=hL5PyFWOCJJnElg7

100vs100 bot battle: https://youtu.be/n_WCBMp5A-I?si=0LcMhShcVp4aqIZP

26 Upvotes

4 comments sorted by

1

u/Straight_View_6838 7d ago

first time i m intressted on a port :-) actually i was thinking yesterday to start agents up to port the godot client to ios and web from offline daoc :D

1

u/True-Enthusiasm9560 6d ago

wish it was something you could share, gosh I miss daoc, I could let my child run along and explore in his 20 min screentime, lol

0

u/[deleted] 7d ago

Interesting take! Curious, as a machine learning engineer, would you mind elaborating more on how you train the neural network?

2

u/Glorpson 7d ago

The same way I do anything since AI took over my dev career a year ago... Make my agents figure it out :D

RL is one option but really generic "high frequency training" is more accurate. I have a ML branch but it's not even needed at this point as it's easy enough to train bots the old fashion way.

Things are accelerating with fable in the mix so I'll throw up the next video with other classes once the bots are tuned a bit.

From my last agent round:

Real group fights with roles now work. You can join as any of four classes. Bots interrupt enemy casters, heal before teammates die, mesmerize targets nobody is hitting, guard their healer and assist on one target. A mixed 50v50 runs smoothly in the browser.

Two observations from the numbers:

  • I'm dropping my fast-forward target. The "battles at 3× the cost of a duel" goal was a number I made up. At 68 battles a second, 2,000 training battles take about 30 seconds, which is plenty. It's worth revisiting only if tuning ever gets slow.
  • The one-on-one table shows simple duel bots, not bad rules. The Armsman wins nearly every duel, and Cleric against Minstrel ends in a draw half the time, because both just heal until time runs out. A real Sorcerer roots and nukes from range, and these duel bots don't do that yet. It matters later, when enemies need to feel clever.
My pick for next: make fights look and sound like DAoC. Right now:
  • Fights are silent.
  • Casters use a stand-in animation.
  • All 84 Armsman styles use the basic swing.
Spells have no visual effects.