[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [bos-dev] accessors of BW



First of, I'm not a Boswars developer, so there is probably a much
easier way of doing this. But while you are waiting on the right
answer, this might help.

If you can do file io in lua[1], you could probably use a fifo [2]:
create a fist-in-first-out file on disk and use lua the AI to write
status information to that file and read commands from a fifo.
Then have your program do the same.

My 2 cents ;-)
  Bram

[1] http://lua-users.org/wiki/FileInputOutput
[2] man mkfifo

On Wed, Mar 26, 2008 at 9:37 PM, Charles Clercq
<charles.clercq@xxxxxxxxx> wrote:
> Hi guys,
>
> I'm new in the mail list, so I hope my question won't be out of subject.
>
> For a project at school we have to develop a "black box" software which take
> in "IN" some informations of the game (number of unit of the enemy/of us,
> building ...), and in OUT some actions to do in the game (create
> guys/buildings, path finding, ...). In fact this is an AI in live.
>  The first idea was to use the Lua functions, which seem to be really easy
> to use and enough complete. The problem is that we can't take the
> informations of the game, and give them to our application by Lua (like a
> socket).
>  So my question is "Is there another means to obtain the informations of the
> game, or the only one is the Lua ?"
>
> I hope I'm "understable"
>
> Best regards.
>
> Crahels.
>
> PS : Sorry for my English, I'm "just" French :p
>