AndyGFX Posted April 30, 2010 Share Posted April 30, 2010 Here is simple example, howto compile lua scripts into single file (good for distribution) when you can't distribute lua source. Download: Sample LUAC command line: luac -o <output lua filename>.<your extension> <main lua script filename> <additional lua scripts #1> <additional lua scripts #2> ... <additional lua scripts #n> sample: luac -o main_lua.bin main_lua.lua scripts/script1.lua scripts/script3.lua scripts/script2.lua or luac -o main_lua.bin main_lua.lua scripts/*.lua Note: don't use script extension with require command. 1 Quote [HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64 [sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx Link to comment Share on other sites More sharing options...
diedir Posted April 30, 2010 Share Posted April 30, 2010 extremly valuable, brilliant, thanks a lot, big help for all of us Quote AMD Ryzen 5900HX - Nvidia RTX 3070 - 32 Go - 1To SSD - W11 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.