Download luac, and put it in your DSB directory:
https://sourceforge.net/projects/luabin ... p/download
(In this example, we'll assume it's in C:\dsb)
You'll need to use the command line (cmd.exe). First, cd to your dungeon:
Code: Select all
cd \dsb\my_dungeon
Code: Select all
..\luac -s -o startup.lxx startup.lua
Code: Select all
..\luac -s -o objects.lxx objects.lua
Include only the .lxx, not the .lua files, when you distribute the dungeon, and your custom code is safe from cheaters.

Note: If you're using a lua_manifest, you won't have to change anything. DSB will automatically try to convert the last two letters of the filename to "xx" and load a compiled Lua script if it cannot find a normal Lua script.