Why Am I Making This?
I'm making this because there could be a heck of a lot of people still trying to set up forge 1.7 and simply can't figure out how to get it working properly. There are guides for this I know but they all miss out on key issues in installation and people run into problems. It took me a week and 20 tutorials to figure it out, no joke.
Intro
Ok now that that's out of the way, allow me to explain in detail exactly what I did to get everything working after a fairly long period of time sitting at a computer screen. I'm Minefriek and im relatively new to modding. What I plan to do with this is fairly simple. Im going to make a mod and as I do so, I'm going to teach you everything I learn from a noobs perspective so you don't have to do all the searching like I did. In the following tutorial I will once and for all outline exactly how to install the new forge modding environment for eclipse.
What Mod Am I Making?
I'm making a mod I call Archaic Magic. It involves harnessing the powers of old to harness powerful magics and perform what could be called, miracles. In future I hope to have it tie into both thaumcraft and ars magica but that is fr down the line. All code seen here is free to be used in your own projects but you are not allowed to take my mod and claim it as your own. I have screenshots and pastebins to prove my legal point if any of my hard work is stolen. If this occurs, these tutorials will also cease to exist!
Now For The 'Fun' Part
The new forge development environment can be extremely difficult to get working right. It requires a basic knowledge of where everything is on your own pc and how to get there. this will be crucial later on. It is assumed you all have an internet connection or you would not be seeing this post. Ok, no more stalling, time to get started.
There are 4 things you will need to download. The first is a forge src. this can be found on the forge downloads page. Im using the recommended version which ends with 1024 at the time of posting. Downloading this will give you a zip file, i like to place this inside my eclipse installation so I dont have to remember multiple file routes. Dont Extract it yet if you plan to put it there too, if not then plonk it in sys32 for all i care. Next your going to want the latest version of eclipse, I'm using eclipse kepler edition and I dont know why. It works fine all the same. This program comes ready to use, meaning it requires no installation whatsoever. just extract it to where you want it. Now if you havnt plonked forge anywhere yet because your following this exactly, create a folder in your eclipse folder and name it forge. then drop the contents of the zip in there. Im using windows 8.0 so it does it for me.
Next your going to want the latest version of the java developement kit. for me this is jdk1.7.0_51
once its 'installed' you will find it in either program files or a folder similarly named inside a folder called java. your going to want the file path for its bin folder to just ctrl-c the file root so you dont cause justin bieber music to play even when your speakers are muted. [Trust me it was horrible]
So now you have a file root in your clipboard, but what do you do with it? I'll tell you now.
right click in the file browser on computer. its in the side navbar to the left and click on properties. From there you need advanced system settings and finally, environment variables. I don't know anything about this doohickey except its a major pain in the ass if you mess this up and its needed to make forge work properly. somewhere on this screen you will find a thing that says Path or PATH, its either one or the other depending on your system. For now try editing whichever one you have first. just click on it and press edit
NOW STOP EVERYTHING BEFORE YOU MAKE A MISTAKE YOU WILL REGRET!
at the VERY end you place a semicolon or whatever the following symbol is ';' now whithout a space, paste the file route from earlier in the space after the semicolon. click out of all of that and open commend prompt. To test if its been done correctly just type java, it might take a few seconds but if nothing pulls up an error or starts singing the abc's then your pretty much fine. if not, then you missed the rather obvious warning above and have now completely ruined part of the code your OS relied on to run properly or its the other Path or PATH depending on what you have. Try the other one and it should work out fine. Congratulations, you just manually installed a java developement kit.
The final thing that you need to download is gradle. Gradle is some whatchamacallit that apparently makes a minecraft modders life easier. All i can say about it is I needed 24 hours solid sleep after I got it working, which was a major feat on its own. Download the latest one and place the zip's contents in the same containing folder with java. I dont know why you do this but your computer will start sparking if you dont and repeatedly saying 'does not compute' until the screen promptly shatters.
Your still not done with gradle so dont relax yet. the next step is to go into gradles bin folder and copy the file route. now repeat what you did with java by adding it onto the end after a semicolon. The next thing is to again open up commend prompt. Sometimes gradle needs to be 'built' before it can properly work. If not then you just tested to see if you needed to after this step. just type gradle into command promt. should only take a few seconds and voila. if it works and no ballet dancers are generated then you placed it in the right 'path' and have managed not to destroy 3 computers like I did.
Gradle and java are both now running and you are ready to decompile all the code you will ever need to modify minecraft. shift and right click in your forge folder you made earlier and click run command prompt here. if that fails then in command prompt, use cd and your file route after that. You are now nearly done and at the most time consuming part of the installation. next are 2 or 3 commands to type depending on if it recognises the third. if it doesnt then don't worry.
First type in
gradlew setDecompWorkspace
or
gradlew setupDecompWorkspace
both should work. Wait for it to do its thing. if all steps have been done correctly, you wont have problems and you'll get a message saying build successful.
Second you need to type in
gredlew eclipse
this will set up the eclipse environment and make it possible for you to actually make a mod
again, if all steps are correct youll get a message saying build successful
Thirdly try typing
--refresh-dependancies
if this comes up with an undefined thingamabob then your fine and the previous steps have done it automatically.
Congratulations if you've made it this far without things breaking, now for the easy bit. Launch eclipse and it will have a welcome message. click on workspace and it should come up with a set of blank box's. if not then dont worry. just go file, switch workspace and click other.
you need to point it at the folder that contains all the stuff you got from the forge src and now the decompilation of minecrafts very core. once this is done under java and resources you should have 2 files that provide an example of a mod. you may either delete or keep these for future reference.
Congratulations you have now set up forge and minecraft to be modified by you in eclipse. I hope my tutorial was helpful and if i wasnt clear on anything then let me know in the comments and I will fix it pronto. If i didn't fully explain anything enough then let me know and I'll help where I can. If you have any problems, double check all previous steps then post here and I will also help to the best of my limited ability
Next time I'll tell you how to build your code and look at adding items and blocks which will at this point, have no use in the game really but will in coming tutorials.
Thanks for reading and I hope this helps you get started. I also hope you missed out on justin bieber. Noone deserves such a cruel fate. 'shudder'
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm making this because there could be a heck of a lot of people still trying to set up forge 1.7 and simply can't figure out how to get it working properly. There are guides for this I know but they all miss out on key issues in installation and people run into problems. It took me a week and 20 tutorials to figure it out, no joke.
Intro
Ok now that that's out of the way, allow me to explain in detail exactly what I did to get everything working after a fairly long period of time sitting at a computer screen. I'm Minefriek and im relatively new to modding. What I plan to do with this is fairly simple. Im going to make a mod and as I do so, I'm going to teach you everything I learn from a noobs perspective so you don't have to do all the searching like I did. In the following tutorial I will once and for all outline exactly how to install the new forge modding environment for eclipse.
What Mod Am I Making?
I'm making a mod I call Archaic Magic. It involves harnessing the powers of old to harness powerful magics and perform what could be called, miracles. In future I hope to have it tie into both thaumcraft and ars magica but that is fr down the line. All code seen here is free to be used in your own projects but you are not allowed to take my mod and claim it as your own. I have screenshots and pastebins to prove my legal point if any of my hard work is stolen. If this occurs, these tutorials will also cease to exist!
Now For The 'Fun' Part
The new forge development environment can be extremely difficult to get working right. It requires a basic knowledge of where everything is on your own pc and how to get there. this will be crucial later on. It is assumed you all have an internet connection or you would not be seeing this post. Ok, no more stalling, time to get started.
There are 4 things you will need to download. The first is a forge src. this can be found on the forge downloads page. Im using the recommended version which ends with 1024 at the time of posting. Downloading this will give you a zip file, i like to place this inside my eclipse installation so I dont have to remember multiple file routes. Dont Extract it yet if you plan to put it there too, if not then plonk it in sys32 for all i care. Next your going to want the latest version of eclipse, I'm using eclipse kepler edition and I dont know why. It works fine all the same. This program comes ready to use, meaning it requires no installation whatsoever. just extract it to where you want it. Now if you havnt plonked forge anywhere yet because your following this exactly, create a folder in your eclipse folder and name it forge. then drop the contents of the zip in there. Im using windows 8.0 so it does it for me.
Next your going to want the latest version of the java developement kit. for me this is jdk1.7.0_51
once its 'installed' you will find it in either program files or a folder similarly named inside a folder called java. your going to want the file path for its bin folder to just ctrl-c the file root so you dont cause justin bieber music to play even when your speakers are muted. [Trust me it was horrible]
So now you have a file root in your clipboard, but what do you do with it? I'll tell you now.
right click in the file browser on computer. its in the side navbar to the left and click on properties. From there you need advanced system settings and finally, environment variables. I don't know anything about this doohickey except its a major pain in the ass if you mess this up and its needed to make forge work properly. somewhere on this screen you will find a thing that says Path or PATH, its either one or the other depending on your system. For now try editing whichever one you have first. just click on it and press edit
NOW STOP EVERYTHING BEFORE YOU MAKE A MISTAKE YOU WILL REGRET!
at the VERY end you place a semicolon or whatever the following symbol is ';' now whithout a space, paste the file route from earlier in the space after the semicolon. click out of all of that and open commend prompt. To test if its been done correctly just type java, it might take a few seconds but if nothing pulls up an error or starts singing the abc's then your pretty much fine. if not, then you missed the rather obvious warning above and have now completely ruined part of the code your OS relied on to run properly or its the other Path or PATH depending on what you have. Try the other one and it should work out fine. Congratulations, you just manually installed a java developement kit.
The final thing that you need to download is gradle. Gradle is some whatchamacallit that apparently makes a minecraft modders life easier. All i can say about it is I needed 24 hours solid sleep after I got it working, which was a major feat on its own. Download the latest one and place the zip's contents in the same containing folder with java. I dont know why you do this but your computer will start sparking if you dont and repeatedly saying 'does not compute' until the screen promptly shatters.
Your still not done with gradle so dont relax yet. the next step is to go into gradles bin folder and copy the file route. now repeat what you did with java by adding it onto the end after a semicolon. The next thing is to again open up commend prompt. Sometimes gradle needs to be 'built' before it can properly work. If not then you just tested to see if you needed to after this step. just type gradle into command promt. should only take a few seconds and voila. if it works and no ballet dancers are generated then you placed it in the right 'path' and have managed not to destroy 3 computers like I did.
Gradle and java are both now running and you are ready to decompile all the code you will ever need to modify minecraft. shift and right click in your forge folder you made earlier and click run command prompt here. if that fails then in command prompt, use cd and your file route after that. You are now nearly done and at the most time consuming part of the installation. next are 2 or 3 commands to type depending on if it recognises the third. if it doesnt then don't worry.
First type in
gradlew setDecompWorkspace
or
gradlew setupDecompWorkspace
both should work. Wait for it to do its thing. if all steps have been done correctly, you wont have problems and you'll get a message saying build successful.
Second you need to type in
gredlew eclipse
this will set up the eclipse environment and make it possible for you to actually make a mod
again, if all steps are correct youll get a message saying build successful
Thirdly try typing
--refresh-dependancies
if this comes up with an undefined thingamabob then your fine and the previous steps have done it automatically.
Congratulations if you've made it this far without things breaking, now for the easy bit. Launch eclipse and it will have a welcome message. click on workspace and it should come up with a set of blank box's. if not then dont worry. just go file, switch workspace and click other.
you need to point it at the folder that contains all the stuff you got from the forge src and now the decompilation of minecrafts very core. once this is done under java and resources you should have 2 files that provide an example of a mod. you may either delete or keep these for future reference.
Congratulations you have now set up forge and minecraft to be modified by you in eclipse. I hope my tutorial was helpful and if i wasnt clear on anything then let me know in the comments and I will fix it pronto. If i didn't fully explain anything enough then let me know and I'll help where I can. If you have any problems, double check all previous steps then post here and I will also help to the best of my limited ability
Next time I'll tell you how to build your code and look at adding items and blocks which will at this point, have no use in the game really but will in coming tutorials.
Thanks for reading and I hope this helps you get started. I also hope you missed out on justin bieber. Noone deserves such a cruel fate. 'shudder'