JavaOO AI and Spring(LUA) comminucation

JavaOO AI and Spring(LUA) comminucation

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
touraj21
Posts: 7
Joined: 12 Feb 2012, 22:44

JavaOO AI and Spring(LUA) comminucation

Post by touraj21 »

Hi everyone,
I have created an AI using JavaOO-AIWrapper .
I was wondering if there is a way I can pass information between Game(LUA) and the AI.
For example I want to be able to access a variable in my AI(java) from a widget or gadget or the way around.
I already looked at this post:
http://springrts.com/phpbb/viewtopic.php?f=15&t=26298

But I am still confused.
I appreciate if someone can help me with this and possibly provides an example.

Thanks
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: JavaOO AI and Spring(LUA) comminucation

Post by AF »

Im unsure of the APIs involved in the Java interface, but there would need to be a gadget go between to pass the message from synced lua to unsynced lua widget, so modifying the game would be necessary. Creating a mutator game that has the main game as a dependency will help here.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: JavaOO AI and Spring(LUA) comminucation

Post by Kloot »

there would need to be a gadget go between to pass the message from synced lua to unsynced lua widget
Nope, CallLuaUI is a direct AI-->widget line.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: JavaOO AI and Spring(LUA) comminucation

Post by AF »

Kloot wrote:
there would need to be a gadget go between to pass the message from synced lua to unsynced lua widget
Nope, CallLuaUI is a direct AI-->widget line.
It appears there have been recent advances!
Post Reply

Return to “AI”