Jump to content

Compile more LUA scripts ...


AndyGFX
 Share

Recommended Posts

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.

  • Upvote 1

[HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64

[sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx

 

76561197970156808.pngAndyGFX.png

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...