Jump to content

Best way to compile resources?


Thelastride

Recommended Posts

I want to know what is best way to compile scripts like rhbk's basemode.no one till is able t corack it.Even when you change file size or edit some image.script doesn't work.I tried with LuaCompileENG.exe but my friend decompiled it easily.If you know please tell.I want to release some scripts but only compiled

Link to comment

ben he means compile what you posteded made sure that file wont be saved in the players resouces folder

And for poeds i think it is very random cuz i had two scripts i made myself (my spawnmenu BIG script and simple info GUI) and when i compiled the info gui i could decompile it but the big spawnmenu i couldn't, decommpiler just crashed so well just might be if you can mnake your code so advanced that the decompiler dont understand it lolz

Edited by Guest
Link to comment

Adding lots of whitespace, using crazy tables {{{{{ {}, {}, {} }}}}}, using local variables (or renaming global ones) are all ways to confuse the Lua decompiler.

  
local almightyBunghole = {{{{{ {}, {}, {} }}}}} 
  
_setElementPosition = setElementPosition 
function setElementPosition(element, x, y, z, warp) 
     return _setElementPosition(element, x, y, z, warp) 
end 
  
local function resourceStart(startedResource) 
     print(string.format("Resource %s has started!", getResourceName(startedResource) ) 
end 
addEventHandler("onResourceStart", resourceRoot, resourceStart) 
  

If you have something really precious, you could use Ransom's file downloading method.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...