• Lua for net
    14 replies, posted
Hello, I am using LuaNet 5.1.3 dll, It works perfect with Windows but i am looking for a way to convert it to Mono, Anyway? Or any project else that has all lua libs working fine with net / mono? [url]http://luaforge.net/projects/luanet/[/url] Thanks.
You are searching for a lua library that works with .NET/Mono? Try DynamicLua [url]http://dynamiclua.codeplex.com/[/url] [editline]11th August 2013[/editline] Well... i'm not sure if DynamicLua works with Mono, but just now i found this, didn't test it though. This might be what you need. [url]https://github.com/stevedonovan/MonoLuaInterface[/url]
I don't really like LuaInterface, LuaInterface is more like simulating lua, same for dynamic lua which is fork of luainterface, I want something that has all lua libs, It's okay even if it's lua 5 or 5.1, LuaNet has all libs like math.random but LuaInterface and others just simulate lua.
What? No? Lua interface is a [B]wrapper[/B] for lua, which means it [B]wraps in[/B] the original lua library and uses it, it doesn't "simulate" anything. [editline]11th August 2013[/editline] There's a reason it's called [B]interface[/B]. [editline]11th August 2013[/editline] Well anyway, add me on steam, i might help you with what you need later.
[url]https://github.com/gleblebedev/AluminumLua[/url] works on mono. Says so on the github page, haven't tested it myself so don't shoot me if it doesn't work.
[QUOTE=Arxae;41795081][url]https://github.com/gleblebedev/AluminumLua[/url] works on mono. Says so on the github page, haven't tested it myself so don't shoot me if it doesn't work.[/QUOTE] That is a lua implementation in C#, i tested it before, it sucks.
Downloaded LuaNet, the reason it's not compatible is because the main project is in C++/CLI. You could try compiling on Windows with "/clr:safe" and it'll be compatible with Mono. If that doesn't work, then you're out of luck and you have to move to another library, preferably one that's fully managed (simplest to distribute cross-platform). [editline]11th August 2013[/editline] You might also want to take a look at [url=http://tirania.org/blog/archive/2011/Dec-19.html]CXXI[/url]
[QUOTE=cartman300;41795099]That is a lua implementation in C#, i tested it before, it sucks.[/QUOTE] Yeah it isn't great. But it's the only library that i know off that has mono support.
CXXI: ~/cxxi$ ./configure; make; make install -bash: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `install'. Stop.
[code]./autogen.sh[/code]?
All i need is standard libs, like math.random and table.insert, stuffs like this, If somebody can help me to have them on C#.NET / Mono it would be cool. [editline]11th August 2013[/editline] Anyone?
[QUOTE=!!!WARLOCK!!!;41796010]All i need is standard libs, like math.random and table.insert, stuffs like this, If somebody can help me to have them on C#.NET / Mono it would be cool. [editline]11th August 2013[/editline] Anyone?[/QUOTE] DynamicLua does have the standard libraries. If I do [code]dynamic lua = new DynamicLua.DynamicLua(); lua("print(math.random())"); [/code] it prints a random number just fine.
[QUOTE=Liquid Helium;41798107]DynamicLua does have the standard libraries. If I do [code]dynamic lua = new DynamicLua.DynamicLua(); lua("print(math.random())"); [/code] it prints a random number just fine.[/QUOTE] Good one but i need to compile LuaInterface to make it work with NET 3.5 Client Profile, It gives me missing assembly, And if i move my project to NET 4 it works fine but many of my stuffs are not going to work with net 4 and many more errors.
[QUOTE=!!!WARLOCK!!!;41799190]Good one but i need to compile LuaInterface to make it work with NET 3.5 Client Profile, It gives me missing assembly, And if i move my project to NET 4 it works fine but many of my stuffs are not going to work with net 4 and many more errors.[/QUOTE] What about [url=http://nlua.org/]NLua[/url] I beleive it's built on .Net 2 so it should work fine on 3.5
[QUOTE=anthonywolfe;41799411]What about [url=http://nlua.org/]NLua[/url] I beleive it's built on .Net 2 so it should work fine on 3.5[/QUOTE] Trying it, I'll tell you if it works or not. EDIT: It doesn't really work, It needs lua52.dll to start, Anybody yet got LuaInterface working with NET 3.5 CLI? [editline]12th August 2013[/editline] Here, That's my error: The type or namespace name 'LuaInterface' could not be found (are you missing a using directive or an assembly reference?) [editline]12th August 2013[/editline] If you can build LuaInterface dll with KopiLua for NET 3.5 please upload it(Make sure it appears as runtime version: 2..... on the properties menu after using it on a project), thanks.
Sorry, you need to Log In to post a reply to this thread.