Jump to content

Recommended Posts

Posted

I'm modifying a class in someone else's mod without the original source code, instead using JDGUI to reveal the obfuscated code. I'm finding however that the mod uses field and func names instead of letter names for classes and methods. I was able to replace all the field and func names with the Forge class and method names in order to get the class to compile and obfuscate, but when it obfuscates I get letter names instead of field and func names and so the .class file does not work when injected into the original mods jar because the rest of the classes in that jar have field and func names. Is there a way to get the field and func name obfuscation instead of letter name obfuscation?

 

 

Posted

You are probably talking about SRG-obfuscation vs. normal obfuscation. SRG-obfuscated mods use the field_** and func_*** names, making them for example cross-compatible between 1.6.2 and 1.6.4. Just use reobfuscate_srg instead.

 

It had to be that easy, thank you!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.