Jump to content

Recommended Posts

Posted

I'm trying to export my mod, but when I run "gradlew build" it ends up crashing with an exception.

 

build.gradle:

  Reveal hidden contents
 

 

error stack trace:

 

  Reveal hidden contents
1

 

Posted

I get the same error.

 

I dug into it some, I think they fubar'd the contents of http://files.minecraftforge.net/maven/net/minecraftforge/forge/json, which gets downloaded every build to figure out what forge versions are available. Currently, the structure of the file looks OK, but all the versions are 0...

json.txt

Posted

I have found a temporary workaround for this issue.

Navigate to your 'ForgeVersion.json' which you can find under %userprofile%\.gradle\caches\minecraft\   (Windows)

In this file you need to replace a "0" underneath whichever version of Minecraft your mod uses, with the correct forge release version.

For example I am using MC 1.12.2-14.23.5.2814, so I end up with:

"1.12.2": [
      14.23.5.2814,
      0,

      ...

 

You can find out which version your mod needs in the build.gradle file.

Once you have done this set the ForgeVersion.json to read only, to prevent the update from overwriting your changes.

However, make sure you remeber to remove the read only property when this issue is fixed!

 

  • Like 1
Posted

I'm having the same issue with running "gradlew setupDecompWorkspace" so I went to try out your workaround but all I see in the ForgeVersion.json under "1.12" is exactly 310 zeros. Is the file supposed to be filled with zeros like that?

Posted (edited)
  On 2/15/2019 at 9:01 AM, Kurast69 said:

I have found a temporary workaround for this issue.

Navigate to your 'ForgeVersion.json' which you can find under %userprofile%\.gradle\caches\minecraft\   (Windows)

In this file you need to replace a "0" underneath whichever version of Minecraft your mod uses, with the correct forge release version.

For example I am using MC 1.12.2-14.23.5.2814, so I end up with:

"1.12.2": [
      14.23.5.2814,
      0,

      ...

 

You can find out which version your mod needs in the build.gradle file.

Once you have done this set the ForgeVersion.json to read only, to prevent the update from overwriting your changes.

However, make sure you remeber to remove the read only property when this issue is fixed!

 

Expand  

I have tried this, but Forge says that it can't cast string with multiple dots to int, if i quoted the version it also tries to parse an int from this string

Edited by Lord_Faceless
misscribed
  • Like 1
Posted

Closing the loop on this: At some point (I don't know exactly when), this problem got resolved. Although the ForgeVersion.json file is still filled with zeros, so I guess there's a different approach now...

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



×
×
  • Create New...

Important Information

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