View Issue Details

IDProjectCategoryView StatusLast Update
0002029Spring engineGeneralpublic2010-08-16 12:38
ReporterLicho Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version0.82.3 
Target Version0.82.4 
Summary0002029: Units can not leave factories in CA
DescriptionThey receive some new internal move order into factory.

And because CA teleports units out from factory (to make it easy to build quick without many factories) it makes them want to go back to factory.
There should be a way to delete these internal commands or it should reflect current position of unit.
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Licho

2010-08-14 13:34

reporter   ~0005252

units *cannot leave factories

tvo

2010-08-14 13:44

reporter   ~0005254

updated summary :-)

Kloot

2010-08-14 14:21

developer   ~0005256

Last edited: 2010-08-14 14:22

Sorry, but this is really CA's problem. The internal waypoint being given to new buildees always lies outside the factory's footprint under normal circumstances. Teleporting them during the build process is asking for trouble.

I'm willing to take a look if you 1) provide me with a CA-stable snapshot sdz and 2) point me to the Lua / COB script that handles teleporting.

Licho

2010-08-14 14:35

reporter   ~0005257

http://packages.caspring.org/builds

http://trac.caspring.org/browser/trunk/mods/ca/LuaRules/Gadgets/factory_anti_slacker.lua

jK

2010-08-14 17:00

developer   ~0005261

Last edited: 2010-08-14 17:01

I assume the pathfinder fails after a Spring.SetUnitPos.

So it still tries to reach the first waypoint in the path instead of recomputing it. (this could be workarounded in the mod, so it's not major)

Kloot

2010-08-14 17:05

developer   ~0005264

Last edited: 2010-08-14 18:56

Yep, that is exactly what happens. Main point is that the UnitFromFactory event gets broadcast after the internal move order has already been given, so probably just issuing a move command in factory_anti_slacker to the teleport position would be enough.

Licho

2010-08-14 19:14

reporter   ~0005273

will it reset internal commands?

Kloot

2010-08-16 12:36

developer   ~0005290

You can manipulate a unit's queue such that only the first command is replaced.

Kloot

2010-08-16 12:38

developer   ~0005291

Closing due to possibility of workarounds (Lua creates problem, Lua solves problem).

Issue History

Date Modified Username Field Change
2010-08-14 13:34 Licho New Issue
2010-08-14 13:34 Licho Note Added: 0005252
2010-08-14 13:44 tvo Summary Units can leave factories in CA => Units can not leave factories in CA
2010-08-14 13:44 tvo Note Added: 0005254
2010-08-14 13:48 tvo Product Version 0.82.0 => 0.82.3
2010-08-14 13:56 tvo Target Version => 0.83/0.84
2010-08-14 14:21 Kloot Note Added: 0005256
2010-08-14 14:22 Kloot Note Edited: 0005256
2010-08-14 14:35 Licho Note Added: 0005257
2010-08-14 14:56 Kloot Status new => assigned
2010-08-14 14:56 Kloot Assigned To => Kloot
2010-08-14 17:00 jK Note Added: 0005261
2010-08-14 17:01 jK Note Edited: 0005261
2010-08-14 17:05 Kloot Note Added: 0005264
2010-08-14 17:11 Kloot Note Edited: 0005264
2010-08-14 18:56 Kloot Note Edited: 0005264
2010-08-14 19:14 Licho Note Added: 0005273
2010-08-16 12:36 Kloot Note Added: 0005290
2010-08-16 12:37 Kloot Severity major => minor
2010-08-16 12:38 Kloot Note Added: 0005291
2010-08-16 12:38 Kloot Status assigned => closed
2010-08-16 12:38 Kloot Resolution open => no change required