2025-07-20 16:31 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004037Spring engineLuapublic2013-10-08 02:09
ReporterTheFatController 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1.1+git 
Target VersionFixed in Version 
Summary0004037: 94.1.1-1275 Error in CommandNotify/GiveOrderToUnit options table
DescriptionLooks 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
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes
There are no notes attached to this issue.
+Notes

-Issue History
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
+Issue History