Jump to content

Setting up a GIT repository with your Minecraft Forge Dev Environment


Roymond

Recommended Posts

  • Hello Modders!
     
    As of this far, I've been coding on one computer. However, as I have multiple computers I would like to expand where I can code by finding a way to store my code somewhere online for me to be able to download it.
     
    After some research I recognized that a GIT repository would be the simplest and probably most effective option. However, when I set it up with a clean Forge Dev environment, pushed all the files to the repo and then attempted to clone the repository on another computer, I was unable to launch a build out of Eclipse.
     
    Basically my process of how I created the GIT repo are as follows:
     
  • Downloaded a clean Forge ZIP File
  • Unzipped and installed Forge Dev Environment
  • Tested the environment (Just by launching a build) - It starts fine.
  • Loaded up GIT Bash
  • Navigated to the directory I have set up for the GIT (which has all the files extracted from the clean Forge Dev install)
  • git add --all
  • git commit --all -m "First Commit, Clean Forge"
  • git push --all
     
    After everything had been successfully uploaded to BitBucket. I went to the other computer and typed in the following command:
     
    git clone https://(username)@bitbucket.org/(username)/(git-name).git
     
    Replacing (username) with my username and git-name with the name of my repo. It was at this time that everything should have been downloading to my second computer.
     
    Once the download was complete, I changed the work space in eclipse to the one I just downloaded, attempted to launch a build and was presented with the following errors:
     

2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Forge Mod Loader version 6.4.49.965 for Minecraft 1.6.4 loading
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Java is Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_45, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jre7
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
2014-01-12 19:23:16 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-01-12 19:23:17 [iNFO] [sTDOUT] Loaded 40 rules from AccessTransformer config file fml_at.cfg
2014-01-12 19:23:17 [sEVERE] [ForgeModLoader] The binary patch set is missing. Either you are in a development environment, or things are not going to work!
2014-01-12 19:23:18 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
2014-01-12 19:23:18 [iNFO] [sTDOUT] Loaded 110 rules from AccessTransformer config file forge_at.cfg
2014-01-12 19:23:18 [iNFO] [ForgeModLoader] Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
2014-01-12 19:23:18 [iNFO] [sTDERR] Exception in thread "main" java.lang.NoClassDefFoundError: cpw/mods/fml/common/LoaderException
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at java.lang.Class.forName0(Native Method)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at java.lang.Class.forName(Unknown Source)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at cpw.mods.fml.common.launcher.FMLDeobfTweaker.injectIntoClassLoader(FMLDeobfTweaker.java:31)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:111)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
2014-01-12 19:23:18 [iNFO] [sTDERR] Caused by: java.lang.ClassNotFoundException: cpw.mods.fml.common.LoaderException
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at java.lang.ClassLoader.loadClass(Unknown Source)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	... 5 more
2014-01-12 19:23:18 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2014-01-12 19:23:18 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)
2014-01-12 19:23:18 [iNFO] [sTDERR] 	... 7 more

 

 

Am I doing something wrong? Is there anything that would make this GIT process more effective?

 

 

Link to comment
Share on other sites

Run the forge setup on each pc.  Forge caches the minecraft and forge libs in ~/.gradle. That's outside your git repo and not being synced to bitbucket.

 

 

You also may want to add all the forge files to your .gitignore file. You probably don't want to commit all of that stuff and clogg up your repo. All you really care about is your mod files in src/

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

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