Collisions - units stuck in factories and on wind farms

Collisions - units stuck in factories and on wind farms

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
MajBoredom
Posts: 17
Joined: 24 Nov 2013, 09:14

Collisions - units stuck in factories and on wind farms

Post by MajBoredom »

I know that collision detection was revisited in the last release (98.0) and I was wondering if there are any devs that realize that it is still a bit broken.

It was previously logged a 97 bug: https://springrts.com/mantis/view.php?id=4465 and now marked as resolved. However it happens regularly (yet infrequently) in 98 games where the first unit produced by a factory is stuck in the lab, rendering the factory useless. If the unit is reclaimed, the following unit will also stick.

Another much more common collision detection flaw is that constructors will get caught on wind farms if ordered to construct a long queue of them. To reproduce this, you need only join one of the BA "green fields" map games or download any of the 98.0 replays for the BA/green fields games. You'll see that typically about 5-10% of a player's constructors eventually get stuck if ordered to queue a long chain of wind farms. Note that the error rate is probably only about 0.5% or so, but in big games where thousands of these structures are produced, it is inevitable that many constructors are caught.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Collisions - units stuck in factories and on wind farms

Post by Silentwings »

I think the fix did not appear in 98.0 (contrary to what that ticket suggests), so testing latest dev is whats needed here.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Collisions - units stuck in factories and on wind farms

Post by Jools »

What OP writes is true and also happens in other games than BA. I think factory stickiness happens less in latest dev, but I'm not sure if it's completely fixed. Yes, I guess we need to test more the dev builds.

What also happens is that the pathfinder orders units to go into 'red' territory, thus making them stuck.

I would not say these things happen infrequently, they happen in every games more or less, quite dependent on terrain of course.
8611
XTA Developer
Posts: 242
Joined: 29 Dec 2014, 08:22

Re: Collisions - units stuck in factories and on wind farms

Post by 8611 »

In 98.0 there was https://springrts.com/mantis/view.php?id=4587 ("fixed")

In test version 99.0-RC3 it did not seem to happen anymore, but how thoroughly can one really test such things that happen randomly...
viewtopic.php?f=12&t=33035#p566247
What also happens is that the pathfinder orders units to go into 'red' territory, thus making them stuck.
That sounds more like allowGroundUnitGravity=true which generally is more fun to play with (units can jump etc) but sometimes they end up in bad places.
Post Reply

Return to “Help & Bugs”