Currently the AI itnerface is beign redesigned btu theres a problem.
None of us can redesign how to interface with lua because we do not understand how the existing interface works at all.
Poking about on the AI side is useless if there's nothing on the lua end to talk to to show we managed to say hello/goodbye
So it would be of immense help if there was a lua gadget that demonstrated receiving messages from AIs and sending them back. This should give a better idea of how to proceed on the AI end.
Bridging the divide
Moderator: Moderators
Re: Bridging the divide
A version of KAIK I've been working on for IW has had it implemented forNone of us
quite a while, AI2Lua is not the dark incomprehensible secret you keep
making it out to be (no demo gadget, the code is really simple enough
to figure out on your own).
Re: Bridging the divide
As I said no demo exists and my knowledge of lua is limited at best. I have written a gadget but most of what I learnt is either forgotten or obsolete.
Suffice to say your knowledge is clouding your perception of the lack of knowledge in the rest of us.
I wonder why no mention of the Imperial winter AI gadget has been made here? Is this not counter-productive?
Suffice to say your knowledge is clouding your perception of the lack of knowledge in the rest of us.
I wonder why no mention of the Imperial winter AI gadget has been made here? Is this not counter-productive?
Re: Bridging the divide
Because there's like three lines to it. It's only a callin which, in this case, returns a list of units which can capture the flag points so the AI can know what to park around flags until they are captured, without hardcoding that information.
Kloot did the real work, he just made me add the callin to the script. The callin is AICallIn, btw. As I understand it, the AI still wouldn't be able to handle other things like upgrades but that stuff isn't entirely necessary to play our game.
On a related note, I've been meaning to ask for a copy of KAIK with IW support, Kloot. Could you PM a link?
Kloot did the real work, he just made me add the callin to the script. The callin is AICallIn, btw. As I understand it, the AI still wouldn't be able to handle other things like upgrades but that stuff isn't entirely necessary to play our game.
On a related note, I've been meaning to ask for a copy of KAIK with IW support, Kloot. Could you PM a link?
Re: Bridging the divide
How would I use AICallin? A basic level of lua knowledge is being assumed here that I do not have. Please don't harang me for asking for help =/
If it were so simple then someone should have said something and shown how in a quickpost rather than let the other AI developers scratch their heads in confusion. Its more a case of AI developers with no experience in the lua end of things not having a clue where to start looking, that an AI developer figured it out and kept it from the rest is adding insult to injury, and despite that this solution is apparently a 3 liner is even more worrying.
If it were so simple then someone should have said something and shown how in a quickpost rather than let the other AI developers scratch their heads in confusion. Its more a case of AI developers with no experience in the lua end of things not having a clue where to start looking, that an AI developer figured it out and kept it from the rest is adding insult to injury, and despite that this solution is apparently a 3 liner is even more worrying.
Re: Bridging the divide
You put it in the mod someplace interesting and give it stuff that your AI needs. Then, in the AI, you receive the exact same stuff and do what you want.
This needs cooperation between mod devs and AI devs, obviously.
This needs cooperation between mod devs and AI devs, obviously.