View Issue Details

IDProjectCategoryView StatusLast Update
0002350Spring engineLuapublic2011-03-02 15:52
Reporterabma Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Fixed in Version0.82.7+git 
Summary0002350: mex upgrade isn't displayed in commands in spring master
Descriptionthe button is simply missing...
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Google_Frog

2011-02-16 16:26

reporter   ~0006395

Is it a gadget? All gadget added commands are missing in ZK too.

Kloot

2011-02-19 16:20

developer   ~0006402

Last edited: 2011-02-19 16:33

The reason unit_mex_upgrader no longer adds a command button is that the way it detects builders (function determine()) relies on a LuaUnitDef field (isBuilder) that is nil in master builds.

    function isBuilder(unitDef)
        return (unitDef.isBuilder and unitDef.canAssist)
    end

As a temporary workaround, a gadget can check whether buildSpeed > 0 (which is what the engine also does to sanitize stray builder=1 values).

abma

2011-02-19 19:22

administrator   ~0006403

seems to work: https://github.com/abma/spring-test-game/commit/0e42336ae9b4fac823af0c83b1a99f83f3c677af

@kloot: why status feedback?

Kloot

2011-03-02 15:52

developer   ~0006459

re-added the isBuilder field (marked deprecated, unitDef.builder should be used instead)

Issue History

Date Modified Username Field Change
2011-02-15 07:37 abma New Issue
2011-02-16 16:26 Google_Frog Note Added: 0006395
2011-02-19 16:20 Kloot Note Added: 0006402
2011-02-19 16:20 Kloot Status new => feedback
2011-02-19 16:33 Kloot Note Edited: 0006402
2011-02-19 19:22 abma Note Added: 0006403
2011-03-02 15:52 Kloot Note Added: 0006459
2011-03-02 15:52 Kloot Status feedback => resolved
2011-03-02 15:52 Kloot Fixed in Version => 0.82.7+git
2011-03-02 15:52 Kloot Resolution open => fixed
2011-03-02 15:52 Kloot Assigned To => Kloot