15.06.2020, 07:57
Lua can load both plain source and byte code files so using byte code for user libraries is not mandatory.
You can convert source to byte code like this:
You need to restart any resident scripts that are using old libraries. All other scripts will use updated libraries automatically when run. Restarting LM is the easiest solution.
You can convert source to byte code like this:
Code:
fn = loadfile(path_to_source)
bc = string.dump(fn, false)
io.writefile(path_to_bytecode, bc)
You need to restart any resident scripts that are using old libraries. All other scripts will use updated libraries automatically when run. Restarting LM is the easiest solution.