LuaInterface in C#

1.3k views Asked by At

I am a complete "noob" to C#, however I do know some C, although that is a good start, it's not enough. I have downloaded the most recent version of LuaInterface, and the download in cluded two files: lua51.dll, and LuaInterface.dll. I cannot figure out how to use this in my C# project, and be able to run Lua within it. If anyone can help, it would be great. Please don't use a very complicated explanation if you can. Thanks!

2

There are 2 answers

5
Skyrim On BEST ANSWER

Right click on the project and select add reference. Then select the browse tab and select the dll's from their respective directories.

0
Axis On

You need to add references to the dlls. Note I had trouble getting the lua interface working for .net 4.0 and x64 machines. I had to download the source and recompile it myself. You can find the source here: http://www.lua.org/ftp/