vimasig / Bozar

Java bytecode obfuscator with GUI
MIT License
152 stars 19 forks source link

Problem with renamer in minecraft client #10

Open wh1trope opened 3 years ago

wh1trope commented 3 years ago

ScreenShot: 1 Crashlog: crash-2021-08-26_17.12.22-client.txt

When i try to use RenamerTransformer in latest bozar version, then i have this problem. In 1.6.0 version everything works correct.

Edit: Also without renamer everything works, but I want to use it.

HeyaGlitz commented 2 years ago

Sometimes you can't obfuscate every name, and you obfuscated textureWidth with your own name so it can't find it

wh1trope commented 2 years ago

Sometimes you can't obfuscate every name, and you obfuscated textureWidth with your own name so it can't find it

but i added all minecraft packages to excludes

vimasig commented 2 years ago

Sometimes you can't obfuscate every name, and you obfuscated textureWidth with your own name so it can't find it

but i added all minecraft packages to excludes

ClassRenamerTransformer is breaking resources that's why excluding classes is not working.

Converting byte[] to String (or String to byte[] at line 30) probably causing lost bytes https://github.com/vimasig/Bozar/blob/f9977fa5faed03452496ee72f8782d71fa4ff724/src/main/java/io/github/vimasig/bozar/obfuscator/transformer/impl/renamer/ClassRenamerTransformer.java#L25

There are several issues with renamer transformers. I'll look at them when I have free time