Trey Moller
Trey Moller
Going to retry the builds as I can not reproduce this locally.
This is a side effect to how we handle metatables. Properties are not passed by reference unless they are a Object type. So types like Vector3 what ends up happening...
> Sounds good. Would it be possible to somehow recursively instantiate object properties the same way globals are created? I'm pretty new to Lua so not sure if it works...
A fix would be to always push properties by ref. But I think that would create other issues. some_vec = obj.vec you wouldnt expect some_vec to be a ref to...
So my only concern with the current implementation is functionally this would behave the same as pushing an object or dictionary as a global with all the module methods. Ideally...
> It is pretty dirty but here is what I came up with. You can only `require` Godot made libraries as the default `require` is disabled. I did not understand...
> Even by doing `lua.bind_libraries(["base", "table", "string", "package"])` I still get this error using `require`: > > ``` > ERROR 2: [LUA_ERRRUN - runtime error ] > [string "..."]:2: attempt...
> Same on a brand new git clone, then submodule init, update from the repo. Running on a Mac M1 (ARM). this is probably because of #193, we have #194...
So the object_metatable does not get applied to the global table. Currently besides doing it from within lua we do not offer a way to do this. Potentially support could...