HeroicGamesLauncher icon indicating copy to clipboard operation
HeroicGamesLauncher copied to clipboard

Can't import previously downloaded game from Amazon

Open DashingDave opened this issue 8 months ago • 15 comments

Describe the bug

I previously downloaded all of my games onto an external drive and moved to a new computer. Now I'm going through, one by one, to "reconnect" them. Games from GOG and Epic successfully import the old installs, but the Amazon games start... and then stop.

Add logs

https://0x0.st/8_QK.log

Steps to reproduce

  1. Go to any Amazon game in the Library
  2. Click on the Install icon
  3. Click on IMPORT GAME

Expected behavior

Previous download should connect to current Library and poster icon should change from grayscale to color.

Screenshots

No response

Heroic Version

Latest Stable

System Information

  • OS [e. g. "Ubuntu"]: macOS 15.4; M4 Mac Studio

Additional information

No response

DashingDave avatar Apr 07 '25 01:04 DashingDave

Could you also upload this file: /Users/dashing/Library/Application Support/heroic/GamesConfig/amzn1.adg.product.e13c50c9-d548-4e6f-a85a-7f70308279e8.log That'll be the import log file, which should contain some details on what has gone wrong

CommandMC avatar Apr 07 '25 17:04 CommandMC

I deleted all the Heroic files last night after having the issue, so I'll need to start up the app again tonight. I'll upload the pertinent log file should the importing process fail again.

I did notice that I had trouble with a single Epic game that wouldn't import, but the log didn't show an ERROR line like the Amazon import did.

I'll try an import for each type of game/service I have downloaded: Amazon (PC), Epic (Mac & PC), and GOG (Mac & PC). If I remember, I'll also try importing the one game that I was never able to download through Heroic (I copied the files from the PC install using Parallels) and a Legacy Games PC game.


Update: I've had to erase my Mac and start fresh, so I've been trying to deal with all that. Hopefully, I can reinstall and text Heroic within the next 2 days.

DashingDave avatar Apr 07 '25 17:04 DashingDave

This time around, using a fresh install on a VM, my attempt at importing an Epic game also failed. Here is the log file produced from Settings > Log > SHOW LOG FILE IN FOLDER: 2025-04-18T01_12_32-heroic.log

Two log files appeared in the folder you mentioned; here they are:

amzn1.adg.product.42611da8-7064-4bf0-83a7-9147add5b6d9.log

gog-redist.log

There was apparently no log file created for Epic.

DashingDave avatar Apr 18 '25 01:04 DashingDave

@imLinguin Probably want to look at that Nile log file

Looking at the code, it seems imports for Epic games indeed don't generate a log file at the moment. To work around this, you can manually run the import command in your Terminal application:

LEGENDARY_CONFIG_PATH="/Users/dave/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/arm64/darwin/legendary import d578a8f36f8c49dc8c952c30f7dd049f "/Volumes/Red/Epic Games/Windows/AKxolotlokDYC" --with-dlcs --platform Windows

CommandMC avatar Apr 18 '25 09:04 CommandMC

It seems we just need to update Nile, I'll tag a new release in a few days

imLinguin avatar Apr 18 '25 09:04 imLinguin

I was able to determine the issue with the latest Epic attempt: somehow, the .exe file for the game I was testing ...had disappeared from its folder. I have no idea what became of it, as I never actually go into the game folders themselves. The only reason I thought to think to look there was when one of the errors the CLI kept posting when I tried pasting in the code you mentioned said that there was no .......name.exe file at that location.

(I checked the Amazon game folders to see if something similar had happened, but the .exe files were in the correct places. That remains the one service that's not importing the downloaded games.

DashingDave avatar Apr 19 '25 01:04 DashingDave

I am currently also experiencing this issue. However, I am on Debian Sid. My Heroic install got borked so I completely reinstalled Heroic. I'm able to import all of my Epic games but the 5 Amazon games are not able to be imported. Attached is the nile log...

2025-05-11T18_45_54-nile.log

Desmo5574 avatar May 11 '25 18:05 Desmo5574

I'm not sure if it was supposed to , but I just wanted to note that the 2.17 update didn't fix the issue.

2025-05-25T14_50_07-nile.log

DashingDave avatar May 27 '25 14:05 DashingDave

Same for me as @DashingDave Just finished installing the 2.17.1 update and I'm not able to import the Amazon games. I deleted an Epic game from the library list and was able to import it again without issue.

Desmo5574 avatar Jun 05 '25 20:06 Desmo5574

Same issue here. When I import Amazon game "Dungeon of the Endless", it fails to import from the folder specified. Within the nile log file: INFO [CLI]: Searching for amzn1.adg.product.e9b762cd-e130-4c5b-aaf5-070d785d1cd2 INFO [IMPORT]: Verifying local files Traceback (most recent call last): File "nile/cli.py", line 354, in <module> File "nile/cli.py", line 343, in main File "nile/cli.py", line 302, in handle_import File "nile/utils/importer.py", line 76, in import_game File "nile/utils/importer.py", line 44, in verify_integrity File "nile/utils/importer.py", line 25, in get_patchmanifest KeyError: 'downloadUrls' [PYI-542:ERROR] Failed to execute script 'cli' due to unhandled exception!

Image

Logs: 2025-06-18T07_32_07-heroic.log 2025-06-18T07_32_07-nile.log

Bob837217 avatar Jun 18 '25 12:06 Bob837217

I debugged the issue in Nile 1.1.2 and reported on it here: https://github.com/imLinguin/nile/issues/60 This is also resolved with a quick test of the main branch. There needs to be a new release of nile incorporated into a build of Heroic.

Bob837217 avatar Jun 18 '25 16:06 Bob837217

This is a duplicate of issue: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/4055

Bob837217 avatar Jun 18 '25 16:06 Bob837217

Yeah, i'm unsure if heroic is using an older commit for that nile release, but i forked the nile repo and did github actions on the latest commit download here and put on AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32 which fixes the issue.

CourteousGeek avatar Jun 19 '25 02:06 CourteousGeek

I prefer to wait for the official flatpak update on linux than download random windows exes? 🚱

Bob837217 avatar Jun 19 '25 07:06 Bob837217