Posted December 24, 201311 yr 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.
December 25, 201311 yr 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.
December 25, 201311 yr 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
December 25, 201311 yr 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.
December 25, 201311 yr 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.
December 25, 201311 yr Lemme see your build.gradle file. The reobfuscation task is designed to take the default output of the Jar task.. if you added some other task.. that you want reobfusctaed, things would change... http://i56.tinypic.com/ruu0ao.png[/img] ^^ url to be changed.
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.