Jump to content

Packed jar fails to reobsucate


iconmaster

Recommended Posts

I have a hardly-changed build.gradle file. I try to use 'gradlew.bat jar' to get my JAR, and there is the JAR in build/libs. When I try to put this JAR in normal Minecraft, however, it crashes when it comes across the first name that should have been reobsucated. As it turns out, all the names in that JAR have not been reobsucated. Is there anything special I need to do to actually get this to work? Gradle says the task is successful, but I'm thinking its failing silently at some point.

Link to comment
Share on other sites

Make sure you're checking the right things. Witht he gradle the only choice is to Obfusicate to SRG names.

It LOOKS like it's not reobfed, because it's in the middle stage.

All function references should be func_####_ {Unless it's a method we add in that code it doesnt change}

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

Make sure you're checking the right things. Witht he gradle the only choice is to Obfusicate to SRG names.

It LOOKS like it's not reobfed, because it's in the middle stage.

All function references should be func_####_ {Unless it's a method we add in that code it doesnt change}

 

Indeed I am checking the right things. Example:

 

Code in Intelij: http://i.imgur.com/L81PXCch.png

 

Class file compiled by gradle: http://i.imgur.com/NqUjQk1h.png

 

Class file compiled by the old mcp scripts in 953: http://i.imgur.com/5WpPeQPh.png

 

The mod fails to load in a normal minecraft environment as soon as it hits a deobf'd field.

 

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.