OpenRCT2Launcher icon indicating copy to clipboard operation
OpenRCT2Launcher copied to clipboard

Invalid Download

Open FlightMS opened this issue 2 years ago • 6 comments

I've tried to download the newest version of OpenRCT2, but after the download seems to be completed, I get a "Invalid Download" error

Screenshot 2022-12-14 210007

FlightMS avatar Dec 14 '22 20:12 FlightMS

Has there been any resolution to this issue? I've been having the same problem. I disabled the firewall, but it still happens.

useranon404 avatar Jan 07 '23 15:01 useranon404

I've got the same issue, only with the Release build. Develop build is downloading fine.

orffen avatar Feb 12 '23 22:02 orffen

I think this is caused by the OpenRCT2 website. The Release download page has the Windows builds duplicated, with 2 different file hashes. The launcher doesn't seem to handle this and so is likely failing the file hash check.

orffen avatar Feb 12 '23 22:02 orffen

Issue still persist. Any fix possible ? This repository is dead ?

guillaumecardon avatar Mar 13 '23 07:03 guillaumecardon

I think this is caused by the OpenRCT2 website. The Release download page has the Windows builds duplicated, with 2 different file hashes. The launcher doesn't seem to handle this and so is likely failing the file hash check.

The OpenRCT2.org REST API server returns wrong file hashes and file sizes to the launcher, causing the launcher to throw "Invalid Download Size" and "Invalid Download Hash" errors.

The problem might be related to this issue https://github.com/Limetric/OpenRCT2.org/issues/296. This could be probably fixed when this issue is resolved.


I don't think there's a proper way of handling this. You can get the file size by using GitHub's REST API. Regarding file hashes, besides OpenRCT2.org's REST API, there's no real way of fetching the corresponding file hash as a source of truth. This has to be fixed either in the OpenRCT2.org REST API, or the community should consider adding file hashes to the releases' file assets on GitHub.

EDIT: Some other suggestions that crossed my mind:

  • Of course, you could add an option to ignore file size and hash checks when downloading releases, with a disclaimer that using this option is strongly discouraged.
  • We could add a dropdown menu in the options window containing a list of available releases to download in case you want to use a different release version instead. However, this won't fix the issue.

kereis avatar Mar 15 '23 19:03 kereis

The release version has "Invalid download", but the Development version doesn't throw error but the download never start and the Play button stay disabled.

mrleblanc101 avatar Mar 18 '23 00:03 mrleblanc101