Testing Pathing in 82.6 bug fix (pre)release

Testing Pathing in 82.6 bug fix (pre)release

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Testing Pathing in 82.6 bug fix (pre)release

Post by Godde »

High maxVelocity and low turnRate seems to be the issues that cause problem 3 in the new spring engine.

I explain and analyze pathing in spring engine 82.6 compared to spring engine 82.5.1.

My terminology is limited and my analysis is mostly based on observation.

1. First I differentiate the pathing based on terrain and features/units.
Picture taken in 82.6
Image
Analysis: Only the center of the unit is consider to passable and impassable terrain no matter how big the FootPrint is(according to my testing). Land units are rarely so big that their turret ends up inside a mountain.
1a. Problem: Ships turrets ends up inside a cliff. Increasing MinWaterDeepth is hardly a good solution since it would make large ships much less useful and if the cliffs are steep it doesn't really make any difference.


1b. Problem: Ships get stuck on the shore.
Picture from 82.6
Image
Analysis: Propably because they were pushed by other units. Usually you can get them out by FPSing them. No ship have gotten stuck so bad that I can't get it free by FPSing it in 82.6 yet.


2. Problem in 82.5: Units with slow/low turnRate and high speed will go zigzag and sometimes even in circles.
Image
Analysis: The pathing is only made once when the move command is given. If the unit is already moving and heading another way than the new move command it will be going at max speed turning slowly towards the pathing "line". As it reaches the pathing "line" it then have to turn again to point at the next waypoint in the pathing line.
Attachments
Not going where it is supposed to go.png
(702.92 KiB) Downloaded 2 times
Ships stuck inside a mountain.png
(1.26 MiB) Downloaded 2 times
Terrain vs features and units pathing.png
(1.18 MiB) Downloaded 2 times
Last edited by Godde on 15 Oct 2010, 00:56, edited 4 times in total.
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Godde »

2a. Analysis of the solution in 82.6: The faster the unit goes, the further away from the unit the waypoints are selected:
82.5________________________________82.6
Image
Mantis bugtracker:http://springrts.com/mantis/view.php?id=2072


3. Problem in 82.6:
Image
Analysis: Units head for the next waypoints. As their speed builds up their waypoints get further and further away from them. As they get close to the first wall, their next waypoint suddenly changes to the one behind the wall and instead of driving to the edge of the wall they go straight into it. Their speed is preserved when they are going against the wall so they won't update their pathing until the next default scheduled one. When the next scheduled pathing is made their speed slows down but it builds up again before they get time to go around the egde of the wall.


3a. Same situation in 82.5:
Image
Attachments
Driving smoothly.png
(698.36 KiB) Downloaded 2 times
Driving into a wall.png
(862.33 KiB) Downloaded 2 times
WaypointsDiffers.png
(1.04 MiB) Downloaded 2 times
User avatar
bobthedinosaur
Blood & Steel Developer
Posts: 2702
Joined: 25 Aug 2004, 13:31

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by bobthedinosaur »

Yeah. But it's free...
User avatar
Johannes
Posts: 1265
Joined: 17 Sep 2010, 15:49

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Johannes »

These are all turninplace=0?

bobthedinosaur wrote:Yeah. But it's free...
It also used to be good...
nightcold
Posts: 179
Joined: 03 Dec 2009, 05:47

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by nightcold »

a bit off topic...

can i ask where the models are from???(s44???)is godde finally using his game insites 2 make a mod???
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Gota »

Im surprised to see s44 uses such imprecise hitshapes.
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Godde »

Johannes wrote:These are all turninplace=0?
All of thoose units are turninplace=0 but I have tested to change it to 1 or remove it entirely and they still don't do well. It is propably because these units in s44 have high maxVelocity and low turnRate.

This fix "Mantis bugtracker:http://springrts.com/mantis/view.php?id=2072" is propably the cause of problem 3.
User avatar
Johannes
Posts: 1265
Joined: 17 Sep 2010, 15:49

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Johannes »

Godde wrote:This fix "Mantis bugtracker:http://springrts.com/mantis/view.php?id=2072" is propably the cause of problem 3.
Just a note, that unlike the bug report said the snaking/twitching was problem not only for turninplace=0 units also happened to units with =1, it was just less severe for them.
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Argh »

For long thin objects, the footprint code could be changed to use a bitmap that was rotated along with the object, instead of a square, which would result in a fairly good solution for detection of blocking objects. The problem atm is that all footprints are static and never use the rotation of the object when determining collisions.

As for turning, yes, it's working very poorly atm.

The heatmap seems to also include the Unit's own former movements (which it should ignore) and then tries to path around itself, leading to various bad scenarios. Units that could use reverse movement are currently totally broken because of this.
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Godde »

Heatmapping is disabled for units in Spring 1944.
I have even removed turnInPlace=0 and maxReverseVelocity but it doesn't make alot of difference.
Only maxVelocity and turnRate seems to matter on subject 3.

It is propably this fix that broke it:
Mantis bugtracker:http://springrts.com/mantis/view.php?id=2072
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Forboding Angel »

Interestingly enough, everything in evo works normally except occasionally units will get stuck at the edges of hills.
Godde
Posts: 268
Joined: 29 Mar 2010, 17:54

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Godde »

Forboding Angel wrote:Interestingly enough, everything in evo works normally except occasionally units will get stuck at the edges of hills.
That would propably be the same thing as problem 3.
Did you expect any other problems that were mentioned in this thread?
User avatar
ginekolog
Posts: 837
Joined: 27 Feb 2006, 13:49

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by ginekolog »

I found pahing problem in this new ver, tanks stuck in mountains. Before it worked well.

To reproduce, try to move tanks(leverler, cons) from germany to ukraine in neuropev7 .

GL.
User avatar
Johannes
Posts: 1265
Joined: 17 Sep 2010, 15:49

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by Johannes »

Forboding Angel wrote:Interestingly enough, everything in evo works normally except occasionally units will get stuck at the edges of hills.
No, it's just the same as in other games - units get stuck, push each other stupidly, choose very inefficient routes. Even if other games are worse because they have higher speed/turnrate ratio doesn't make it normal, calling it that is just misleading. If you really think that's normal, or don't care, maybe you're just not very qualified to comment on pathfinding?

Another issue, but pretty minor compared to other stuff. If unit is pushed aside by another, while on repeat, and gets queued a new order it visibly retains the waypoint it got from the pushing but actually doesn't ever go to it. http://replays.adune.nl/?2818
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Testing Pathing in 82.6 bug fix (pre)release

Post by hoijui »

please see:
http://springrts.com/phpbb/viewtopic.ph ... 08#p454708
you may want to do further tests with this.
Post Reply

Return to “Help & Bugs”