Jump to content

[1.12.2] `--refresh-dependencies` Never Works [SOLVED]


Recommended Posts

Posted (edited)

Hello. This is a problem unique to me I find on my dev team, so I'm pretty sure it's just a problem with either a : my gradle setup, b : my java setup, or c : just my system in general.

 

Whenever I try to reload the dependencies in our mod's build.gradle file, the command prompt reports success, but the dependencies either aren't added at all, or if they're already there, they aren't updated. I usually need to end up packaging what I have, and getting the correctly updated source from another team member. 

 

Does anyone know what possible causes for this exist, and any solutions for proposed cause?

 

(Again, everyone else can refresh and update it fine, so I'm 99% that it isn't a problem with the build.gradle, but I'll link it anyways: https://github.com/CammiePone/Voidaic-Arcania/blob/master/build.gradle)

Edited by ModMCdl
solved

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted

You should try gradle cleanCache and if that doesn’t work manually delete your master gradle cache at ~/gradle

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
16 hours ago, Cadiboo said:

You should try gradle cleanCache and if that doesn’t work manually delete your master gradle cache at ~/gradle

Sorry for the delayed reply. 

 

Neither of those solutions worked. However, after clearing the cache, CMD threw up a whole lot of "expired" or "invalid" cookie errors, yet still managed to complete successfully. 

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted

I'd try more things and offer more information, but I really am lost here. After trying to crack it for most of today, I still have no idea what the problem is, as it is an isolated incident on the team for me and me alone. I've rebuilt my dev environment several times, and cross-checked the build.gradle as well, and I can't find anything. 

 

 I've spoken with other members of my dev team to try and see what they did to get it working, but all of them said "it just worked for them," so I really can't offer much more.

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted

What IDE do you use?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
1 minute ago, Cadiboo said:

What IDE do you use?

Eclipse

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted (edited)

What happens when you

- move eclipse to a new dummy workspace

- close eclipse

- run gradlew cleanCache

- delete your master gradle cache in your home folder

- delete the project folder completely

- download the appropriate Forge MDK

- do the setup in the new MDK (gradlew sDw & eclipse)

- open eclipse and set its workspace to the new MDK’s workspace (dont select the /eclipse folder as the workspace, select the MDK folder as the workspace) I always got confused if I should launch the project in /eclipse or the root of the MDK

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
29 minutes ago, Cadiboo said:

What happens when you

- move eclipse to a new dummy workspace

- close eclipse

- run gradlew cleanCache

- delete your master gradle cache in your home folder

- delete the project folder completely

- download the appropriate Forge MDK

- do the setup in the new MDK (gradlew sDw & eclipse)

- open eclipse and set its workspace to the new MDK’s workspace (dont select the /eclipse folder as the workspace, select the MDK folder as the workspace)

Setting the workspace to the MDK rather than /eclipse results in an empty workspace, and won't allow me to import the project because "the project already exists in the workspace." Why shouldn't I set it up in the /eclipse directory?

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

Posted

Okay, I finally figured it out with help from MDC. It's not the best way to do it, but it's the only way I've found so far that works.

 

If/when a dependency is added or updated, I need to:

  1. push all my changes to a branch of the git repo, (git checkout -b new_branch_name, then commit and push)
  2. delete everything in the folder except for my .git folder,
  3. unpack the forge mdk in the empty folder,
  4. hard reset my local repo to the master branch of the git repo, (git reset --hard origin/master)
  5. run gradlew setupDecompWorkspace eclipse
  6. grab whatever necessary changes from your previous code in the new branch
  7. launch eclipse in a new workspace located in the /eclipse folder

I was told by someone else that the /eclipse folder is already all set up with the project files for eclipse so that you do not need to import the project afterwards (which always causes problems).

 

For those having this problem in the future: if you're not using git for your project, you can just copy the /src folder to a safe location to save your work, and replace it when you've rebuilt the environment.

Follow these rules when talking to me, and we'll get along fine.

1).I know Java fairly well. I don't know as much about modding. They are not the same, don't compare them.

2). I consider myself to always be learning. I make mistakes, you make mistakes. Who doesn't?

3). Insult me, and I will leave the thread. I have a real life, I don't have time to throw petty insults in a Minecraft Modding forum.

 

ModMCdl - Co-Founder and Director of Design for Artemis Game Studios

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

    • When I first heard about Bitcoin back in 2018, I was skeptical. The idea of a decentralized, digital currency seemed too good to be true. But I was intrigued as I learned more about the technology behind it and its potential. I started small, investing just a few hundred dollars, dipping my toes into the cryptocurrency waters. At first, it was exhilarating to watch the value of my investment grow exponentially. I felt like I was part of the future, an early adopter of this revolutionary new asset. But that euphoria was short-lived. One day, I logged into my digital wallet only to find it empty - my Bitcoin had vanished without a trace. It turned out that the online exchange I had trusted had been hacked, and my funds were stolen. I was devastated, both financially and emotionally. All the potential I had seen in Bitcoin was tainted by the harsh reality that with decentralization came a lack of regulation and oversight. My hard-earned money was gone, lost to the ether of the digital world. This experience taught me a painful lesson about the price of trust in the uncharted territory of cryptocurrency. While the technology holds incredible promise, the risks can be catastrophic if you don't approach it with extreme caution. My Bitcoin investment gamble had failed, and I was left to pick up the pieces, wiser but poorer for having placed my faith in the wrong hands. My sincere appreciation goes to MUYERN TRUST HACKER. You are my hero in recovering my lost funds. Send a direct m a i l ( muyerntrusted ( @ ) mail-me ( . )c o m ) or message on whats app : + 1 ( 4-4-0 ) ( 3 -3 -5 ) ( 0-2-0-5 )
    • You could try posting a log (if there is no log at all, it may be the launcher you are using, the FAQ may have info on how to enable the log) as described in the FAQ, however this will probably need to be reported to/remedied by the mod author.
    • So me and a couple of friends are playing with a shitpost mod pack and one of the mods in the pack is corail tombstone and for some reason there is a problem with it, where on death to fire the player will get kicked out of the server and the tombstone will not spawn basically deleting an entire inventory, it doesn't matter what type of fire it is, whether it's from vanilla fire/lava, or from modded fire like ice&fire/lycanites and it's common enough to where everyone on the server has experienced at least once or twice and it doesn't give any crash log. a solution to this would be much appreciated thank you!
    • It is 1.12.2 - I have no idea if there is a 1.12 pack
  • Topics

×
×
  • Create New...

Important Information

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