I've got a moon script code like this: And i want to use it in my lua code using moonscript.loadfile how should i do something like that? ...
I've got a moon script code like this: And i want to use it in my lua code using moonscript.loadfile how should i do something like that? ...
I've been trying to work with setfenv() in order to load a chunk into an environment outside of the global environment but I'm having a little trouble ...
I am beginning to learn Lua on my own with basically no prior programming knowledge. I understand the basics of types, functions, tables, etc. But in ...
I'm attempting to do the following : (include() code below) File1.lua File2.lua i've found exactly what i'm looking for but in lua 5.1 here : ...
I had some lua code with the following line: The file JSON.lua is in the same directory as the lua code that line came from. This code worked for m ...
I have text .dat file and I load this file from my main class and read in my DataReader class. but I get errors that i have to change my modifier to s ...
How can I load a file of lua tables and variables without polluting the global environment? Since doing a loadfile and running it just loads everythin ...