News for hackers. Stuff that matters.
Re:0 A.D. Release 28: Boiorix by card_zero on Monday February 23, 2026 @03:14AM (#47119473)
Two thousand years ago they'd barely have maps, I don't see why units need pathfinding anyway. In the Age of Empires series it had bizarre effects, like you could steer an enemy army around by building a wall across a forest path, forcing them to take a different path to their target (your base), since they apparently saw the wall with their psychic powers.

Realistically soldiers should head in the right compass direction and hope for the best. But then you (the player) shouldn't have a proper map of your own, either.

Re:0 A.D. Release 28: Boiorix by zxexz on Monday February 23, 2026 @03:38AM (#47119660)
An RTS where you could only swap between FPV views of each of your units would be fun. Or at least different. Savage II but there is only 1 player per team, and no overhead view. And you can wrench control from a bot at any time.
Re:0 A.D. Release 28: Boiorix by evrimoztamur on Monday February 23, 2026 @05:15AM (#47120330)
Isn't this Mount and Blade?
Re:0 A.D. Release 28: Boiorix by schnitzelstoat on Monday February 23, 2026 @08:57AM (#47122393)
With the RTS mod you can get pretty close, yeah.
Re:0 A.D. Release 28: Boiorix by entropicdrifter on Monday February 23, 2026 @03:24PM (#47128261)
It's simultaneously an RTS and a third person action game, during combat in singleplayer campaigns. You command your troops in real-time, but you have a limited POV.

Realtime Strategy doesn't necessarily require that you have a top-down perspective or a specific set of controls, right? Pretty sure Brutal Legend is also technically considered an RTS

Re:0 A.D. Release 28: Boiorix by GreyZephyr on Monday February 23, 2026 @05:16AM (#47120336)
Battlezone and battlezone 2 [0] were great for this. Many hours lost, even if bz2 was a buggy mess on release. It was also one of the first faves to really have a missing community.

[0] https://en.wikipedia.org/wiki/Battlezone_(1998_video_game)

Re:0 A.D. Release 28: Boiorix by totetsu on Monday February 23, 2026 @05:23AM (#47120389)
It was the dream but any game that tried was always disappointing.
Re:0 A.D. Release 28: Boiorix by Tarq0n on Monday February 23, 2026 @05:52AM (#47120622)
Sacrifice is a brilliant RTS where the commander (a summoner mage of sorts) participates at the ground level.
Re:0 A.D. Release 28: Boiorix by nvlled on Monday February 23, 2026 @08:04AM (#47121787)
So that's name of that game, I've been trying to remember that game I played briefly as a kid, which in my hazy memory seemed quite fun. Thanks, will give it a try when it goes on sale.
Re:0 A.D. Release 28: Boiorix by tmtvl on Monday February 23, 2026 @10:10AM (#47123298)
And there's of course the spiritual sequel, Bruetal Legend. The main campaign can be played more as an action game, but if you get into multiplayer the RTS elements really come through.
Re:0 A.D. Release 28: Boiorix by cheschire on Monday February 23, 2026 @11:44AM (#47124797)
It's just written Brutal Legend if you can't type the ü. The dots you see in the name are not equivalent to an umlauted u, but instead it's just röck döts.

Since rock dots don't affect the pronunciation of the name, you wouldn't expand to add a letter (which would affect the pronunciation) if you can't type the decorative dots.

https://en.wikipedia.org/wiki/Metal_umlaut

Re:0 A.D. Release 28: Boiorix by Amezarak on Monday February 23, 2026 @05:38AM (#47120507)
Typical armies usually had, if not maps, reliable intelligence and guides. "we've heard this chokepoint is heavily defended" would indeed be a common reason for routing around.

It would be even fancier if there was some logic to take into account the position of your mobile units as well - for example, to avoid massed troops except in favorable conditions.

Re:0 A.D. Release 28: Boiorix by embedding-shape on Monday February 23, 2026 @06:05AM (#47120709)
> I don't see why units need pathfinding anyway.

I'm sorry but huh? It's a RTS game, aren't moving units around on the map kind of a fundamental part of the genre and this game?

> Realistically soldiers should head in the right compass direction and hope for the best

If you implement unit movements in a RTS like this, they'll get stuck half the time you ask them to move anywhere, unless you want micromanagement of unit movement to be 90% of the game, which I don't think anyone would find fun.

Re:0 A.D. Release 28: Boiorix by card_zero on Monday February 23, 2026 @06:36AM (#47120959)
Yes, but if you were that unit, would you get stuck in a corner, or would you persist in trying to find your destination? I suppose if you make it all the way to the target, you've accomplished pathfinding of some kind, by definition, sure. But an algorithm to avoid getting stuck doesn't have to be "pathfinding" as in an expensive algorithm to find a complete path right away.
Re:0 A.D. Release 28: Boiorix by embedding-shape on Monday February 23, 2026 @06:43AM (#47121026)
Well, depending on how you implement it, there might not be any way of getting unstuck, imagine a wall that is 3/4 circle for example, with a small opening, could it escape with that sort of naive algorithm? Players tend to be kind of sensitive to "stupid unit movements", and not having pathfinding is a great way of triggering that feeling in every play session.
Re:0 A.D. Release 28: Boiorix by card_zero on Monday February 23, 2026 @06:54AM (#47121141)
There certainly are naive ways, although whatever I suggest here will be poorly thought out and will lead to the next problem. But OK, I suggest a scent trail. Each unit paints where it's been and prefers not to go that way again. Then of course it could paint itself into a corner, so it needs a local-maximum-busting strategy too, which probably means marching off in an arbitrary direction to see if it gets unstuck.

This would be behaving like a caged animal, and in a game, that's good, and better than a smarter algorithm. You don't want them to be idiots, but you don't want them to be magic, either.

The old "follow the left-hand wall" maze-solving strategy is another naive way to get out of a trap. It's not fun gameplay, but it's naive and it exists, so better naive strategies do too.

Re:0 A.D. Release 28: Boiorix by hluska on Monday February 23, 2026 @08:33AM (#47122094)
That’s pathfinding. I thought you were opposed to pathfinding?
Re:0 A.D. Release 28: Boiorix by card_zero on Monday February 23, 2026 @10:32AM (#47123615)
Well, ish. My theory is that you can have units make individual local choices that add up to somewhat inept pathfinding, and it works out cheaper than maintaining live-updated whole-map pathfinding information.
Re:0 A.D. Release 28: Boiorix by tshaddox on Monday February 23, 2026 @10:24AM (#47123497)
Not only is that pathfinding, it sounds like an especially complex pathfinding algorithm that would be pretty challenging to implement efficiently.
Re:0 A.D. Release 28: Boiorix by card_zero on Monday February 23, 2026 @10:34AM (#47123661)
In what way?
Re:0 A.D. Release 28: Boiorix by tshaddox on Monday February 23, 2026 @11:38AM (#47124697)
Well, if each unit leaves its own scent trail, that’s a lot of per-unit state, and little to nothing that you can pre-compute for the entire map. You could have all units trails on a global “scent layer” that all units read from, but then you’re basically just building up a graph of common paths that could have been precomputed for the entire map.

It also doesn’t at all address inter-unit collisions, which is a big topic in RTS pathfinding.

Re:0 A.D. Release 28: Boiorix by jhbadger on Monday February 23, 2026 @07:15AM (#47121320)
When you get stuck, try random directions. That's what my robot vacuum does.
Re:0 A.D. Release 28: Boiorix by embedding-shape on Monday February 23, 2026 @08:18AM (#47121951)
Not sure if you've played any RTS lately, but I'm fairly confident people would drop the game relatively fast if they started seeing their units taking off in random directions because they cannot find their way around a wall. But we could also be playing very different games :)
Re:0 A.D. Release 28: Boiorix by HelloNurse on Monday February 23, 2026 @09:25AM (#47122748)
This is naive pathfinding that adopts the shortcut of perfect information. Good looking pathfinding simulates realistic terrain ignorance (no "psychic powers"), but it is likely to be expensive enough to require other compromises (e.g. updating paths less often).
Re:0 A.D. Release 28: Boiorix by card_zero on Monday February 23, 2026 @10:21AM (#47123452)
You reckon the perfect information version is cheaper than an algorithm that works only on the tiles near to the unit? But this quickly gets too complicated to discuss; there's the confusing matter of precalculation versus live updating.
Re:0 A.D. Release 28: Boiorix by sdwr on Monday February 23, 2026 @10:43AM (#47123788)
The perfect information version calculates the path once on click, the local version needs to recalculate every time the unit moves (and new tiles are "seen")
Re:0 A.D. Release 28: Boiorix by daymanstep on Monday February 23, 2026 @01:59PM (#47126997)
Recalculating the path every game tick is too expensive. What brood war did was to just have units wait for a second when they collide with something before recalculating the path. This resulted in horrendous "traffic jams".

It's also why Brood War players got into the habit of spam-clicking, because the game would recompute paths every time you issued a command, so spam-clicking resulted in smoother movement.

Re:0 A.D. Release 28: Boiorix by bawolff on Monday February 23, 2026 @02:47PM (#47127720)
At some point its a game and needs to be fun to play. If you are directing a group of five units that might work but if you have 200 units on the field i think it breaks down and is less fun.

> But then you (the player) shouldn't have a proper map of your own, either.

In aoe2 you don't have a full map. I imagine 0ad is similar being a clone

Re:0 A.D. Release 28: Boiorix by indubioprorubik on Monday February 23, 2026 @03:15PM (#47128127)
Pathfinding at scale is pretty much a solved problem. Spring. Recoil. SupCom. Starcraft. You can do that, for 10.000 units before you run into problems.

https://www.youtube.com/watch?v=2wxwIxz4PaY

Re:0 A.D. Release 28: Boiorix by Onavo on Monday February 23, 2026 @03:22PM (#47128225)
Why is it so bad on sandboxes like Minecraft? Modded Minecraft has struggled with pathfinding for years.
Re:0 A.D. Release 28: Boiorix by taskforcegemini on Tuesday February 24, 2026 @05:58PM (#47144614)
I suppose 3d instead of 2d with destructible paths adds to the complexity
Re:0 A.D. Release 28: Boiorix by rdtsc on Monday February 23, 2026 @04:04PM (#47128796)
> Realistically soldiers should head in the right compass direction and hope for the best. But then you (the player) shouldn't have a proper map of your own, either.

It would depend where and when. An army on their own territory might know the terrain. An army on enemy's territory would try to send scouts ahead as opposed to wondering randomly, too.

So at the army level it would almost work out like the they have "psychic" powers because they have scouts. At the individual units it would depend. But it would also be kind of annoying to play if the realism is increased too much. Like they wander into the woods and get stuck in a bog and die of hypothermia.