Jump to content

How do I decompile & deobfuscate a binary to source??


modpotato

Recommended Posts

Okay so long story short, for the past four hours I've been trying to figure out how to decompile a forge mod and deobfuscate it (not specifically in that order), and I haven't been able to find anything that would help. All I've understood is that I need a mapping to translate the games compiled jar into its deobf parts yet for SOME REASON I can't find the right mappings, I think. What I think the best option I've found is to use Enigma, import the jar, open the mapping and export the sources. The part I'm getting stuck on is opening the mappings. So the problem I'm running into is that the mappings dont actually update anything (as in they don't add anything to the "deobfuscated code" section), honestly I'm pretty sure that when the mappings load it just stays on idle and doesn't do anything. Any help would be appreciated.

 

mappings - https://launcher.mojang.com/v1/objects/e4d540e0cba05a6097e885dffdf363e621f87d3f/client.txt

found from - https://minecraft.fandom.com/wiki/Java_Edition_1.17.1#:~:text=Obfuscation maps-,Client,-Server

Link to comment
Share on other sites

11 hours ago, diesieben07 said:

Once you import the workspace into your IDE you will find the deobfuscated jar in .gradle/caches/forge_gradle/deobf_dependencies/... in your user home folder and you can feed it through your favorite decompiler.

Sorry to continue this more than it needs to be but I've done everything I can and still cant find the deobf jar. I've looked through the logs and it's detecting the mod as a dependency and when I run the client the mod is installed. Also as a side the note the directory isn't even being created in the first place.

Link to comment
Share on other sites

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.