Prometheus icon indicating copy to clipboard operation
Prometheus copied to clipboard

[BUG] Can't Obfuscate operations with "+="

Open Multitude1337 opened this issue 1 year ago • 3 comments

Describe the bug So, the bug happens when you try to obfuscate any code using += and probably even -=.

Expected behavior Usually, you would do count += 1 and that would yield the same result as count = count + 1. But, the obfuscator errors upon such operation.

So, it would normally just add whatever you put after += to the variable and vise versa with -=.

To Reproduce Steps to reproduce the behavior:

local count = 0
while true do
wait(1)
count += 1 --Parsing Error at Position 4:5, unexpected token <Symbol> "+", expected <Symbol> "=" <-0m
print(tostring(count))
end

Multitude1337 avatar Nov 19 '23 04:11 Multitude1337

Try to add the --LuaU argument to your obfuscate command.

levno-710 avatar Nov 21 '23 07:11 levno-710

Add "--LuaU" argument right after cli.lua, or you can edit the "presets.lua" find the "LuaVersion" and change the value into "LuaU".

Zaenalos avatar Nov 27 '23 11:11 Zaenalos

@levno-710 Since Lua version 5.3, & and | bitwise operators were introduced, providing more comprehensive support for bitwise operations in Lua. These operators are used for bitwise operations on integers

Will you consider supporting it?

mudebug77 avatar Jan 14 '24 19:01 mudebug77