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

    • Keep on using the original Launcher Run Vanilla 1.12.2 once and close the game Download Optifine and run optifine as installer (click on the optifine jar) Start the launcher and make sure the Optifine profile is selected - then test it again  
    • Hi everyone, I’m hoping to revisit an old version of Minecraft — specifically around Beta 1.7.3 — for nostalgia’s sake. I’ve heard you can do this through the official Minecraft Launcher, but I’m unsure how to do it safely without affecting my current installation or save files. Are there any compatibility issues I should watch out for when switching between versions? Would really appreciate any tips or advice from anyone who’s done this before! – Adam
    • hello! i was trying to recreate item-in-hand feature for my custom mob. i figured out that my mob needs a custom iteminhandlayer. i created it - but the main problem is.. well.. you can see all on screenshots any idea how i can fix that? is there any implemented method to render the item perfect to hand? public void render(@NotNull PoseStack pPoseStack, @NotNull MultiBufferSource pBufferSource, int pPackedLight, @NotNull TuneGolemRenderState pRenderState, float pYRot, float pXRot) { ItemStackRenderState item = pRenderState.heldItem; if (!item.isEmpty()) { pPoseStack.pushPose(); ModelPart leftArm = this.getParentModel().leftArm; pPoseStack.translate(0.35,0.5,-1.25); pPoseStack.mulPose(Axis.XP.rotationDegrees(180.0F)); pPoseStack.mulPose(Axis.YP.rotationDegrees(90.0F)); leftArm.translateAndRotate(pPoseStack); // pPoseStack.translate(0,0,0); leftArm.translateAndRotate(pPoseStack); if (TuneGolemRenderState.hornPlaying) { pPoseStack.translate(0, -0.5, 0.65); pPoseStack.scale(1.25F,1.25F,1.25F); } // Minecraft.getInstance().player.displayClientMessage(Component.literal(leftArm.xRot + " " + leftArm.yRot + " " + leftArm.zRot), true); item.render(pPoseStack, pBufferSource, pPackedLight, OverlayTexture.NO_OVERLAY); pPoseStack.popPose(); // -1.0F, -2.0F, -3.0F } }  
    • I checked for any driver updates, but no new updates were found
    • Maybe it refers to an issue with the system - check for CPU/GPU driver updates
  • Topics

×
×
  • Create New...

Important Information

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