2025-06-14 04:49 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001626Spring engineGeneralpublic2009-10-03 10:46
Reporterzerver 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.80.2.0+git 
Target Version0.81.0.0Fixed in Version0.80.4.0+git 
Summary0001626: Can't place sea units when you're not actually blocking
DescriptionEven if the water is sufficiently deep:
* Non-floating constructors cannot build a floating unit right above them
* Floating constructors cannot build a non-floating unit right below them
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004072

Kloot (developer)

Technically "cannot" is the wrong word. In all circumstances the builder will at least try to move out of the way (although often unnecessarily, this happens even when the buildee would not block the builder) so construction is never held up indefinitely. This code rarely fails, but its sluggishness is an inconvenience.

Allowing the construction to start immediately when possible without waiting for the builder to move aside is much more trouble than it's worth though, since the structure doesn't exist yet at the time a build order is given. That means the pathfinder doesn't know about it yet either and cannot check in advance whether the builder would regard the buildee as an obstacle. It's a chicken-and-egg problem.

~0004092

zerver (reporter)

Okay, it seems the non-floating units will indeed attempt to move away, but a floating unit (con ship) will make no attempt whatsoever to move aside when building an underwater mex under it.

~0004093

Kloot (developer)

Confirmed on SSB, does not reproduce on C2C Remake (XTA).

~0004095

Kloot (developer)

Last edited: 2009-09-10 00:58

Found it, looks like the message telling nearby units to get out of the way of the UW build position is passed around with too small a radius (namely that of the builder's model, which can be smaller than the local water depth on some maps). I'll push the fix in a moment.

+Notes

-Issue History
Date Modified Username Field Change
2009-09-06 02:14 zerver New Issue
2009-09-06 23:42 Kloot Note Added: 0004072
2009-09-06 23:43 Kloot Status new => feedback
2009-09-09 21:59 zerver Note Added: 0004092
2009-09-09 22:59 Kloot Note Added: 0004093
2009-09-10 00:58 Kloot Note Added: 0004095
2009-09-10 00:58 Kloot Note Edited: 0004095
2009-09-10 01:39 Kloot Status feedback => resolved
2009-09-10 01:39 Kloot Fixed in Version => 0.80.4.0+git
2009-09-10 01:39 Kloot Resolution open => fixed
2009-09-10 01:39 Kloot Assigned To => Kloot
2009-10-03 10:46 imbaczek Target Version => 0.81.0.0
+Issue History