• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Compile .Lua

xDyego

Member
Joined
Feb 28, 2012
Messages
83
Solutions
1
Reaction score
16
Location
São Paulo - Brazil
Hello everyone, I wonder if anyone knows a way to compile or encode my .lua files? If there's any way, please tell me, thank you.
 
What do you mean to compile them? They are processed by the TFS core program, you dont have to compile them
 
Precompile your files and then load binary chunks.

You can use luac to strip the debuggin' info.
 
Last edited:
CdOt415.gif


Then you simply:

Lua:
loadstring('\27\76\117\97\81\0\1\4\8\4\8\0\211\0\0\0\0\0\0\0\108\111\99\97\108\32\99\111\100\101\32\61\32\115\116\114\105\110\103\46\100\117\109\112\40\10\32\32\10\32\32\32\32\102\117\110\99\116\105\111\110\40\41\10\32\32\32\32\32\32\10\32\32\32\32\32\32\45\45\32\99\111\110\116\101\110\116\10\32\32\32\32\32\32\10\32\32\32\32\101\110\100\10\41\10\10\108\111\99\97\108\32\114\101\115\117\108\116\32\61\32\39\39\10\10\102\111\114\32\105\32\61\32\49\44\32\115\116\114\105\110\103\46\108\101\110\40\99\111\100\101\41\32\100\111\10\32\32\10\32\32\114\101\115\117\108\116\32\61\32\114\101\115\117\108\116\32\46\46\32\39\92\92\39\32\46\46\32\115\116\114\105\110\103\46\98\121\116\101\40\99\111\100\101\44\32\105\41\10\32\32\10\101\110\100\10\10\112\114\105\110\116\40\114\101\115\117\108\116\41\0\3\0\0\0\7\0\0\0\0\0\0\2\1\0\0\0\30\0\128\0\0\0\0\0\0\0\0\0\1\0\0\0\7\0\0\0\0\0\0\0\0\0\0\0') ()

Still, it is not encoding, you can read the content by printing the string. But it's something :p.

Lua:
local code = string.dump(
 
    function()
    
      -- content
    
    end
)

local result = ''

for i = 1, string.len(code) do
 
  result = result .. '\\' .. string.byte(code, i)
 
end

print(result)
 
Back
Top