[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multiple lua instances
- From: Rob Kendrick <rjek@...>
- Date: Tue, 19 Jan 2010 16:14:14 +0000
On Tue, 19 Jan 2010 17:07:18 +0100
ingmar wirths <ingmania@googlemail.com> wrote:
> > Is there a specific reason you're wanting to use different states
> > rather than the more usual sand-boxing approaches by using
> > environment tables?
>
> Well, as i sad, i want to restrict communication between units and
> provide an communication api to enforce this. A glimpse on
> environment tables looked promising at first, but on a second
> thought, since i want to permit the user to modify the ai, he could
> probably easy bypass these restrictions.
It's easy to provide an API to your sandboxed functions that your
trusted Lua can process. And it can be made quite difficult to break
out of these sandboxes. (Especially with liberal use of the debugging
library.)
B.