Jump to content

Recommended Posts

Posted

Hello. I am new to modding and following a tutorial for minecraft 1.8. The thing is, I can't even setup the forge gradle files because it is unsuccessful when I run the command:

 

gradlew setupDecompWorkspace --refresh-dependencies

 

I type it exactly as it is written here in a cmd prompt I opened inside the extracted forge folder. Note that I did place the extracted forge and eclipse folders under the same parent folder. The error message I'm getting after the "Powered by MCP" stuff is:

 

:extractMcpData

:getVersionJson

:extractUserdev

:genSrgs SKIPPED

:extractNatives

:getAssetsIndex

: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 FAILED

 

FAILURE: Build failed with an exception.

*What went wrong:

Execution failed for task ':mergeJars'.

> java.util.zip.ZipException: error in opening zip file

 

 

Then it suggests I try running with stacktrace, which I've tried but like I said, I'm new to modding so I don't understand any of it.

 

The strange thing is that when I follow the tutorial and do the same exact command for forge 1.7.10, it works perfectly. It was fine until the tutorial started using methods that were newly implemented in 1.8. Sometimes I also get the same error but with the ":splitServerJar" process. What do these errors mean, and how can I fix? Thanks for any advice.

 

 

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

May I just ask why you're passing the arguments to refresh the workspace if this is the first decompilation?

 

Also... may seem like an obvious and redundant question but always safer to ask... have you got the JDK?

Posted

I was just following the tutorial to the letter hoping I had spelled it wrong the first time or something. I've tried several times in 1.8 with no luck. And yes I've installed the jdk 1.8_91 for the correct windows x64. I even did the javac command to check and it came out fine.

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

If you have never decompiled your project file before, you don't need to refresh any dependencies.

 

Also, ensure you're opening the Command Prompt from WITHIN the main folder for your mod, otherwise it won't make any of the necessary files.

Posted

So, if I'm to be using the "eclipse" folder within the "forge" unpacked folder, I need to do the command:

 

gradlew setupDecompWorkspace

 

within the "eclipse" folder?

 

(What I mean by that is when I pull up eclipse, the directory I choose on the very first window is the eclipse folder within the forge. And yes I've unpacked both the ZIPs.)

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

Ok, I just tried running it from the eclipse window and it didn't recognize the command. Here are my folder hierarchies:

 

Desktop/Programming/Eclipse

Desktop/Programming/Forge-1.8-11.14.3.1502-src

 

(both of these unpacked from the original downloaded zip files)

 

My original attempt was to go into the Forge folder mentioned above and run the command.

 

Also, I just noticed, the MCP data version reads: snapshot_20141130. Don't know if that's useful or not.

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

Create a seperate folder for all your individual mod items (as it's good practice and you can rinse and repeat from the forge folder you unzipped) and copy just the folders and files (excluding text files) into that. In that main folder where .gradlew exists, shift right click and open your command window.

 

run gradlew setupDecompWorkspace

 

run gradlew eclipse

 

Done.

Posted

Forgive me if I sound ignorant, I just want to make sure I understood you clearly. You said to create a separate folder for my mod stuff. Is this within the forge folder, or the programming folder (would it be Desktop/Programming/forge-1.8-11.14.3.1502-src/modstuff or would it be Desktop/Programming/modstuff)?

 

Also, the command should still be run from the forge folder?

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

It'll be wherever you want it to be.

 

My Mod for example is in C://Users/<myusername>/Desktop/<mymodname>/

 

All the files relevant to that mod and that mod alone reside in there. It has its own decompiled workspace and eclipse folder. All I do is copy over the necessary forge folders and gradle files.

Posted

Ok, I copied all the files from the forge folder to a new folder on my desktop for the mod, but I've now tried running the cmd prompt from both folders (where .gradlew exists) and still it fails the "mergeJars" process.

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

I tried again.

1. I downloaded the recommended version of Forge mdk. (forge-1.8-11.14.4.1563-mdk)

2. I extracted it into the Programming parent file alongside eclipse (within its own folder)

3. I copied the contents into a folder separate for the mod. (my testmod folder)

4. I opened the testmod folder and ran the command: gradlew setupDecompWorkspace

5. Step four failed, so I tried the command in the original forge extracted folder. Still failed. Same error message too.

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

Okay. Reinstalled eclipse, forge, and jdk. All correct versions:

Eclipse IDE for Java EE Developers Windows x64.

forge-1.8-11.14.4.1563-mdk.

jdk-1.8_92 windows x64.

 

SAME ISSUE. This is getting frustrating cause I've had this problem for the past week. Tried googling it, there isn't anything detailing this problem. You've been helpful and I appreciate it. Do you have any more suggestions, or a site you can link me that'll help?

~ Do not go where the path may lead, go instead where there is no path and leave a trail.

--Ralph Waldo Emerson

Posted

-Extract minecraftforge zip-mdk or zip-src file.

-Open command window there.

-type: "gradlew setupDecompWorkspace eclipse"

-when finished, then, but only then and not before, open the project in eclipse

(workspace directory: eclipse folder in extracted zip)

-start programming!

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 🔻 SERVER IP: 90.146.113.53 Watch the Server-Trailer now!     ArenaSMP is a brand new minecraft survival server combining the vanilla survival experience with the following exciting enhancements: In the PVE Arena, combat skeletons whom will when defeated by the player reward them with money which can be spent to purchase ranks with cool permissions such as disguising as a mob, setting multiple homes, accessing the enderchest by command and many more! To enhance your gameplay there are few tough named skeletons with a minor percent chance to drop highly enchanted tools when defeated! But that isn't all, theres a whole world dedicated to bring you the most exciting minecraft experience you've ever had. The treasurehunt world, a place made of massive scary abandoned mineshafts and underground ruins, is populated by very though skeletons and zombies guarding the most powerful treasures including armor and weapons with unique enchantments that will change the way you progress in survival forever! Some secret places hiding the most powerful treasures are difficult to find, only those who look behind every path and corner where nobody else would look might get the chance becomming an undefeatable GOD. The Enderdragon is yet alive, will you be the one to hunt it down first? Will you become the next GOD in arenasmp? Join now! As a bonus, the first 5 players joining will instantly recive a free rankup! What does ArenaSMP offer exactly? • Vanilla like Survival experience, Nether and End World • Hub with portals to various locations • PVE Arena • Treasurehunt World with many secrets • Powerful Hidden Gear • Ranks to be purchased with ingame-money • Landprotection for all players • Players with any minecraft version can join • Shields are disabled, we use the 1.8 combatsystem including sword blocking • Change your skin with the /skins command • Creepers don't destroy blocks and Phantoms are disabled • Defeated skeletons reward the player with ingame-money • Anticheat enabled • Survival World will never reset • Automatic Daily Server Backups Watch the Server-Trailer now! https://www.youtube.com/watch?v=xl5GfTizasI 🔻 SERVER IP: 90.146.113.53
    • I'm simply trying to start up a forever world with mods, but I don't understand what this crash report means. Can I get someone to diagnose the problem? https://pastebin.com/yRsq3C2A
    • I've successfully setup multi mc with two instances and i've split the audio going into my headset and another going into my quest, it works perfectly although whenever i tab out into instance 1 (pc) and go into instance 2 (vr) i can hear the pc audio still and i can also hear the vr audio but only when i am focused on the window it instantly goes mute when i lose focus im not sure what to do i've tried messing around with the sound system classes in my client build but i cant get my gradle build to work i cant find a simple tweak for this version that solves this issue i just need instance 2 to constantly play audio regardless if im tabbed in or not
  • Topics

×
×
  • Create New...

Important Information

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