PDA

View Full Version : How to compile Lua Files



yaustar
September 16th, 2006, 06:01
Download the LuaC binary from here:
http://luaforge.net/frs/?group_id=110
(Window users look for: lua5_1_Win32_bin.tar.gz)

Instructions on how to use it here: http://www.lua.org/manual/4.0/luac.html

Once you have the 'compiled' source file, just load it using dofile() via a standard script.

Only seems to work with LuaPlayer 0.20.

The advantages:
- Faster loading time for large scripts
- Stops modications to source code

Disadvantages:
- Makes the files unreadable

ninja9393
September 16th, 2006, 09:29
so this makes it so no one can copy your entrire code?

yaustar
September 16th, 2006, 14:56
- Makes the files unreadable
Yep