daemitus / SomethingNeedDoing

86 stars 59 forks source link

Lua Function Invalid arguments for method #83

Closed HorseEars closed 2 years ago

HorseEars commented 2 years ago

I have been trying to fiddle around with the Lua scripting, but either something isn't working quite right with my installation or I don't understand the proper usage for the Lua functions. When I try to call a function like IsCrafting() I get results like [SND] Failure while running script: Invalid arguments to method call. Even though some of these functions take no arguments.

When I check the types of the functions listed they are luaNet_functions or userdata.

I might just be missing something here, do you have any examples of using these functions?

daemitus commented 2 years ago

ok. got a fix for this pending, my own fault. going to take a quick stab at other issues before merging