This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Remote restore of user scripts
#8
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:
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.
Reply


Messages In This Thread
Remote restore of user scripts - by hogo - 20.03.2018, 14:26
RE: Remote restore of user scripts - by admin - 20.03.2018, 14:33
RE: Remote restore of user scripts - by admin - 07.12.2018, 09:48
RE: Remote restore of user scripts - by admin - 07.12.2018, 14:23
RE: Remote restore of user scripts - by admin - 15.06.2020, 07:57

Forum Jump: