Jump to content

Recommended Posts

Posted

First, I know most everyone has upgraded at this point.  I jumped over to Arma 2 modding for a bit, but my kids wanted me to expand on some things, so i'm getting back into it.  That all being said, I want to make one more version for them on 1.7.2 before upgrading.

 

My setup worked just fine back in October 2014.  I haven't changed anything on the system. 

 

It still runs fine in Eclipse, but when i run 'gradle build" in the individual project folders, it goes nuts.

 

 

  Reveal hidden contents

 

 

My setup is a bit unusual.  I have several different mods setup in different projects with one core dependency mod in eclipse, so that my core stuff propagates through them all.  Works well and saves a lot of time.

 

I've tried to compile all the projects with the same result.  In this case, i was in the 'Dimension_Multiplyer' folder and ran the 'gradle build'.

 

Here is the 'build.gradle' file for that folder.

 

 

  Reveal hidden contents

 

 

This is driving me nuts and I've got a 8 and 9 year old dying to play with the new helicoptors I built for them.  Thanks ahead of time for anyone that can help.

 

 

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

I went ahead and used the tutorials to setup multi project forge the way that was recommended with.

 

 

http://www.minecraftforge.net/forum/index.php/topic,14048.0.html

 

I had a vague hope that would fix everything.  Nope.

 

The errors were the same, but my build file is different now.  Including the newer one.

 

 

  Reveal hidden contents

 

 

Really hoping someone can help me in the right direction.  Fairly frustrated.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

After playing around, I'm convinced something changed in Gradle on how it used external projects in dependencies.  Trying to read up, but nothing is working the way the webpages look.

 

Hoping someone can look at what i've posted above and tell me the right way to put it in the build file.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Read through a TON of gradle sites.  I've got a fair amount of programming experience, but a lot of the discussions seemed to be in Greek. 

 

I got this working.  Sort of.  Still have one annoying problem.

 

So for both of the projects 'Custom NPC' and 'Dimension Multiplyer', I added a file into their project folder called 'settings.gradle'.  The contents of that file are as follows:

 

  Reveal hidden contents

 

 

In each of the project folders I added the following:

 

  Reveal hidden contents

 

 

At first this seemed like it worked.  The project 'Dimension Multiplyer' worked perfectly.  Loaded it on my server and client and life was good.

 

Then i tried the same thing with 'Custom NPC' and PROBLEM.  When i tried to run the server or client, it told me 'CD_Utilities' was missing.

 

Both are build the same way, but for some reason, 'Custom NPC' didn't include 'CD_Utilities' into itself in the build.

 

I looked at the following bit of code to try and fix this:

 

  Reveal hidden contents

 

 

The client loaded fine without crash, however the server told me it was missing all the blocks/items in my mods and freaked out.

 

I put a backup in place and didn't mess with that again.  However, from reading it seems like it is the ticket.

 

For now, I'm just putting jars for 'Custom NPC', 'Dimension Multiplyer', and 'CD_Utilities' into client and server mod folders and things work. 

 

However, i don't want to keep doing that. I want to just be able to put in 'Custom NPC' and 'Dimension Multiplyer'

 

'CD_Utilities' is really just common code that I want to suck in when building each Jar so I don't have to manually keep it all the same everywhere.

 

Can anyone help me figure this out.  I'm fairly annoyed with the whole thing at this time and don't really want to mess anything up.

 

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Did some digging and I still can't determine the cause of the randomness previously mentioned.

 

However, I did find the following command that I think will solve my issue:

 

apply plugin: 'war'

 

I won't be home until Thursday to give it a try, but would appreciate anyone's advice that is more experienced with Gradle.

 

EDIT:  Scratch that.  'war' is for a web app.  Now to search for something else.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Ok,

finally put the right words in the web search.  Too many junk post out there.

 

https://github.com/MinecraftForge/ForgeGradle/wiki/Dependencies

 

Which says to do:

 

 

  Reveal hidden contents

 

 

Apparently, when I tried above, it was the right thing to do.  I must have screwed something else when I used it above.

Long time Bukkit & Forge Programmer

Happy to try and help

Posted

Ok, scratch that.  Using that line tries to put Forge into it and everything freaks out.

 

Could still use some help if anyone knows how to do this.

Long time Bukkit & Forge Programmer

Happy to try and help

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

    • Hi! I've been running a server on Minecraft using the Prodigium Reforged pack on curse forge using the site exaroton. It was working fine until randomly encountering this error every time anyone tries to connect to the server, I've already reloaded backups and deleted json files  Here is the crash report https://mclo.gs/EwKw51q. Thanks for the help in advance
    • nevermind i figured out the issue  
    • I was trying to host a server with the 1.21.1 cobbleverse forge mod, but when I tried starting it, it kept giving me this error. Crash report here: https://pastebin.com/AsE1X5QY   Thanks
    • This mod lets you choose an element power, Earth, Wind, Fire, or Water. Also two secret element powers Light and Darkness. Each power gives good a bad things, Earth lets you dig through anything but ores and bedrock, Wind lets you jump high in the air every three seconds, Fir lets you throw fire balls and you are immune to any flame/lava but you can't go into water or else you take damage, Water you swim and break blocks under water quicker and you can get rid of water like a sponge but you take more damage when in fire/lava, Light makes you faster at day but slower at night you are able to throw light spears that do four hearts and can go through any armor, Darkness let's you be faster at night but slower at day mobs don't harm you but peaceful mobs run away from you you are able to spawn ink creatures around you that are like dogs but are stronger. another thing in the mod is that there are other dimensions that can get you ores to make better armor and weapons, each dimensions are are good for a certain element though each dimension has a boss depending on which dimension one dimension has more than one boss, each elements are required to defeat the bosses with each others help.
    • Read the posts above yours, it tells you exactly how to do it, instructions are the same if it's making a forge installation or a vanilla one, just make a new folder for the game directory.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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