Re: Pathing...
Posted: 26 Feb 2009, 21:15
It would probably double the pathfinder's work, but yes, an order-option that says "don't consider what path is the _best_ just what is the shortest possible path" would be nice.
You'd still want some minimal pathing to avoid utterly impassable barriers, which means doing the pathing all over again.Gota wrote:Wouldn't such a way of governing unit movement be simpler for the pathfinder?
Absolutely yes, doing a "go from X,Y to A,B" is pretty simple. That said, it wouldn't be "pathing" as we currently know it.wouldn't it make pathing faster?
It already prefers different terrain types and slopes. That's really not the issue.Without knowing how the pathfinder is implemented saying what we want is all just shots in the dark... so I'm gunna fire a few bullets to! I'd guess just giving units and/or movement classes preferability multipliers for the different terrain types/slope ranges to modify the path costs would be a viable and possibly effective (maybe requiring heavy testing on modder's part) solution.
Not really. We're talking about a forced-move here, where it'll just bork if the conditions aren't right. I suppose it wouldn't kill it to A* around truly impassible stuff, but that will lead to some badness (forever trying to get around large obstacles such as bodies of water, because a user gave it a command to reach a point on the opposite side, for example)... so it would probably be better to simply make it halt, if it hits something impassible, unless it's on Patrol perhaps.You'd still want some minimal pathing to avoid utterly impassable barriers, which means doing the pathing all over again.
Uuuuuuuhm, no.Argh wrote:I suppose it wouldn't kill it to A* around truly impassible stuff, but that will lead to some badness (forever trying to get around large obstacles such as bodies of water, because a user gave it a command to reach a point on the opposite side, for example)... so it would probably be better to simply make it halt, if it hits something impassible, unless it's on Patrol perhaps.