Poll

Would you like it if units would do better pathfinding?

Yes, with both Robot command center and without
3 (42.9%)
Yes, but only robot command center
4 (57.1%)
No, leave as is
0 (0%)

Total Members Voted: 6

Author Topic: Patch: Better AI Pathfinding  (Read 2795 times)

Offline lordpalandus

  • Banned
  • Hero Member
  • *****
  • Posts: 825
Patch: Better AI Pathfinding
« on: March 27, 2012, 01:55:55 AM »
Ever had a frustrating moment as an unit hugs the side of a lava river or takes the long route to get from one end of a mountain range to the other? This patch is to help remove that.
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html

Offline CK9

  • Administrator
  • Hero Member
  • *****
  • Posts: 6226
    • http://www.outpost2.net/~ck9
Patch: Better AI Pathfinding
« Reply #1 on: March 27, 2012, 11:52:30 AM »
the RCC is supposed to give better pathfinding, but it is severely limited.  I've noticed that, after a certain number of units, the improvement fails and they start hugging cliffs and lava again.  Multiple rcc's doesn't fix it.
CK9 in outpost
Iamck in runescape (yes, I still play...sometimes...)
srentiln in minecraft (I like legos, and I like computer games...it was only a matter of time...) and youtube...
xdarkinsidex on deviantart

yup, I have too many screen names

Offline lordpalandus

  • Banned
  • Hero Member
  • *****
  • Posts: 825
Patch: Better AI Pathfinding
« Reply #2 on: March 27, 2012, 12:00:41 PM »
Ya I noticed that too. When there is cleared areas (bulldozed) they will naturally take that patch... but, without a cleared path, it tries to take the long route.
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html

Offline TH300

  • Hero Member
  • *****
  • Posts: 1404
    • http://op3game.net
Patch: Better AI Pathfinding
« Reply #3 on: March 27, 2012, 03:36:03 PM »
Improved pathfinding would be great. But it has been tried already, without success.

But could it be possible that the rcc malfunction is caused by the unit limit incrementation that Hooman added some years ago?

Offline CK9

  • Administrator
  • Hero Member
  • *****
  • Posts: 6226
    • http://www.outpost2.net/~ck9
Patch: Better AI Pathfinding
« Reply #4 on: March 27, 2012, 04:47:09 PM »
That could be a major factor in it
CK9 in outpost
Iamck in runescape (yes, I still play...sometimes...)
srentiln in minecraft (I like legos, and I like computer games...it was only a matter of time...) and youtube...
xdarkinsidex on deviantart

yup, I have too many screen names

Offline lordpalandus

  • Banned
  • Hero Member
  • *****
  • Posts: 825
Patch: Better AI Pathfinding
« Reply #5 on: March 27, 2012, 05:16:54 PM »
Tried in what sense?
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html

Offline TH300

  • Hero Member
  • *****
  • Posts: 1404
    • http://op3game.net
Patch: Better AI Pathfinding
« Reply #6 on: March 27, 2012, 05:34:44 PM »
One opu member had tried to rewrite the path finding engine (I think it was Arklon). A rewrite is likely required to improve it, because apparently the original algorithm is too limited.

Offline lordpalandus

  • Banned
  • Hero Member
  • *****
  • Posts: 825
Patch: Better AI Pathfinding
« Reply #7 on: March 27, 2012, 06:38:07 PM »
Even something as simple (proly not to code but) as telling the vehicles to keep at least 2 squares away from a lava flow would help tremendously.
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html

Offline TH300

  • Hero Member
  • *****
  • Posts: 1404
    • http://op3game.net
Patch: Better AI Pathfinding
« Reply #8 on: March 27, 2012, 06:43:08 PM »
And what if going through a location that is only 1 square away from a lava flow is required to get to a certain place? We'd have to add exceptions which would certainly require a rewrite (or at  least total understanding of the current path finding engine, which, if we had it, would allow a rewrite).

Offline lordpalandus

  • Banned
  • Hero Member
  • *****
  • Posts: 825
Patch: Better AI Pathfinding
« Reply #9 on: March 27, 2012, 11:16:48 PM »
Aka a pipe dream.
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html