Closed jsorel closed 5 months ago
You are missing an 'import' of the default lua libraries. Try calling this before setting the externalLoader.
lua.openLibraries();
I knew something wasn't right, I couldn't call any of the string functions either.
Many thanks,
Describe the bug I am working on IHO S-100 specifications, in those specifications, LUA 5.1 is the scripting language for all rendering processes. there are multiple lua files (about 200) which are loaded using the require function. Some are loaded at the begining of the file like this
require 'S100Scripting'
and some later on withrequire(feature.Code)
.No lua module() are used, nowhere.
I made a small test case: To Reproduce Place the following files in the resources of the project : Friend2.lua
Friend3.lua
And in java execute :
Current behavior I could not find the 'require' function, even with
local require = require
.Expected behavior Is require usable in LuaJava ? Must I implement it ? how ?
Platform:
Additional context Add any other context about the problem here.