Could why ffi isn’t working right with Editor 2 be investigated soon?
Is there a ticket for this? I will talk to @mats.gisselson, @Erik_Angelin and @Ragnar_Dahlen today and ask.
1 Like
@Pkeod: ffi is in the package.preload table. At least when I test in the latest Editor 2 on OSX.
1 Like
I see that too when printing package on Windows, shouldn’t it work?
DEBUG:SCRIPT:
{
preload = {
ffi = function: 0x3d428520,
}
If I do local ffi = require("ffi")
it says not found. If I try to use ffi it says attempt to index global 'ffi' (a nil value)
.
You shouldn’t require ffi like that. Try:
local ffi = package.preload.ffi()
1 Like
That works! Thank you!