   Lua c# help (luainterface) [Nevermind :)]
  Hi,I have trouble of creating new c# objects in lua, when using LuaInterface. In the different tutorial/examples I've looked at, if you have a class called MyObject class MyObject {public string description = "";...}and would like to be able to create objects of that type in lua all you need to do is call a lua file:luanet.load_assembly("LuaClasses"); MyObject= luanet.import_type("LuaClasses.MyObject");--create a MyObjectthingy = MyObject();thingy.description = "This is a MyObject created from lua.";but when I call lua.doFile("testscript.lua"); all I get is an exception: "testscript.lua:5: attempt to call global `MyObject' (a nil value)"My guess is that I haven't set up lua correctly. I have luanet.dll, lua50.dll and compat-5.1.lua in my working directory( i.e. where the .exe file is generated )  and I have set the reference to luaInterface.dll. Is there anything else I need to do to get this to work?EDIT: I realised that the load_assembly should have the file name instead of the namespace as stated on some example/tutorial page :) So now I got it to work :)[Edited by - Mr_T on June 20, 2006 6:33:50 AM]
  Although using Lua from C# works, it's quite a pain to link it up to your C# assembly as you have to manually register the functions into Lua.  I recommend you use a CLI solution, like Boo, as then you just have to reference your built binary and all references are made for you.  You can also then create objects of your C# defined classes from the script.I really wish there was a CLI solution for Lua [wink].   