Page 1 of 1

AI not loading

Posted: 16 Aug 2009, 05:41
by umarzuki
AI = CRAIG
OS = Debian Lenny AMD64
Hardware = Compaq Presario CQ40-115AU
Video card = Radeon HD 3200
Processor = AMD Turion X2 RM-70
Spring version = 0.80.0
Spring lobby version = 0.3

Bug can be produced by:
Using 1944 mod, BocageSkirmish map, play single player.

The AI doesn't progress, enemy unit only stand their ground.

Infolog.txt = http://pastebin.com/f6657a918

Re: AI not loading

Posted: 16 Aug 2009, 23:29
by Caydr
Is that AI designed to work with S44?

Re: AI not loading

Posted: 17 Aug 2009, 10:44
by umarzuki
Caydr wrote:Is that AI designed to work with S44?
it suppose to. It works fine on 0.79.1.2 and it's the only AI that works with S44

Re: AI not loading

Posted: 17 Aug 2009, 10:45
by hoijui
yes it is.
basically, a Lua AI is integrated in the mod archive, so the user should be able to savely assume the AI works with the mod.

from the infolog:

Code: Select all

LuaRules::RunCallIn: error = 2, RecvFromSynced, [string "LuaRules/Gadgets/craig/buildsite.lua"]:269: attempt to index local 'unitDef' (a nil value)
i guess this has to do with one of Kloots recent changes, thta the AI checks UnitDefs more strictly, and if they have some invalid stuff set/referenced, then they are set to NULL. So i guess this is the case for S44Lyuban_v106.sdz. They may have fixed this in their dev releases already, but it can not hurt to tell them.
XTA has a similar problem with one of its UnitDefs.

Re: AI not loading

Posted: 17 Aug 2009, 10:50
by Tobi
I think hoijui is right yeah; I think I've seen this too one time when testing with development version of Spring: 1944 in development version of Spring.

I'll doublecheck if it works fine with development version of S44 tonight.

Thanks for the report.

Re: AI not loading

Posted: 18 Aug 2009, 01:57
by Neddie
Caydr wrote:Is that AI designed to work with S44?
Built for S44 initially. Well, that and Tobi's neverending push for excellence.