-
Notifications
You must be signed in to change notification settings - Fork 25
Upgrading forge and gradle #32
Description
Hi,
Forge had some bugs in it that prevented me from getting my mod working, and the solution was to upgrade forge to a newer version than the one included with 1.8. I've been attempting to get everything up and working, but the game crashes every time - all I get is:
Java HotSpot(TM) 64-Bit Server VM Warning: Using...
Error: Could not find or load main class GradleStart
Absolutely nothing after this.
I downloaded the forge 1.8-11.14.4.1563 mdk zip. Replaced the gradlew, gradlew.bat, gradle-wrapper.jar, and gradle-wrapper.properties files. I then tried copy-pasting the eclipse folder over.
The references still pointed to the old forge, so I deleted that reference and added the reference:
C:\Users\Dan.gradle\caches\minecraft\net\minecraftforge\forge\1.8-11.14.4.1563\snapshot\20141130\forgeSrc-1.8-11.14.4.1563.jar
I also renamed the forge-1.8-11.14.4.1563-mdk.zip to forge-1.8-11.14.4.1563-src.zip and put it in the packages/com.microsoft.minecraftmod.0.5.4.0/tools folder and added it to the project. Although, I could not figure out install.ps1 $forgeVersion=$project.Object.GetProjectProperty("MinecraftForgeVersion", 1)
Not really sure how to update this project property.
I updated the build.gradle file as below.
build.gradle.txt
(note this is still build.gradle - needed .txt to upload to github)
In the .gradle folder in the project, I added the 2.7 files generated as ForgeGradle:2.0 required a newer version.
I found: build/tmp/extracted/GradleStart.java
likewise: .gradle/caches/minecraft/net/minecraftforge/forge/1.8-11.14.4.1563/start/GradleStart.(class and java)
Everything is compiling fine. I just went from a running version of Minecraft to one that doesn't run because it can't find/load GradleStart. I am now thoroughly confused.
The only thing I can think of is that the GradleStart and GradleStartCommon may be different as gradle changed, but I would think that as I got everything, it should stay consistent.
It's also worth mentioning I have done numerous cleans/rebuilds from both visual studio and the command prompt.
So... any thoughts? What other steps are needed to upgrade Forge when using visual studio?
Thanks!
~Dan