View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
---|---|---|---|---|---|---|---|---|---|
0004037 | Spring engine | Lua | public | 2013-10-07 21:58 | 2013-10-08 02:09 | ||||
Reporter | TheFatController | ||||||||
Assigned To | Kloot | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Product Version | 94.1.1+git | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0004037: 94.1.1-1275 Error in CommandNotify/GiveOrderToUnit options table | ||||||||
Description | Looks like the "options" table given by CommandNotify is no longer accepted by GiveOrderToUnit in testing, confirmed in 94.1.1-1275 Error: [f=0000062] false [f=0000062] Error in CommandNotify(): [string "LuaUI\Widgets\debug.lua"]:20: GiveOrderToUnit(): expected <string key=coded, boolean value> in options-table Proof of concept widget below, works fine in current Spring, should cause the lua error with a move order in BA in latest Spring. Thanks | ||||||||
Steps To Reproduce | function widget:GetInfo() return { name = "Debug CommandNotify", desc = "", author = "TheFatController", date = "07 October, 2013", license = "MIT", layer = 0, enabled = true -- loaded by default? } end function widget:CommandNotify(id, params, options) Spring.Echo("CommandNotify Debug", id) local selUnits = Spring.GetSelectedUnits() for _,unitID in ipairs(selUnits) do Spring.GiveOrderToUnit(unitID, id, params, options) end return true end | ||||||||
Tags | No tags attached. | ||||||||
Checked infolog.txt for Errors | |||||||||
Attached Files |
|
![]() |
|||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-07 21:58 | TheFatController | New Issue | |
2013-10-08 01:40 | Kloot | Assigned To | => Kloot |
2013-10-08 01:40 | Kloot | Status | new => assigned |
2013-10-08 02:09 | Kloot | Changeset attached | => spring develop e5db2c7a |
2013-10-08 02:09 | Kloot | Status | assigned => resolved |
2013-10-08 02:09 | Kloot | Resolution | open => fixed |