Questions tagged [nlua]

NLua is the bind between Lua world and the .NET world.

NLua provides the 'glue' that allows the usage of Lua from C# and other .NET languages. It supports Windows, Linux, Mac, iOS , Android, Windows Phone 7 and 8.

Project repository on Github.

64 questions
0
votes
0 answers

Lua returns wrong values

I've got the following scenario: I registered a c# function in nlua This function is called like this in the lua script: SomeFunction({Amount = 1}) The c# function gets called but now the Amount is some arbitrary huge double The code in which I…
l.k.1234
  • 78
  • 6
0
votes
0 answers

NLua - System DLL Not Found Exception

Having a serious complication with trying to use Lua in VB.NET. My question is How do I get this Library to load properly so that it is actually usable. Here are my attempts. I tried several variations of the Lua library via NuGet. And after some…
Kraang Prime
  • 9,981
  • 10
  • 58
  • 124
0
votes
1 answer

Register functions without using them "Object reference not set to an instance of an object."

I have an IRC Bot in C# and I want to use Lua Scripting for the moment. On bot startup I want to register functions, and detect if a new file has been added then load it. I did the new file / reload scripts function already, but when I hit run I get…
Brandon Palmer
  • 313
  • 2
  • 11
-1
votes
2 answers

Change form location using nlua

I'm writing a simple program in c# using .net framework 4.8, winforms, and nlua. I want to change the location of my main form using a lua script. Here is what I tried: public partial class MainForm : Form { public MainForm() { …
sloopy
  • 3
  • 3
1 2 3 4
5