-
Notifications
You must be signed in to change notification settings - Fork 0
Trucks get stuck around structures instead of proceeding to next destination #3050
Comments
|
JDW uploaded file |
|
JDW uploaded file |
|
cybersphinx changed title from |
|
cybersphinx commented I think this is one manifestation of a generic pathfinding problem. For example, load the savegame, the selected group has two waypoints, one to the right, one to the left. They go towards the right, and while the first unit to reach it then goes on to the next one, the remaining units shuffle around it for quite a while. In this case, they will eventually proceed to the second waypoint (except for the last unit, which seems quite content staying at the first), but I've seen cases where the group shuffles around for minutes never getting anywhere. Another example similar to JDW's: Select group 0 (the three trucks), make them return to HQ and shift-click somewhere else. They will shuffle around the border of the HQ's baseplate for minutes, not reaching the center, and basically ignore the next waypoint. |
|
cybersphinx uploaded file |
|
Cyp commented Actually, I was in that test game. The trucks were pathfinding (seen with Control+M) through the structure on the way to the next one. I suspect it's due to the trucks ignoring any structures on the source tile, and the trucks somehow having ended up slightly on top of the previous structure, at the time of doing pathfinding to the next structure. (P.S. I'm pretty sure this particular issue is unrelated to whether the backend is Qt or SDL. I was using the Qt backend, though.) |
|
cybersphinx changed title from |
|
cybersphinx commented I think the basic problem is the same as #2996, maybe needs a different solution though. |
|
Cyp commented Only ignore buildings at pathfinding destination, not source. Trucks would build a factory, then pathfind through it on the way to the next See 0119eda53f11d2aa5d3e3ccc82203c6657812039. Fixes #3050.
|
|
Cyp changed status from |
|
Cyp changed resolution from `` to |
|
NoQ changed status from |
|
NoQ changed resolution from |
|
NoQ commented I keep seeing this problem in the latest git; i think trucks mostly get stuck when they try to construct modules. |
|
NoQ commented I think i only see this in my javascript AI tests, not in real game. Might it be that the problem remains only when DORDER_BUILD orders are issued via javascript? |
|
Cyp changed status from |
|
Cyp changed resolution from `` to |
|
Cyp commented Fix trucks trying to drive into completed buildings instead of towards the building site. More generally, check that the returned pathfinding result is for the correct Droids were doing pathfinding, and occasionally they would pathfind to a building, Probably fixes other issues with droids mysteriously going the wrong way. Fixes #3050 again (different bug, but similar symptom).
|
|
Cyp commented Only ignore buildings at pathfinding destination, not source. Trucks would build a factory, then pathfind through it on the way to the next See 0119eda53f11d2aa5d3e3ccc82203c6657812039. Fixes #3050.
|
|
Cyp commented Fix trucks trying to drive into completed buildings instead of towards the building site. More generally, check that the returned pathfinding result is for the correct Droids were doing pathfinding, and occasionally they would pathfind to a building, Probably fixes other issues with droids mysteriously going the wrong way. Fixes #3050 again (different bug, but similar symptom).
|


keyword_Pathfindingresolution_fixedtype_bug| by JDWOrder a whole bunch of trucks to build five factories or five research facilities in a straight row. Some trucks get stuck at the completed structure while the rest of the structures proceed to the remaining orders in queue.
Version SDL
Issue migrated from trac:3050 at 2022-04-16 08:46:41 -0700
The text was updated successfully, but these errors were encountered: