Today I decided to update to modding for 1.7.10. I have experience programming mods for 1.6.4, in which you could setup mcp which was included with the forge src. In 1.7.10, after running the 'gradlew.bat setupDecompWorkspace eclipse' and 'gradlew.bat eclipse', I am unable to find the minecraft code that is deobfuscated so that I can understand it, and compile it when debugging. Can anyone tell me how I could get this decompiled and deobfuscated code? Thanks.
I am looking at the video made by MrCrayfish, where he does the setupDecompWorkspace command and it starts downloading all the resources needed to compile the mod. When I run the command it just shows this:
C:\Users\###\Desktop\forge 1.7.10 development>gradlew setupDecompWorkspace
The assetDir is deprecated! I actually just did all this generalizing stuff just now.. Use runDir instead! runDir set to eclipse/assets/..
The runDir should be the location where you want MC to be run, usually he parent of the asset dir
****************************
Powered By MCP:
http://modcoderpack.com/
Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
MCP Data version : unknown
****************************
:extractMcpData
:getVersionJson
:extractUserDev
:genSrgs SKIPPED
:extractNatives
:getAssetsIndex
Connection timed out: connect
:getAssets
:makeStart
[ant:javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[ant:javac] 1 warning
:downloadMcpTools SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:mergeJars SKIPPED
:deobfuscateJar SKIPPED
:decompile SKIPPED
:processSources SKIPPED
:remapJar SKIPPED
:extractMinecraftSrc SKIPPED
:recompMinecraft SKIPPED
:repackMinecraft SKIPPED
:setupDecompWorkspace
BUILD SUCCESSFUL
Total time: 2 mins 15.59 secs
I found a jar in the directory C:\Users\###\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.0.1178\forgeSrc-1.7.10-10.13.0.1178-sources.jar
Inside it are .java file but they are obfuscated as the code contains code like this.field_150940_b.func_150125_e() and int p_77647_1_. I remember when working with 1.6.4 that the code which was downloaded when setting up the workspace contained minecraft code that was written in an understandable way with comments.
I found out I wasn't looking at things correctly, I had to double click on the minecraft folder in eclipse to open the project and access all the files. I did not know there were files there since I couldn't find then through windows explorer and there was no arrow on the package explorer in eclipse to indicate files, so I though it was empty. The mod is now loading correctly. The setup is very different from the 1.6.4. Thanks for your help.
After running "gradlew setupDecompWorkspace", you then need to set it up to work for the IDE you use. If you use Eclipse, then run "gradlew eclipse". If you use IntelliJ Idea, then run "gradlew idea". Once that's done, you'll see the relevant project file you can open.
Today I decided to update to modding for 1.7.10. I have experience programming mods for 1.6.4, in which you could setup mcp which was included with the forge src. In 1.7.10, after running the 'gradlew.bat setupDecompWorkspace eclipse' and 'gradlew.bat eclipse', I am unable to find the minecraft code that is deobfuscated so that I can understand it, and compile it when debugging. Can anyone tell me how I could get this decompiled and deobfuscated code? Thanks.
assuming you set up everything correctly,
Look in the package explorer. Scroll down until you find Referenced Libraries. There is a jar called forgeSrc-xxx.jar which has all of the code.
An easier way is to ctrl-click on a class in the code to open it.
~ Crows
Avatar Mod 2 -- Elemental Bending from Avatar: The Last Airbender
Contact: PM or [email protected]
I am looking at the video made by MrCrayfish, where he does the setupDecompWorkspace command and it starts downloading all the resources needed to compile the mod. When I run the command it just shows this:
Here is the video I used:
<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>
Edit:
I found a jar in the directory C:\Users\###\.gradle\caches\minecraft\net\minecraftforge\forge\1.7.10-10.13.0.1178\forgeSrc-1.7.10-10.13.0.1178-sources.jar
Inside it are .java file but they are obfuscated as the code contains code like this.field_150940_b.func_150125_e() and int p_77647_1_. I remember when working with 1.6.4 that the code which was downloaded when setting up the workspace contained minecraft code that was written in an understandable way with comments.
I found out I wasn't looking at things correctly, I had to double click on the minecraft folder in eclipse to open the project and access all the files. I did not know there were files there since I couldn't find then through windows explorer and there was no arrow on the package explorer in eclipse to indicate files, so I though it was empty. The mod is now loading correctly. The setup is very different from the 1.6.4. Thanks for your help.
After running "gradlew setupDecompWorkspace", you then need to set it up to work for the IDE you use. If you use Eclipse, then run "gradlew eclipse". If you use IntelliJ Idea, then run "gradlew idea". Once that's done, you'll see the relevant project file you can open.