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
JavaOO AI and Spring(LUA) comminucation
Moderators: hoijui, Moderators
Re: JavaOO AI and Spring(LUA) comminucation
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
Nope, CallLuaUI is a direct AI-->widget line.there would need to be a gadget go between to pass the message from synced lua to unsynced lua widget
Re: JavaOO AI and Spring(LUA) comminucation
It appears there have been recent advances!Kloot wrote:Nope, CallLuaUI is a direct AI-->widget line.there would need to be a gadget go between to pass the message from synced lua to unsynced lua widget