Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Native AI commanders do not receive the economy module.

Open Anarchid opened this issue 10 years ago • 1 comments

  • add a Circuit.
  • observe its commander having 0.3 income from being a mobile nano.

Anarchid avatar Feb 01 '16 14:02 Anarchid

Hint: ./LuaRules/Configs/start_setup.lua:52:DEFAULT_UNIT = UnitDefNames["dyntrainer_assault_base"].id

The faulty line

- return Spring.GetTeamRulesParam(teamID, "start_unit") or "dyntrainer_assault_base"
+ return UnitDefNames[Spring.GetTeamRulesParam(teamID, "start_unit") or "dyntrainer_assault_base"].id

Also GetStartUnit now must return id, so this is also wrong (though obsolete?)

rlcevg avatar Feb 01 '16 20:02 rlcevg