just in case you do not know already, there will eb a mayor re-fracture introduced in the (Java) AI Interface in the next mayor release (0.83.x). You can read about it here: viewtopic.php?f=15&t=24114
for current release: in AIInterface-src.jar, have a look at /com/springrts/ai/command/. You can issue these commands through:
/** * Whenever an AI wants to change the engine state in any way, * it has to call this method. * In other words, all commands from AIs to the engine (and other AIs) * go through this method. * * @param teamId the team number of the AI that sends the command * @param toId the team number of the AI that should receive * the command, or COMMAND_TO_ID_ENGINE if it is addressed * to the engine * @param commandId used on asynchronous commands, this allows the AI to * identify a possible result event, which would come * with the same id * @param commandTopic unique identifier of a command * (see COMMAND_* defines in AISCommands.h) * @param commandData a commandTopic specific struct, which contains * the data associated with the command * (see *Command structs) * @return 0: if command handling ok * != 0: something else otherwise */ public int handleCommand(int toId, int commandId, AICommand command)
Thanks for pointing out the pureint merge again. Since there has been a release since your announcement, I was under the mistaken impression it would already contain the change.
When is 0.83 scheduled to be released? In the meantime, is there a current binary release (for Windows) of spring I could use?
have a look at /com/springrts/ai/command/
Ah, I didn't think a request for information could be a command because I didn't see any way for it to return the requested information - I didn't occur to me it might be written into the command itself. Thanks for pointing me in the right direction!
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum