Jump to content

Best way to compile resources?


Thelastride

Recommended Posts

Posted

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

Posted (edited)

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
Posted

Yes I know, kimmis (I'm not idiot, you should already know that).

But NeXTreme's way is the best one to avoid resource stealing. That's why I posted it.

Compilers will never be perfect.

Posted
xD didnt say you were an idiot

I know you didn't.

But compilers will never be perfect. There are DECOMPILERS around the web. So the best way is still NeXTreme's.

Posted

i know and i know yeah the way to protect resources in your server is neXtremes way but if he tough of something he wanted to be released and not edited Anyway he got his answer now :D

Posted

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.

  • MTA Team
Posted
xD didnt say you were an idiot

I know you didn't.

But compilers will never be perfect. There are DECOMPILERS around the web. So the best way is still NeXTreme's.

also decompiling is not prohibitied in the Lua team.

  • MTA Team
Posted
also decompiling is not prohibitied in the Lua team.

True, you are the expert after all.

I'm flattered, John :)

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...