View Issue Details

IDProjectCategoryView StatusLast Update
0005889Spring engineLuapublic2018-02-19 11:26
ReporterFloris Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
Product Version104.0 +git 
Summary0005889: unitdef techLevel returns nil
Descriptiontried 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
TagsNo tags attached.
Checked infolog.txt for Errors

Activities

Google_Frog

2018-02-19 08:28

reporter   ~0018818

Looks intentional https://github.com/spring/spring/commit/b646c7a579262a283603b3b0a9edb3cdfadfe209.

Kloot

2018-02-19 11:24

developer   ~0018821

Last edited: 2018-02-19 11:26

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)

Issue History

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