Lua.NET icon indicating copy to clipboard operation
Lua.NET copied to clipboard

Lua Version Request

Open tilkinsc opened this issue 2 years ago • 5 comments

This thread serves as a Lua version request.

tilkinsc avatar Dec 20 '23 02:12 tilkinsc

Hi there, can Lua 5.0 be added please?

JustArion avatar Jan 01 '25 15:01 JustArion

Hi there, can Lua 5.0 be added please?

There is a branch with Lua 5.0.3 and a dll built for windows. Please test and let me know any bugs. Please note, you will have to manually involve the built dll, as project references just don't work for natives.

tilkinsc avatar Jan 03 '25 03:01 tilkinsc

Hi there, can Lua 5.0 be added please?

There is a branch with Lua 5.0.3 and a dll built for windows. Please test and let me know any bugs. Please note, you will have to manually involve the built dll, as project references just don't work for natives.

It's working fine in my tests. Thanks!

JustArion avatar Jan 04 '25 05:01 JustArion

You are actually using lua5.1 with that code, do a pull I just added some changes where it targets the appropriate dll. While 51 and 50 are very similar there are definitely some differences. I'll push the changes to nuget in 30 days. Changed my phone number and didn't get to change over the 2fa key.

tilkinsc avatar Jan 04 '25 05:01 tilkinsc

You are actually using lua5.1 with that code, do a pull I just added some changes where it targets the appropriate dll. While 51 and 50 are very similar there are definitely some differences. I'll push the changes to nuget in 30 days. Changed my phone number and didn't get to change over the 2fa key.

I already rebound the Import via NativeLibrary.SetDllImportResolver on "lua515" as it's one of the first things I noticed. I should have mentioned that, my bad.

JustArion avatar Jan 04 '25 06:01 JustArion