Answer the question
In order to leave comments, you need to log in
Obfuscator (minifier) of Lua code with support for global variables and table indexes?
There is only this code minifier:
https://mothereff.in/lua-minifier
It works well, replaces all local variables with a, b, c etc. But you cannot specify a list of global variable names and array keys that would also be replaced.
For example, I have a table PLAYER = { health = 100, score = 0 }. It is not used anywhere outside of the script. So why not replace it with a = { b = 100, c = 0 } and all calls accordingly? This can be set in a separate list, where the user himself would indicate all the names that need to be shortened.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question