Jump to content

Recommended Posts

Posted

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.

Posted

I'm seeing this as well. "gradlew.bat build" gives you classes that aren't reobfuscated. I see the reobf task get called in the console, however the jar that gets spit out in build/libs is unobfuscated as well as all the class files in build/classes.

Posted

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

Posted

So what are you saying is that we have those neat and self-explanatory names in MCP, just to NOT use them and instead use func_####_ methods, so that our code is messy and unreadable? Yeah, I am feeling that I got something wrong.

Posted

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.

 

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.