Jump to content

Dealing with Decompile Errors


Andavin

Recommended Posts

So, basically I would like to decompile Minecraft in order to have my own private repo for reference etc.

I've done so via Fernflower and it works great except there are quite a few decompile errors and/or issues inserted by the obfuscator.

 

What I'm wondering is: does anyone know how Forge deals with these little issues when decompiling?

Common examples of what I'm talking about:

void method() {
   String result;
   String result = getStringFromSomewhere(); // Compile error already defined in scope
   result = result;
   return result;
}

void otherMethod() {
   String name;
   String value;
   String name = properties.get("name"); // Already defined
   name = properties.get("value"); // Blantantly wrong vars
   value = properties.get("signature");

   // Should actually be something like
   String name = properties.get("name");
   String value = properties.get("value");
   String signature = properties.get("signature");
}

 

Since, as far as I'm aware, Forge fully decompiles and recompiles Minecraft it must deal with these issues in some way. Is this information readily available somewhere that I haven't been able to find it maybe?

Thanks for any insight :)

 

P.S. If I've posted this in the wrong section please let me know. I didn't see any other more appropriate forum sections though.

Edited by Andavin
Link to comment
Share on other sites

Minecraft is copywritten code and publishing their decompiled source is illegal. We do not support you doing it.

The toolchain Forge has is specifically designed to keep things like that at arms length but also give you a local copy to reference it.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Just now, LexManos said:

Minecraft is copywritten code and publishing their decompiled source is illegal. We do not support you doing it.

The toolchain Forge has is specifically designed to keep things like that at arms length but also give you a local copy to reference it.

 

Hi,

 

Thanks for your response. I do not intend to publish or distribute decompiled Minecraft code in any way.

I am asking a specific question about how Forge deals with a common issue that comes from decompiling code.

 

I'd appreciate any insight you have for my question :)

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.