Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DLC Queuing Produces Install Error #579

Open
acook opened this issue Aug 26, 2023 · 10 comments
Open

DLC Queuing Produces Install Error #579

acook opened this issue Aug 26, 2023 · 10 comments
Labels
bug Something isn't working

Comments

@acook
Copy link

acook commented Aug 26, 2023

When I clicked multiple DLCs to install, all will fail with errors either immediately or after the download completes. In addition the download bar will jump rapidly around.

There are two errors that pop up: "Failed to install" DLC and DLC "Corrupted"

Screenshot from 2023-08-26 09-44-53

Original DLC queuing PR: #395

@sharkwouter
Copy link
Owner

Thanks for reporting this. I tried to install DLC for AI War to see if I could reproduce this, but there I wasn't seeing this issue. Could you run Minigalaxy from the command line and see what the output is when you try this again? Also, which version of Minigalaxy is this?

@sharkwouter sharkwouter added the waiting for input Something important is stil missing label Oct 3, 2023
@acook
Copy link
Author

acook commented Oct 4, 2023

Version 1.2.5. I also saw the same issue with Battletech.

I'll see if I can replicate it with a non-Paradox game as well.

@NonMeme
Copy link

NonMeme commented Dec 19, 2023

Just letting you know, I had an error installing a Stellaris DLC pack last year and a new one now where I cannot get the whole game to install. This one seems to be kind of finicky with MG.

Your error messages are completely different than mine, so I cannot quite help other than saying that.

@sharkwouter
Copy link
Owner

Thanks for updating @NonMeme, that's appreciated. What error message do you get?

@NonMeme
Copy link

NonMeme commented Jan 19, 2024

Thanks for updating @NonMeme, that's appreciated. What error message do you get?

These. And I've tried to reinstall the game again off and on this month and last year too. It says on the Minigalaxy menu "in queue" and never goes to downloading.

@GB609
Copy link
Collaborator

GB609 commented Dec 2, 2024

About the jumping around of the progress bar: I've had the same. This happens when multiple large files are downloaded for a game, e.g. for some more recent windows games.
Cause:
Downloads for all files are started in parallel and download_manager reports progress for each file individually whenever a chunk is downloaded.
A percentage is calculated for the file which somehow tries to also consider that there are multiple files: file% * filenum / filecount. When there are 3 files, the first one thus is mapped 0-30, the second 30-60 etc. This value is simply passed through to gametile.set_progress. This sets the actual bar according to the last value received. This could work in theory, if the downloads were sequential. But they are not.

I see 2 ways to fix this:

  1. Make downloads sequential
  2. Let each download report progress in bytes and calculate the total percentage in gametile.set_progress which must keep track of current and total size per file.

@sharkwouter sharkwouter added bug Something isn't working and removed waiting for input Something important is stil missing labels Dec 5, 2024
@sharkwouter
Copy link
Owner

This could be related to the wine in the prefix not being used to install the dlc, but the system's wine instead. That is if you do not have Innoextract installed anyway.

@GB609
Copy link
Collaborator

GB609 commented Dec 5, 2024

I think the original error showed an .sh script, meanings its a linux game.
But i also get a lot of corrupted downloads in general. Could there be an issue with how downloaded chunks are consumed?

@sharkwouter
Copy link
Owner

Good point.

Yeah, the corrupted downloads are a separate issue. Sometimes resuming a download after restarting Minigalaxy corrupts it. I think I can fix that.

@GB609
Copy link
Collaborator

GB609 commented Dec 13, 2024

Small update about the download corruption that happened for me:
It appears i had a faulty combination of BIOS Firmware and RAM which also got me major issues when upgrading my system with pacman.
Since I upgraded the BIOS of my gaming rig, the download corruption has mostly disappeared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants