tomjn / Shard

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

BA broken #115

Closed abma closed 7 years ago

abma commented 7 years ago

for some reason i can't reopen #114 -> new report.

its still broken:

[f=-000001] Player UnnamedPlayer finished loading and is now ingame [f=-000001] <SkirmishAI: Shard dev (team 1)>: ...g/AI/Skirmish/Shard/dev/ai/BA/commanderbehaviour.lua:13: attempt to call method 'EchoDebug' (a nil value) stack traceback:

[C]: in function 'EchoDebug'
...g/AI/Skirmish/Shard/dev/ai/BA/commanderbehaviour.lua:13: in function 'Init'
...spring/AI/Skirmish/Shard/dev/ai/behaviourfactory.lua:23: in function 'AddBehaviours'
...ames/spring/AI/Skirmish/Shard/dev/ai/unithandler.lua:107: in function 'AIRepresentation'
...ames/spring/AI/Skirmish/Shard/dev/ai/unithandler.lua:47: in function 'UnitCreated'
...l/share/games/spring/AI/Skirmish/Shard/dev/ai/ai.lua:73: in function <...l/share/games/spring/AI/Skirmish/Shard/dev/ai/ai.lua:64>

[f=-000001] <SkirmishAI: Shard dev (team 1)>: .../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:68: attempt to call method 'CanBuild' (a nil value) stack traceback:

[C]: in function 'CanBuild'
.../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:68: in function 'AvailableFactories'
.../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:59: in function 'UpdateFactories'
.../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:34: in function 'UnitBuilt'
...l/share/games/spring/AI/Skirmish/Shard/dev/ai/ai.lua:86: in function <...l/share/games/spring/AI/Skirmish/Shard/dev/ai/ai.lua:77>

[f=0000241] <SkirmishAI: Shard dev (team 1)>: .../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:68: attempt to call method 'CanBuild' (a nil value) stack traceback:

[C]: in function 'CanBuild'
.../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:68: in function 'AvailableFactories'
.../Skirmish/Shard/dev/ai/BA/factorybuildershandler.lua:59: in function 'UpdateFactories'
...ring/AI/Skirmish/Shard/dev/ai/BA/overviewhandler.lua:73: in function 'EvaluateSituation'
...ring/AI/Skirmish/Shard/dev/ai/BA/overviewhandler.lua:33: in function 'Evaluate'
...ring/AI/Skirmish/Shard/dev/ai/BA/overviewhandler.lua:27: in function 'Update'
...l/share/games/spring/AI/Skirmish/Shard/dev/ai/ai.lua:46: in function <...l/share/games/spring/AI/Skirmish/Shard/dev/ai/ai.lua:38>
abma commented 7 years ago

its a shame that i'm the only tester it seems.

tomjn commented 7 years ago

This is a different issue, but I will look into it

tomjn commented 7 years ago

@abma this issue is in master of the BA/BAR repos, but the Shard repos submodule is attached to an earlier version of that repo, why is master and not befe4e9 being pulled in? I'm adjusting the behaviour routine to include the EchoDebug(inStr) method the BA/BAR configs use

tomjn commented 7 years ago

https://github.com/tomjn/Shard/commit/c7b3ea728202f281eed390bbd18de645f9fe9a87 should fix the EchoDebug issue, looking into the others

tomjn commented 7 years ago

As I don't have write access to that repo I've merged the Submodule PR until @eronoobos can verify he is about and able to make corrections. It seems Springs build script does not respect git submodules chosen commits and always updates submodules

abma commented 7 years ago

why is master and not befe4e9 being pulled in?

i made a mistake. with c7b3ea7 it seems to work.