tomjn / Shard

A reprogrammable AI framework for the Spring Engine
https://shard.tomjn.com
17 stars 13 forks source link

0005111: Shard dev AI - error #61

Closed jamerlan closed 8 years ago

jamerlan commented 8 years ago

[f=-000001] <SkirmishAI: Shard dev (team 1)>: ...c/AI/Skirmish/Shard/dev/ai/BA/taskqueuebehaviour.lua:17: attempt to perform arithmetic on field 'income' (a nil value) stack traceback:

[C]: ?
...c/AI/Skirmish/Shard/dev/ai/BA/taskqueuebehaviour.lua:17: in function 'GetEcon'
...c/AI/Skirmish/Shard/dev/ai/BA/taskqueuebehaviour.lua:212: in function 'Init'
...static/AI/Skirmish/Shard/dev/ai/behaviourfactory.lua:22: in function 'AddBehaviours'
...ux64-static/AI/Skirmish/Shard/dev/ai/unithandler.lua:38: in function 'UnitCreated'
...table-linux64-static/AI/Skirmish/Shard/dev/ai/ai.lua:60: in function <...table-linux64-static/AI/Skirmish/Shard/dev/ai/ai.lua:51>

please take a look here for more details: https://springrts.com/mantis/view.php?id=5111

abma commented 8 years ago

https://github.com/Tarendai/Shard/commit/c6440d14f63c1b5fbd270e457ec7bf9d8eb3be1e