View Issue Details

IDProjectCategoryView StatusLast Update
0003155Spring engineGeneralpublic2012-07-07 21:56
Reporterabma Assigned ToKloot  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionno change required 
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.
Attached Files
20120707_184122_AI: Proving Grounds v01_88.0.1-497-g30a7a2b release.sdf (Attachment missing)
Checked infolog.txt for Errors

Relationships

has duplicate 0003158 resolvedabma seaplane platform doesn't build units 

Activities

abma

2012-07-07 14:21

administrator   ~0008895

that can happen to air-labs, too!

abma

2012-07-07 14:22

administrator   ~0008896

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

Kloot

2012-07-07 18:36

developer   ~0008903

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

abma

2012-07-07 18:42

administrator   ~0008904

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...

Kloot

2012-07-07 19:32

developer   ~0008908

Last edited: 2012-07-07 19:34

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...

abma

2012-07-07 19:33

administrator   ~0008909

Last edited: 2012-07-07 19:34

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

abma

2012-07-07 19:48

administrator   ~0008910

Last edited: 2012-07-07 19:53

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

Kloot

2012-07-07 20:09

developer   ~0008911

yes

abma

2012-07-07 21:38

administrator   ~0008912

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

-> the answer closes this bug report imo :)

Kloot

2012-07-07 21:48

developer   ~0008914

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.

abma

2012-07-07 21:54

administrator   ~0008917

Last edited: 2012-07-07 21:56

hm, isn't there a callin like:

FactoryWantsToStartbuild() ?
or

PreCreateUnit() ?


maybe "CanBuildAt" is a keyword ?

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
2012-07-07 19:34 abma Note Edited: 0008909
2012-07-07 19:34 abma Note Edited: 0008909
2012-07-07 19:48 abma Note Added: 0008910
2012-07-07 19:52 abma Note Edited: 0008910
2012-07-07 19:53 abma Note Edited: 0008910
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