Tags: XNua - Lua for XNA
Hi,
So I've used XNua to get some basic Lua scripts working. But what I'd really like is to have dynamic scripting, rather that something that gets compiled (to a .lil) at compile-time. Is XNua able to do that / will it ever / is anything else able to?? Or am I misunderstanding the uses of scripting?
For example,. I can use this to write a funciton in Lua that e.g. sets a static variable Game1.Test to = 4. That's great, but to call that fucntion, I have to write code in C# to call this Lua function (which then sets Game1.Test = 4;) So why not just have that in C# to start with?
What would be cool would to have a separate Lua interpreter, where you could Dynamically type in and run Lua code at Runtime, and weren't restricted to what you'd compliled.
But when I run a standard Lua interpreter, I get errors. E.g. load_assembly( "LuaTest" ) gives an error.
AM I donig something wrong, or is that just outside the scope of what this does at the moment?
Thanks.
Murray