View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0005889 | Spring engine | Lua | public | 2018-02-19 02:14 | 2018-02-19 11:26 |
| Reporter | Floris | Assigned To | Kloot | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | no change required | ||
| Product Version | 104.0 +git | ||||
| Summary | 0005889: unitdef techLevel returns nil | ||||
| Description | tried on 104.0.1-236-g23c7945 maintenance | ||||
| Additional Information | [f=-000001] Error: [UnitDefIndex] ERROR_TYPE for key "techLevel" in UnitDefs __index [f=-000001] Error: [LuaRules::RunCallInTraceback] error=2 (LUA_ERRRUN) callin=Initialize trace=[Internal Lua error: Call failure] error = 2, LuaRules/gadgets.lua, [string "LuaRules/Gadgets/unit_customicons.lua"]:346: attempt to compare number with nil | ||||
| Tags | No tags attached. | ||||
| Checked infolog.txt for Errors | |||||
|
|
Looks intentional https://github.com/spring/spring/commit/b646c7a579262a283603b3b0a9edb3cdfadfe209. |
|
|
techlevel was removed, use a customparam. (you can only have meaningful levels in a *tree*, but most games including BA actually define tech *graphs* with cycles in them) |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2018-02-19 02:14 | Floris | New Issue | |
| 2018-02-19 08:28 | Google_Frog | Note Added: 0018818 | |
| 2018-02-19 11:24 | Kloot | Assigned To | => Kloot |
| 2018-02-19 11:24 | Kloot | Status | new => resolved |
| 2018-02-19 11:24 | Kloot | Resolution | open => no change required |
| 2018-02-19 11:24 | Kloot | Note Added: 0018821 | |
| 2018-02-19 11:26 | Kloot | Note Edited: 0018821 |