#SLUA bug

122 messages · Page 1 of 1 (latest)

alpine spruce
#

Platform: Macos
Build: Release and Alpha test (both experience the bug)
Description:
Whenever i attempt to use ANY lua blocks (lua box, missile lua controller, etc), it gives me this error

slua assembly:<unknown assembly> type:<unknown type> member:(null) at (wrapper managed-to-native) SLua.LuaDLL.luaL_newstate()
at SLua.LuaState..ctor () [0x0006f] in <eed81303287f45378b801ccfd46856de>:0
at SLua.LuaSvr+MainState..ctor () [0x00007] in <eed81303287f45378b801ccfd46856de>:0
at SLua.LuaSvr..ctor () [0x00008] in <eed81303287f45378b801ccfd46856de>:0
at LuaMaster..ctor () [0x0000f] in <f1f736df536949a1aa2a8f600eee595e>:0
at LuaMaster.get_Instance () [0x0000a] in <f1f736df536949a1aa2a8f600eee595e>:0
at LuaBox.InitialiseLua () [0x00008] in <f1f736df536949a1aa2a8f600eee595e>:0

I havent modified the client in any way, im mod-free, yet i get this bug.
Any additional information can be provided at request.

cobalt storm
#

Known issue, lua just doesnt work on Mac
And lua system is rather OP in ftd so unlikely the devs will take a look soon

alpine spruce
#

Is there any known fix? its quite annoying as i am a developer and i would wanna mess around with lua.

worldly niche
#

I will quickly fire it into AI to see if there is an easy fix that I am unaware of.

alpine spruce
worldly niche
#

Yep, lua was left in as Nick being nice but its pretty much defunct at this point. It was pretty much replaced with breadboards which is much more controllable in game.

#

Ok yeah it just doesn't have anything for Mac

alpine spruce
#

thats highly annoying, will it EVER be fixed or are mac gamers just kinda, screwed?

worldly niche
#

There hasn't been any real attention given to lua in the last 10 years

alpine spruce
#

man that sucks, i would be more than happy to code away

#

breadboards are a lot more limited

worldly niche
#

I'll see if there is something I can do but won't be this update.

#

Yes that's kind of the point 😛

alpine spruce
#

So, i did some reading, and the suggested solutions to the problem are
xLua (Chinese looking)
MoonSharp (older and hasnt been updated in longer than SLUA)
NLua/KopiLua (Probably the best option, english, updated 27 days ago, actively maintained)

worldly niche
#

Looking at Moonsharp. Will let you know how it goes

#

it has been updated

alpine spruce
#

7 years ago, or was i looking at the wrong website?

#

yup, it has been updated, sweet

#

MoonSharp looks easy to implement, but idk if it truly is

#

Also, thanks for such a fast reply, this is, uncommon, i dont see this active support anywhere else

worldly niche
#

It's quietly maintained. It's git has recent updates

#

but I'll double check

alpine spruce
#

yea, last month

worldly niche
#

Might just be a skeleton crew keeping something ticking over than something with all the features

#

Yeah its up to date pretty good actually. Looks like they are remodernising their pipelines. So I'll continue with that

alpine spruce
#

nope, looks actively maintained and has other contributors

#

did i just accidentally trigger a complete rewrite and revival of the lua system?

worldly niche
#

Maybe, I seem to be getting away with sweeping changes lately. Normally it would be a hard no 😛

#

Plus this seems like it'll pretty much be a straight change and any existing LUA won't break

#

maybe..

#

probably..

alpine spruce
#

probably...

#

yea, i think everyone who has ever programmed would know that "it should be easy" is defined as a 500 hour fix that will cost you your sanity

#

i would love to see how FTD handles lua

#

im checking the wiki, and this looks doable

#

IF moonsharp works out, will LUA come back into the game or will it still be abandoned?

hidden quest
#

I too would like there to still be an alternative to breadboards. they are very irritating

alpine spruce
#

Im sorry to say i agree, they WORK, but using them makes me wanna dig my eyes out

hidden quest
#

they make my shoulder ache

alpine spruce
#

and doing anything half complex is just, well, impossible

jagged dagger
worldly niche
#

I don't think we need a dog pile

#

It's substantial tech debt and FTD is already running on a tight ship where gains are better made elsewhere

#

I'll make it work, that's about it

worldly niche
alpine spruce
#

Fair

#

I prefer copy/pastable code in something where everything is purely skill based rather than mouse based

worldly niche
#

well that was surprisingly painless

#

I'll speak to Nick and see if I can slip it into the alphatest

stiff niche
#

Holding a vigil for all our LUA scripts, praying for them to survive the update.

worldly niche
#

I just ran some and they were fine

#

from #lua-repository

#

And all old functions are still there so nothing has changed

lucid fable
#

Mans on a roll with the fixes and changes.

alpine spruce
#

if you can slip that into the new alpha test, ping me, ill be the first to test it out lol

#

ill awaken at midnight if thats what it takes

#

alpha tests come out once every week or so, which means there is a probability of one being released tomorrow

worldly niche
#

Well no they just come out whenever there is a need to make one and Nick is able to

alpine spruce
#

fair

worldly niche
#

Will message if one appears

alpine spruce
#

i assumed they were unscheduled, but there are cases where updates are delayed as to "not make it seemed rushed"

alpine spruce
worldly niche
#

Nah.... we are pretty relaxed when it comes to all that. "Organic" is how I'd put it 😛

alpine spruce
#

works for me

#

i set up new notif settings, so ill be notified

#

but i do use sleep mode, and i am a pretty deep sleeper, so ill test it tomorrow if it comes out tonight

storm oriole
alpine spruce
#

it doesnt, it does now, and now it will be used, we are ditching SLUA for MoonSharp, which should fix

  • Mac incompatibility
  • A whole host of bugs
  • Being unmaintainable
storm oriole
alpine spruce
#

huh, interesting

#

one moment, lemme fact check this

storm oriole
#

i used it for a personal project, i know

alpine spruce
#

Oh, fun

#

well ill be damned, truly it does ship with moonsharp

worldly niche
#

Someone might've tried in the past. I think herpe was tasked with it at one point.

alpine spruce
#

i see

worldly niche
#

But this is distant past stuff

alpine spruce
#

so, many years?

worldly niche
#

Might even be a Unity thing.

alpine spruce
#

interesting

#

One remaining question

#

If this goes through and works

#

will it be maintained, or will this be forgotten?

worldly niche
#

Forgotten most likely. Until another update is needed

alpine spruce
#

ill do my best to keep it in check then

#

lol

#

that would be quite funny in my opinion, just the one random guy prompting for updates

worldly niche
#

I doubt it'll need updated tbh

storm oriole
#

@icy river you should advertise here by the way (edit: nevermind, mods x Lua)

alpine spruce
worldly niche
#

Well that won't happen

alpine spruce
#

i figure

worldly niche
#

Like you are super incredibly lucky you are even getting this

#

Take the win

alpine spruce
#

oh, i guarantee im enjoying every second of this

#

and i appreciate it infinitely

storm oriole
#

"thank you Sean we love you Sean" we chant in unison

alpine spruce
#

Yes we do

lucid fable
#

Praise be to Sean and Nick for letting it happen

worldly niche
#

I expected Nick to blow his top but he was surprisingly chill

alpine spruce
#

wait, so it WENT THROUGH?

worldly niche
#

Then I committed it straight to trunk expecting fireballs

#

Nothing yet ...

#

Lol

alpine spruce
#

what do you use for version management?

#

i presume git

worldly niche
#

SVN purely because it handles large files better

alpine spruce
#

im gonna need to google that, one moment

worldly niche
#

It's almost exactly the same in function

alpine spruce
#

i figure, i just enjoy reading wikipedia lol

#

According to the wiki, its not been updated in 6 years, is that accurate?

#

nope, 2 years

worldly niche
#

No, you get different flavours of it

alpine spruce
#

so forks?

#

nonetheless, it looks good

#

is it open source?

#

oh, its apache, so it is

worldly niche
#

@alpine spruce That's the alphatest build live

alpine spruce
#

waiting on the update to download