Jump to content

Recommended Posts

Posted
  On 1/16/2022 at 8:18 PM, ElTotisPro50 said:

oh i know that the mod didnt obfuscated the methods, maybe minecraft did, an example is: world.func_numbers or player.func_numbers, this is from a mod called deathnote mod

Expand  

Oh, then it's probably the reobfuscation process.

Because minecraft is obfuscated, the deobfuscated function calls lead to nowhere, so they are converted.

Anyways, to find what they truly mean, look inside any of your mod projects (IntelliJ) > build > createMcpToSrg > output.tsrg. Then Ctrl + F to get the function's deobfuscated name

Posted
  On 1/18/2022 at 5:19 PM, Majd123mc said:

Oh, then it's probably the reobfuscation process.

Because minecraft is obfuscated, the deobfuscated function calls lead to nowhere, so they are converted.

Anyways, to find what they truly mean, look inside any of your mod projects (IntelliJ) > build > createMcpToSrg > output.tsrg. Then Ctrl + F to get the function's deobfuscated name

Expand  

but it will deobfuscate a specific .class file(that is from other mod) that i added in my mod or what?

Posted
  On 1/18/2022 at 6:35 PM, ElTotisPro50 said:

but it will deobfuscate a specific .class file(that is from other mod) that i added in my mod or what?

Expand  

the file contains the names in the following pattern:

obfuscate class name (something like 'a' or 'b') or 'bfr'), package (like net/minecraft/something), then the class name
	
	then fields

	obfuscate field name (something like 'a' or 'b'), srg field name (something like f_142767_)
	
	then methods

	obfuscate method name (something like 'a' or 'b'), parameters (like Ljava/lang/Object;), return value (like V), the srg method name

 

if thats not what you want i have no idea what else

Posted
  On 1/18/2022 at 7:38 PM, Luis_ST said:

the file contains the names in the following pattern:

obfuscate class name (something like 'a' or 'b') or 'bfr'), package (like net/minecraft/something), then the class name
	
	then fields

	obfuscate field name (something like 'a' or 'b'), srg field name (something like f_142767_)
	
	then methods

	obfuscate method name (something like 'a' or 'b'), parameters (like Ljava/lang/Object;), return value (like V), the srg method name

 

if thats not what you want i have no idea what else

Expand  

what "file" contains the names?

Posted

The first step to this is to see if you can track down the original author and ask if they still have the source and if so, can you look at it

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 1/18/2022 at 6:35 PM, ElTotisPro50 said:

but it will deobfuscate a specific .class file(that is from other mod) that i added in my mod or what?

Expand  

No.

In the mod you decompiled. It might look something like this:

 

class MyItem extends Item {
   public void someFunc() {
      func_a123();
   }
}

Now what I get is you want to know what "func_a123" is. It is obfuscated because it is a vanilla function.

Search for "func_a123" in the build/createMcpToSrg/output.tsrg file. You can find this file in any mod you built, it doesn't matter (as long as it is the same version of Minecraft)

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.