Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

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.

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

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.

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...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.