[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [bos-dev] accessors of BW
- To: bos-dev@xxxxxxxx
- Subject: Re: [bos-dev] accessors of BW
- From: "Bram Neijt" <bneijt@xxxxxxxxx>
- Date: Wed, 26 Mar 2008 21:59:46 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: bos-dev-outgoing@xxxxxxxx
- Delivered-to: bos-dev@xxxxxxxx
- Delivery-date: Wed, 26 Mar 2008 16:59:54 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=EQ+TeVjsjEvfwLeFXIisNGqGHQuBDXr3r2BKsLVwm2c=; b=EuDfJbs8XAXvupuzyQsZiy5dQbw6dGXqQnotBxNoa+/bqKCcU9+Hi/SPFXyCjL95X46nRTQIp2/UwG3Fn+E+mZHxtD8UclpTl9qBcVqBfoJNPkE9U38z/z8VnAkTrr61TjAPGSze8YdZqs/41rbvWpizmJsniKfsApT3zNb49Gc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ri7WSL48gWC9EsPyPQhj2mxTxjE0w2/xs8tyRBNskzJuLxe6M89UFmbgy0KUXFr4O/y0xX9WrohqNKQ3xP3T8we8KBjJbu14Z0xYEVZzNQwnJ63YeqBE1Cyi2z96IxZfbXPnmpSz1if2Hddg+szrbpvmTCheYuO8N90DaoB3ZU4=
- In-reply-to: <b8c6a05f0803261337o61a88547x5648b751062da8a@xxxxxxxxxxxxxx>
- References: <b8c6a05f0803261337o61a88547x5648b751062da8a@xxxxxxxxxxxxxx>
- Reply-to: bos-dev@xxxxxxxx
- Sender: owner-bos-dev@xxxxxxxx
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
>