View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002029 | Spring engine | General | public | 2010-08-14 13:34 | 2010-08-16 12:38 |
| Reporter | Licho | Assigned To | Kloot | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 0.82.3 | ||||
| Target Version | 0.82.4 | ||||
| Summary | 0002029: Units can not leave factories in CA | ||||
| Description | They 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. | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
units *cannot leave factories |
|
|
updated summary :-) |
|
|
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. |
|
|
http://packages.caspring.org/builds http://trac.caspring.org/browser/trunk/mods/ca/LuaRules/Gadgets/factory_anti_slacker.lua |
|
|
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) |
|
|
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. |
|
|
will it reset internal commands? |
|
|
You can manipulate a unit's queue such that only the first command is replaced. |
|
|
Closing due to possibility of workarounds (Lua creates problem, Lua solves problem). |
| 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 |