CallLuaRules in Java AI
Posted: 23 Sep 2009, 15:29
In BA there is an option to set advanced construction units to upgrade mexes. Is there anyway for a Java AI to set this option?
Open Source Realtime Strategy Game Engine
https://springrts.com/phpbb/
wrong ...hoijui wrote:no, Lua support is non-existent for all Skirmish AIs, not just Java ones.
There have been some topics about it already.. though they were started too early (when the C interface was still to unstable/not released yet) someone should bring it up again.
I made a proposal some days ago, for a generic function pair for this purpose.. nobody cared.
Also iirc there was the possiblity to read so called `Rules` (GameRules, UnitRules, TeamRules) in AIs, but I can't find anything like that anymore in the current code, so it seems it got removed.case COMMAND_CALL_LUA_RULES:
{
SCallLuaRulesCommand* cmd = (SCallLuaRulesCommand*) commandData;
cmd->ret_outData = clb->CallLuaRules(cmd->data, cmd->inSize,cmd->outSize);
break;
}