2025-07-28 01:53 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003155Spring engineGeneralpublic2012-07-07 21:56
Reporterabma 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusclosedResolutionno change required 
Product Version 
Target VersionFixed in Version 
Summary0003155: units sometimes stay in factories
Descriptionnot sure how to reproduce, i guess, just give a unit a command while its leaving factory...
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
has duplicate 0003158resolvedabma seaplane platform doesn't build units 
+Relationships

-Notes

~0008895

abma (administrator)

that can happen to air-labs, too!

~0008896

abma (administrator)

to reproduce: build unit in lab, select unit, give move order, press s... unit stays in lab

~0008903

Kloot (developer)

if you give a STOP order, why wouldn't a new unit stay inside its factory? you are telling it to stop moving, so...

~0008904

abma (administrator)

the units in the factory should move away, because a unit is going to be built at the position...


like a mobile builder building a structure at the pos where a unit is...

~0008908

Kloot (developer)

Last edited: 2012-07-07 19:34

View 2 revisions

there was some code that periodically issued move orders to idle units in/near factories, but as usual players complained about that so it went. and if a user is stupid enough to block his lab, well...

~0008909

abma (administrator)

Last edited: 2012-07-07 19:34

View 3 revisions

meh... then it should be customizeable?! i set this as major, because ais are affected by this bug/feature, too...

~0008910

abma (administrator)

Last edited: 2012-07-07 19:53

View 3 revisions

hmm, can this be easily fixed by a lua gadget?

~0008911

Kloot (developer)

yes

~0008912

abma (administrator)

then, how can this be done in a clean way? (i just a point to start...)

-> the answer closes this bug report imo :)

~0008914

Kloot (developer)

simple: gadget maintains a list of all (ground) factories currently alive, and every so often checks for finished idle units inside their footprints. if any found, they are issued move commands along the factory's facing-direction.

~0008917

abma (administrator)

Last edited: 2012-07-07 21:56

View 2 revisions

hm, isn't there a callin like:

FactoryWantsToStartbuild() ?
or

PreCreateUnit() ?


maybe "CanBuildAt" is a keyword ?

+Notes

-Issue History
Date Modified Username Field Change
2012-07-07 13:58 abma New Issue
2012-07-07 14:21 abma Note Added: 0008895
2012-07-07 14:21 abma Severity minor => major
2012-07-07 14:22 abma Note Added: 0008896
2012-07-07 14:50 abma Relationship added has duplicate 0003158
2012-07-07 18:36 Kloot Note Added: 0008903
2012-07-07 18:42 abma Note Added: 0008904
2012-07-07 18:42 abma File Added: 20120707_184122_AI: Proving Grounds v01_88.0.1-497-g30a7a2b release.sdf
2012-07-07 19:32 Kloot Note Added: 0008908
2012-07-07 19:33 abma Note Added: 0008909
2012-07-07 19:34 Kloot Note Edited: 0008908 View Revisions
2012-07-07 19:34 abma Note Edited: 0008909 View Revisions
2012-07-07 19:34 abma Note Edited: 0008909 View Revisions
2012-07-07 19:48 abma Note Added: 0008910
2012-07-07 19:52 abma Note Edited: 0008910 View Revisions
2012-07-07 19:53 abma Note Edited: 0008910 View Revisions
2012-07-07 20:09 Kloot Note Added: 0008911
2012-07-07 21:38 abma Note Added: 0008912
2012-07-07 21:38 abma Status new => feedback
2012-07-07 21:48 Kloot Note Added: 0008914
2012-07-07 21:49 Kloot Status feedback => closed
2012-07-07 21:49 Kloot Assigned To => Kloot
2012-07-07 21:49 Kloot Resolution open => no change required
2012-07-07 21:54 abma Note Added: 0008917
2012-07-07 21:56 abma Note Edited: 0008917 View Revisions
+Issue History