Page 1 of 1

JavaOO AI and Spring(LUA) comminucation

Posted: 13 Feb 2012, 21:53
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

Re: JavaOO AI and Spring(LUA) comminucation

Posted: 14 Feb 2012, 16:38
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.

Re: JavaOO AI and Spring(LUA) comminucation

Posted: 14 Feb 2012, 18:32
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.

Re: JavaOO AI and Spring(LUA) comminucation

Posted: 14 Feb 2012, 23:08
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!