Everyone, this tutorial is outdated, please search for newer tutorials on Google.
I don't write tutorials often, if at all, but I spent around 3 hours trying to get a Forge 1.7.2 workspace setup, so I thought I'd tell you guys how to also. This is the only way I've tried that has actually worked, so bear with me.
Okay, I'm assuming you know how to change directories and look at directories using the Command Prompt in Windows, if not, go look it up, it's really simple.
First, download Forge 1.7.2 from http://files.minecraftforge.net - Download the latest one of course. Once you have that downloaded, extract it to anywhere in your computer, probably where you keep most of your mods, rename this folder, "Forge". Next, go into the Forge folder and make a folder called 'build' - this wouldn't be needed if the installer wasn't messed up, but do it. Make a folder within that called 'unpacked', and within that folder: 'conf', and within that folder: 'patches'. (NOTE: Don't include the '' symbols of course.)
Like so:
Open Command Prompt (search cmd in your start menu and open it) and change your directory to the Forge folder that you just created/extracted.
Preform the following commands:
gradlew.bat setupDecompWorkspace
Wait for it to say BUILD SUCCESSFUL then preform:
gradlew.bat eclipse
and then close the Command Prompt. Next you're going to want to make a new folder, name it whatever. This folder will be your workspace that you will actually use within Eclipse. I named mine, "The Mists of RioV 1.7.2". Leave it empty.
Open up Eclipse and set your workspace to the folder you just created.
Now that you have that done, in your eclipse program, go to File > Import and under General choose Existing Projects Into Workspace
Click 'Next'.
Click "Browse" where it says Select Root Director and choose the main Forge folder you extracted earlier. Then Click Finish.
By now, you should have your workspace setup, along with a nice little example mod, with a couple errors. Just remove the example code in the method and save it.
But wait, I can't run the freaking thing! You're stupid!
I never said we were done. Next, go into the tab "Run" and click "Run Configurations". Once the window pops open, right click Java Application in the sidebar and make a new Run Configuration. Name this, Run Client. For the project, select Forge from the "Browse" button. For the main class, put:
net.minecraft.launchwrapper.Launch
We're still not done! Go into the arguments tab and add this for program arguments:
--version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --accessToken test
and for VM arguments:
-Dfml.ignoreInvalidMinecraftCertificates=true
Now that we can run the client, we need to add a Run Server option. Go back into the Run Configuration area and make another Java Application, call this, "Run Server".
Select the Forge project for the project area again, and put this for the main class:
cpw.mods.fml.relauncher.ServerLaunchWrapper
No arguments are needed!
After this, go to Help > Eclipse Marketplace and search "Gradle" and install the Gradle IDE, it should be the first one.
You're done!
If this post was a little unclear, please let me know. I am still a bit asleep.
Thanks, I do but I have a problem with Eclipse got there just this:
If you're referencing the error report, its because you mod has a ton of errors now. If your're talking about how the Minecraft classes are no longer displaying in the package viewer, heres my explanation: Forge/FML now patches itself into the .jar and sets up an eclipse workspace that references the now patched and decompiled jar.
thanks for the tutorial also from what i see the methods have not been mapped yet so you can not directly port you mods let me know if you are getting the same issue if so its just mcp not being finished for 1.7.4
What? You can port it, it's just very difficult since most stuff isn't named yet.
thats what i mean i think im just going to wait until they name everything thank for the tutorial
You are mistaken, there's no "They" to name everything.
MCP does not name the methods.
They just supply the tools to do so.
It's up to us developers to name the methods and members of the decompiled minecraft code.
So yeah, that would be part of your job too Sonic_josh8
Submitting names is done to the bot in mcp's IRC channel
i did exactly what you said, but when i use gradlew.bat setupDecompWorkspace
i keep getting this error:
I had this problem when I did this tutorial. I'll take a guess that since its asking for JAVA_HOME that you run Windows 8.
Go to Control Panel > System and Security > System, click on Advanced system settings, then click Environment Variables. Find the System Variable called Path and add to the end of the value a ; followed by the path to your jdk bin folder (;C:\Program Files\Java\jdk1.7.0_45\bin). After that create a new variable and name it JAVA_HOME and put the same address in without the ; or \bin (C:\Program Files\Java\jdk1.7.0_45).
Now you should be able to run the command.
I don't write tutorials often, if at all, but I spent around 3 hours trying to get a Forge 1.7.2 workspace setup, so I thought I'd tell you guys how to also. This is the only way I've tried that has actually worked, so bear with me.
Okay, I'm assuming you know how to change directories and look at directories using the Command Prompt in Windows, if not, go look it up, it's really simple.
First, download Forge 1.7.2 from http://files.minecraftforge.net - Download the latest one of course. Once you have that downloaded, extract it to anywhere in your computer, probably where you keep most of your mods, rename this folder, "Forge". Next, go into the Forge folder and make a folder called 'build' - this wouldn't be needed if the installer wasn't messed up, but do it. Make a folder within that called 'unpacked', and within that folder: 'conf', and within that folder: 'patches'. (NOTE: Don't include the '' symbols of course.)
Like so:
Open Command Prompt (search cmd in your start menu and open it) and change your directory to the Forge folder that you just created/extracted.
Preform the following commands:
gradlew.bat setupDecompWorkspace
Wait for it to say BUILD SUCCESSFUL then preform:
gradlew.bat eclipse
and then close the Command Prompt. Next you're going to want to make a new folder, name it whatever. This folder will be your workspace that you will actually use within Eclipse. I named mine, "The Mists of RioV 1.7.2". Leave it empty.
Open up Eclipse and set your workspace to the folder you just created.
Now that you have that done, in your eclipse program, go to File > Import and under General choose Existing Projects Into Workspace
Click 'Next'.
Click "Browse" where it says Select Root Director and choose the main Forge folder you extracted earlier. Then Click Finish.
By now, you should have your workspace setup, along with a nice little example mod, with a couple errors. Just remove the example code in the method and save it.
But wait, I can't run the freaking thing! You're stupid!
I never said we were done. Next, go into the tab "Run" and click "Run Configurations". Once the window pops open, right click Java Application in the sidebar and make a new Run Configuration. Name this, Run Client. For the project, select Forge from the "Browse" button. For the main class, put:
net.minecraft.launchwrapper.Launch
We're still not done! Go into the arguments tab and add this for program arguments:
--version 1.6 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --accessToken test
and for VM arguments:
-Dfml.ignoreInvalidMinecraftCertificates=true
Now that we can run the client, we need to add a Run Server option. Go back into the Run Configuration area and make another Java Application, call this, "Run Server".
Select the Forge project for the project area again, and put this for the main class:
cpw.mods.fml.relauncher.ServerLaunchWrapper
No arguments are needed!
After this, go to Help > Eclipse Marketplace and search "Gradle" and install the Gradle IDE, it should be the first one.
You're done!
If this post was a little unclear, please let me know. I am still a bit asleep.
if u install gradle you don't have to do gradlew.bat
Yes you do.... without doing that you can't do anything....
gradlew.bat uses the gradle wrapper(Hence the 'w'). The steps are a bit different if you have gradle installed because you do not need to use the wrapper.
gradlew.bat uses the gradle wrapper(Hence the 'w'). The steps are a bit different if you have gradle installed because you do not need to use the wrapper.
You're supposed to install gradle after you have everything set up.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI don't write tutorials often, if at all, but I spent around 3 hours trying to get a Forge 1.7.2 workspace setup, so I thought I'd tell you guys how to also. This is the only way I've tried that has actually worked, so bear with me.
Okay, I'm assuming you know how to change directories and look at directories using the Command Prompt in Windows, if not, go look it up, it's really simple.
First, download Forge 1.7.2 from http://files.minecraftforge.net - Download the latest one of course. Once you have that downloaded, extract it to anywhere in your computer, probably where you keep most of your mods, rename this folder, "Forge". Next, go into the Forge folder and make a folder called 'build' - this wouldn't be needed if the installer wasn't messed up, but do it. Make a folder within that called 'unpacked', and within that folder: 'conf', and within that folder: 'patches'. (NOTE: Don't include the '' symbols of course.)
Like so:
Open Command Prompt (search cmd in your start menu and open it) and change your directory to the Forge folder that you just created/extracted.
Preform the following commands:
Wait for it to say BUILD SUCCESSFUL then preform:
and then close the Command Prompt. Next you're going to want to make a new folder, name it whatever. This folder will be your workspace that you will actually use within Eclipse. I named mine, "The Mists of RioV 1.7.2". Leave it empty.
Open up Eclipse and set your workspace to the folder you just created.
Now that you have that done, in your eclipse program, go to File > Import and under General choose Existing Projects Into Workspace
Click 'Next'.
Click "Browse" where it says Select Root Director and choose the main Forge folder you extracted earlier. Then Click Finish.
By now, you should have your workspace setup, along with a nice little example mod, with a couple errors. Just remove the example code in the method and save it.
But wait, I can't run the freaking thing! You're stupid!
I never said we were done. Next, go into the tab "Run" and click "Run Configurations". Once the window pops open, right click Java Application in the sidebar and make a new Run Configuration. Name this, Run Client. For the project, select Forge from the "Browse" button. For the main class, put:
We're still not done! Go into the arguments tab and add this for program arguments:
and for VM arguments:
Now that we can run the client, we need to add a Run Server option. Go back into the Run Configuration area and make another Java Application, call this, "Run Server".
Select the Forge project for the project area again, and put this for the main class:
No arguments are needed!
After this, go to Help > Eclipse Marketplace and search "Gradle" and install the Gradle IDE, it should be the first one.
You're done!
If this post was a little unclear, please let me know. I am still a bit asleep.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumRead the post, I said exactly what to do to fix that. I even put a giant image.
If you're referencing the error report, its because you mod has a ton of errors now. If your're talking about how the Minecraft classes are no longer displaying in the package viewer, heres my explanation: Forge/FML now patches itself into the .jar and sets up an eclipse workspace that references the now patched and decompiled jar.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIn the same area as where your Forge folder you extracted is at.
What? You can port it, it's just very difficult since most stuff isn't named yet.
Its your mod, I don't know what the errors are.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou are mistaken, there's no "They" to name everything.
MCP does not name the methods.
They just supply the tools to do so.
It's up to us developers to name the methods and members of the decompiled minecraft code.
So yeah, that would be part of your job too Sonic_josh8
Submitting names is done to the bot in mcp's IRC channel
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMEEAP
I had this problem when I did this tutorial. I'll take a guess that since its asking for JAVA_HOME that you run Windows 8.
Go to Control Panel > System and Security > System, click on Advanced system settings, then click Environment Variables. Find the System Variable called Path and add to the end of the value a ; followed by the path to your jdk bin folder (;C:\Program Files\Java\jdk1.7.0_45\bin). After that create a new variable and name it JAVA_HOME and put the same address in without the ; or \bin (C:\Program Files\Java\jdk1.7.0_45).
Now you should be able to run the command.
MEEAP
1.7 changed a lot of things. I can't fix all of your errors. You'll have to fix your errors yourself.
Are you putting your workspace folder inside of the forge folder? If so, you need to have your workspace folder somewhere else.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYeah, that's called 1.7.2..... Have you not updated a mod before?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAnyways, thanks a ton sheenrox, would have never gotten it working without you...
Edit: Works perfect. Just need to put up with the buggy Forge now...
if u install gradle you don't have to do gradlew.bat
bad part is, it will never get better >_<
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYes you do.... without doing that you can't do anything....
gradlew.bat uses the gradle wrapper(Hence the 'w'). The steps are a bit different if you have gradle installed because you do not need to use the wrapper.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou're supposed to install gradle after you have everything set up.