View Issue Details

IDProjectCategoryView StatusLast Update
0005000Spring engineGeneralpublic2016-02-06 23:04
ReporterCode_Man Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version100.0 
Summary0005000: Factories can only execute custom orders at end of production
DescriptionMy factory can only execute a custom order trough a button after unit has exited the factory, not when idle.
The command also is queued up on the command stack and will not be removed, it will be executed after every production, even if it has been invoked only once.
Steps To ReproduceUse attached game for a demonstration, try hitting the custom button and mixing it with unit production orders, notice the output in console.

It uses a modified gadget handler based on the one included in spring 100 to output debug messages when CommandFallback and AllowCommand are called.
Additional InformationI really need this working properly for my game, its crucial, i would much appreciate if it was fixed in the next version.
TagsNo tags attached.
Attached Files
broken_button.sdz (Attachment missing)
Checked infolog.txt for Errors

Activities

hokomoko

2015-12-02 00:17

developer   ~0015357

"Use attached game for a demonstration"

No game is attached

Code_Man

2015-12-02 12:21

reporter   ~0015360

Oh i didnt know you had to press the 'upload file' button seperately, i thought it would do that automatic when you submit the report.

Kloot

2016-02-06 23:03

developer   ~0015638

Last edited: 2016-02-06 23:04

"The command also is queued up on the command stack and will not be removed"

That's because you return false from CommandFallback which keeps it on the queue.

CommandFallback is only called when a unit's queue is *not* empty (for obvious reasons), so you probably need to rethink your approach.

Issue History

Date Modified Username Field Change
2015-11-30 17:40 Code_Man New Issue
2015-12-02 00:17 hokomoko Note Added: 0015357
2015-12-02 12:20 Code_Man File Added: broken_button.sdz
2015-12-02 12:21 Code_Man Note Added: 0015360
2016-02-06 23:03 Kloot Note Added: 0015638
2016-02-06 23:04 Kloot Note Edited: 0015638
2016-02-06 23:04 Kloot Status new => closed
2016-02-06 23:04 Kloot Assigned To => Kloot
2016-02-06 23:04 Kloot Resolution open => no change required