mojira.dev
MCL-12570

Versions which inherit and re-define a library cause corrupted downloads

Potential fixes

  • Download the file that's said in the "URL" and place it in the folder identified by "Path"

  • Run the vanilla version of the game for that version, then run the modded version.

If you need additional help, please contact 💬 Community Support.

Attempting to use the following json as a version (provided by Minecraft Forge) results in several files being corrupted on their download which results in their hashes being invalid.

If a library is defined as required in the root version and a version json inherits from it and re-declares the library, the file downloads improperly and fails to launch. 

If an item is declared as a library in both 1.12.2 and a child, then it seems this behavior occurs. This also has occurred with 1.7.10 Forge files.

 

Linked issues

Attachments

Comments 19

From what I've seen it appears that during the download for a library defined in both parent and child a second copy of the library gets concatenated with the first one

This issue can be worked around by installing the most recent version of 64 bit java, and then instructing Minecraft to use that one instead. 

That doesn't appear to be the case for me, John.
On my end it appears to be an issue with 1.12.2 and older, perhaps a collision between older(i.e. previously-built Forge version jsons) and current(updated by launcher) version formats?

@John Possen could you please tell me how to do that? I've been having this issue and it's very annoying.

How do you instruct minecraft to use the java instead?

9 more comments

I've had the same behaviour with the following config for Forge 1.11.2:

[media]

The error message is: 

{{Failed to download file, the file contents differ from what was }}
{{ expected. Name: jopt-simple-4.6.jar URL: }}
{{ https://libraries.minecraft.net/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar}}
{{ Filename on disk: jopt-simple-4.6.jar Path: }}
{{ C:\Users\MY_USER_NAME\AppData\Roaming\.minecraft\libraries\net\sf\jopt-simple\jopt-simple\4.6\jopt-simple-4.6.jar}}
{{ Exists: File}}

This is resolved by either:

a) downloading jopt-simple-4.6.jar from the URL supplied, and placing in the path listed; or

b) installing vanilla 1.11.2 first, launching it, and then trying forge1.11.2-13.20.0.228 again.

 

I tried uninstalling and installing the link to the folder where it asks, however, upon doing so, it deletes, but when trying to reopen a modpack (specifically on Twitch), it just adds the old jna file back, as well as keeping the downloaded on I had previously added. Causing massive frustrating as I've been trying for days now to get it to to work. If anyone has any other work arounds please let me know.

Failed to download file, the file contents differ from what was expected.
Name: jna-4.4.0.jar
URL: https://libraries.minecraft.net/net/java/dev/jna/jna/4.4.0/jna-4.4.0.jar
Filename on disk: jna-4.4.0.jar
Path: C:\Users\USERNAMEHERE\Twitch\Minecraft\Install\libraries\net\java\dev\jna\jna\4.4.0\jna-4.4.0.jar
Exists: File

I have same issue :

Failed to download file, the file contents differ from what was expected.
Name: jinput-platform-2.0.5-natives-linux.jar
??URL: https://libraries.minecraft.net/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar??
Filename on disk: jinput-platform-2.0.5-natives-linux.jar
Path: /home/bensuperpc/.minecraft/libraries/net/java/jinput/jinput-platform/2.0.5/jinput-platform-2.0.5-natives-linux.jar
Exists: File

alot of times makes the game unplayable and unable to launch this should be high priority and fixed immediately.

Hello everyone - I would be very much interested in reproduction steps for this bug. Preferably not via applications or third parties that are modifying the game and/or the launcher!

migrated

(Unassigned)

Community Consensus

whiteboard

Retrieved