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

[GOG][Linux] Imperator Rome doesn't show image. Thinks there is an update #2237

Closed
waltercool opened this issue Dec 19, 2022 · 15 comments · Fixed by #2950
Closed

[GOG][Linux] Imperator Rome doesn't show image. Thinks there is an update #2237

waltercool opened this issue Dec 19, 2022 · 15 comments · Fixed by #2950

Comments

@waltercool
Copy link

waltercool commented Dec 19, 2022

Describe the bug

Using Heroic Games with GOG integration, there are two issues related to Imperator Rome.

1.- No image shown. [Minor]
2.- Keeps saying there is an update, when it's not. [Medium]. Trying to update will always fail.

Installed version is 2.0.3 RC2. Latest version is 2.0.3 RC2 according to GOG.

Using Heroic Version 2.5.2

Add logs

(13:53:34) INFO:    [Legendary]:        Refreshing library...
(13:53:40) INFO:    [Gog]:              Found 1 game(s) to update
(13:53:57) INFO:    [Backend]:          Using cached HowLongToBeat data for Imperator Rome 
(13:53:57) INFO:    [Gog]:              Getting game metadata: /tmp/.mount_HeroiccVt94h/resources/app.asar.unpacked/build/bin/linux/gogdl info 1198397489 --token <redacted> --lang=en-US --os windows
(13:53:58) INFO:    [Gog]:              Getting game metadata: /tmp/.mount_HeroiccVt94h/resources/app.asar.unpacked/build/bin/linux/gogdl info 1198397489 --token <redacted> --lang=en-US --os windows
(13:54:12) INFO:    [DownloadManager]:  1198397489 added to download manager queue.
(13:54:12) INFO:    [Gog]:              Getting game metadata: /tmp/.mount_HeroiccVt94h/resources/app.asar.unpacked/build/bin/linux/gogdl info 1198397489 --token <redacted> --lang=en-US --os windows
(13:54:15) INFO:    [Gog]:              Updating 1198397489: /tmp/.mount_HeroiccVt94h/resources/app.asar.unpacked/build/bin/linux/gogdl update 1198397489 --platform linux "--path=#########/ImperatorRome" --token <redacted> --with-dlcs --lang=en-US
(13:54:20) INFO:    [Gog]:              Progress for 1198397489: 0%/0.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:54:21) INFO:    [Gog]:              Progress for 1198397489: 0%/16.07MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:54:22) INFO:    [Gog]:              Progress for 1198397489: 0.9%/48.20MB/00:03:40 Down: 0MB/s / Disk: 0MB/s
(13:54:23) INFO:    [Gog]:              Progress for 1198397489: 2.7%/89.27MB/00:01:48 Down: 0MB/s / Disk: 0MB/s
(13:54:24) INFO:    [Gog]:              Progress for 1198397489: 5%/133.90MB/00:01:16 Down: 0MB/s / Disk: 0MB/s
(13:54:26) INFO:    [Gog]:              Progress for 1198397489: 9.9%/221.38MB/00:00:54 Down: 0MB/s / Disk: 0MB/s
(13:54:27) INFO:    [Gog]:              Progress for 1198397489: 12.4%/266.02MB/00:00:49 Down: 0MB/s / Disk: 0MB/s
(13:54:28) INFO:    [Gog]:              Progress for 1198397489: 14.9%/308.87MB/00:00:45 Down: 0MB/s / Disk: 0MB/s
(13:54:30) INFO:    [Gog]:              Progress for 1198397489: 19.8%/399.92MB/00:00:40 Down: 0MB/s / Disk: 0MB/s
(13:54:31) INFO:    [Gog]:              Progress for 1198397489: 22.4%/440.98MB/00:00:38 Down: 0MB/s / Disk: 0MB/s
(13:54:32) INFO:    [Gog]:              Progress for 1198397489: 24.7%/464.19MB/00:00:36 Down: 0MB/s / Disk: 0MB/s
(13:54:33) INFO:    [Gog]:              Progress for 1198397489: 26%/498.11MB/00:00:37 Down: 0MB/s / Disk: 0MB/s
(13:54:34) INFO:    [Gog]:              Progress for 1198397489: 27.9%/539.18MB/00:00:36 Down: 41.02MB/s / Disk: 0MB/s
(13:54:35) INFO:    [Gog]:              Progress for 1198397489: 30.2%/582.02MB/00:00:34 Down: 0MB/s / Disk: 0MB/s
(13:54:37) INFO:    [Gog]:              Progress for 1198397489: 35%/660.58MB/00:00:31 Down: 35.67MB/s / Disk: 35.67MB/s
(13:54:38) INFO:    [Gog]:              Progress for 1198397489: 37%/703.43MB/00:00:30 Down: 42.83MB/s / Disk: 0MB/s
(13:54:39) INFO:    [Gog]:              Progress for 1198397489: 39.4%/748.06MB/00:00:29 Down: 0MB/s / Disk: 0MB/s
(13:54:40) INFO:    [Gog]:              Progress for 1198397489: 41.9%/792.69MB/00:00:27 Down: 0MB/s / Disk: 0MB/s
(13:54:41) INFO:    [Gog]:              Progress for 1198397489: 44.4%/835.54MB/00:00:26 Down: 0MB/s / Disk: 0MB/s
(13:54:42) INFO:    [Gog]:              Progress for 1198397489: 46.8%/878.39MB/00:00:25 Down: 0MB/s / Disk: 0MB/s
(13:54:43) INFO:    [Gog]:              Progress for 1198397489: 49.2%/917.67MB/00:00:23 Down: 0MB/s / Disk: 0MB/s
(13:54:44) INFO:    [Gog]:              Progress for 1198397489: 51.4%/960.52MB/00:00:22 Down: 0MB/s / Disk: 0MB/s
(13:54:45) INFO:    [Gog]:              Progress for 1198397489: 53.8%/1003.37MB/00:00:21 Down: 0MB/s / Disk: 0MB/s
(13:54:46) INFO:    [Gog]:              Progress for 1198397489: 56.2%/1049.78MB/00:00:20 Down: 0MB/s / Disk: 0MB/s
(13:54:47) INFO:    [Gog]:              Progress for 1198397489: 58.8%/1094.42MB/00:00:18 Down: 0MB/s / Disk: 0MB/s
(13:54:48) INFO:    [Gog]:              Progress for 1198397489: 61.3%/1139.05MB/00:00:17 Down: 0MB/s / Disk: 0MB/s
(13:54:49) INFO:    [Gog]:              Progress for 1198397489: 63.8%/1183.69MB/00:00:16 Down: 0MB/s / Disk: 0MB/s
(13:54:50) INFO:    [Gog]:              Progress for 1198397489: 66.3%/1214.04MB/00:00:15 Down: 0MB/s / Disk: 0MB/s
(13:54:51) INFO:    [Gog]:              Progress for 1198397489: 68%/1260.46MB/00:00:14 Down: 0MB/s / Disk: 0MB/s
(13:54:52) INFO:    [Gog]:              Progress for 1198397489: 70.6%/1283.67MB/00:00:13 Down: 23.19MB/s / Disk: 0MB/s
(13:54:53) INFO:    [Gog]:              Progress for 1198397489: 71.9%/1328.30MB/00:00:12 Down: 0MB/s / Disk: 0MB/s
(13:54:55) INFO:    [Gog]:              Progress for 1198397489: 76.9%/1419.35MB/00:00:10 Down: 0MB/s / Disk: 0MB/s
(13:54:56) INFO:    [Gog]:              Progress for 1198397489: 79.5%/1465.77MB/00:00:09 Down: 0MB/s / Disk: 0MB/s
(13:54:57) INFO:    [Gog]:              Progress for 1198397489: 82.1%/1506.83MB/00:00:08 Down: 0MB/s / Disk: 0MB/s
(13:54:58) INFO:    [Gog]:              Progress for 1198397489: 84.4%/1555.04MB/00:00:07 Down: 0MB/s / Disk: 0MB/s
(13:54:59) INFO:    [Gog]:              Progress for 1198397489: 87.1%/1594.32MB/00:00:05 Down: 0MB/s / Disk: 0MB/s
(13:55:00) INFO:    [Gog]:              Progress for 1198397489: 89.3%/1638.95MB/00:00:04 Down: 0MB/s / Disk: 0MB/s
(13:55:01) INFO:    [Gog]:              Progress for 1198397489: 91.8%/1683.58MB/00:00:03 Down: 0MB/s / Disk: 0MB/s
(13:55:02) INFO:    [Gog]:              Progress for 1198397489: 94.3%/1728.22MB/00:00:02 Down: 0MB/s / Disk: 0MB/s
(13:55:03) INFO:    [Gog]:              Progress for 1198397489: 96.8%/1769.28MB/00:00:01 Down: 0MB/s / Disk: 0MB/s
(13:55:31) INFO:    [Gog]:              Progress for 1198397489: 0%/0.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:55:32) INFO:    [Gog]:              Progress for 1198397489: 0%/42.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:55:35) INFO:    [Gog]:              Progress for 1198397489: 0%/0.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:55:36) INFO:    [Gog]:              Progress for 1198397489: 0%/45.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:55:37) INFO:    [Gog]:              Progress for 1198397489: 11.4%/91.00MB/00:00:15 Down: 0MB/s / Disk: 0MB/s
(13:55:38) INFO:    [Gog]:              Progress for 1198397489: 23.06%/133.00MB/00:00:10 Down: 0MB/s / Disk: 0MB/s
(13:55:39) INFO:    [Gog]:              Progress for 1198397489: 33.7%/176.00MB/00:00:07 Down: 0MB/s / Disk: 0MB/s
(13:55:41) INFO:    [Gog]:              Progress for 1198397489: 55.49%/260.00MB/00:00:04 Down: 0MB/s / Disk: 0MB/s
(13:55:42) INFO:    [Gog]:              Progress for 1198397489: 65.88%/304.00MB/00:00:03 Down: 0MB/s / Disk: 0MB/s
(13:55:43) INFO:    [Gog]:              Progress for 1198397489: 77.03%/330.00MB/00:00:02 Down: 0MB/s / Disk: 0MB/s
(13:55:44) INFO:    [Gog]:              Progress for 1198397489: 83.62%/375.00MB/00:00:01 Down: 0MB/s / Disk: 0MB/s
(13:55:49) INFO:    [Gog]:              Progress for 1198397489: 0%/0.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:55:52) INFO:    [Gog]:              Progress for 1198397489: 0%/0.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(13:55:54) INFO:    [Frontend]:         Refreshing Library
(13:55:54) INFO:    [Gog]:              Getting GOG library
(13:55:54) WARNING: [DownloadManager]:  Updating of 1198397489 aborted!
(13:55:54) INFO:    [DownloadManager]:  1198397489 added to download manager finished.
(13:55:54) INFO:    [DownloadManager]:  1198397489 removed from download manager.
(13:55:55) INFO:    [Gog]:              Number of library pages: 2
(13:55:55) INFO:    [Gog]:              Getting data for page 2
(13:55:56) INFO:    [Gog]:              Saved games data
(13:55:56) INFO:    [Frontend]:         No cache found, getting data from legendary...
(13:55:56) INFO:    [Legendary]:        Refreshing library...
(13:56:04) INFO:    [Gog]:              Found 1 game(s) to update

Steps to reproduce

1.- Install Imperator Rome
2.- Check your latest version match with GOG.
3.- Check updates at GOG.
4.- Imperator Rome shows a new update
5.- Try to update.
6.- Update failed.

Expected behavior

No update should appear since it's latest.

Screenshots

Screenshot_20221219_140028
Screenshot_20221219_140054
Screenshot_20221219_140242

Heroic Version

Latest Stable

System Information

  • OS [e. g. "Ubuntu"]: Gentoo

Additional information

No response

@waltercool
Copy link
Author

Since last update, this game is no longer installable. "This game doesn't appear to be installable. Check downloadable content on https://gog.com/account"

Despite I can download and install the game manually.

@waltercool
Copy link
Author

OK, after debugging a while. I see differences over how Heroic Games and GOG gets this information.

For this game, GOGDL uses gamedb, which fails as you can see here:

https://gamesdb.gog.com/platforms/gog/external_releases/1198397489

In other hand, GOG website uses this URL to get the game information:

https://www.gog.com/account/gameDetails/1198397489.json

Sadly can't share the information here because it contains download urls, cdkeys and other sensitive content.

Seems like Lgogdownloader uses the same API mentioned by myself: https://github.com/Sude-/lgogdownloader/blob/cdc3569f3cf1e455a653cfe840e51339b5548944/src/website.cpp#L87

Will make a separated issue at your GOGDL project, sorry for the spam.

Best regards.

@waltercool
Copy link
Author

Decided to close my ticket for gogdl because it works as intended, but a hige tech refactor on 2.7.1 introduced an issue on this commit 48d2787 by using the gamesdb.gog.com API.

@imLinguin
Copy link
Member

Usage of gamesdb is intentional as website API is slow and doesn't contain data we need.
For deciding whether the game is installable we use
products API

https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/blob/main/src/backend/storeManagers/gog/library.ts#L935

@imLinguin
Copy link
Member

imLinguin commented Aug 1, 2023

About this game, it looks like whole GOG API for that game is unavailable.
https://www.gogdb.org/product/1198397489#builds

@waltercool
Copy link
Author

Let me contact GOG about that.

Strangely, their builds only mention Windows and OSX, when Linux is supported.

Will keep you posted.

@imLinguin
Copy link
Member

builds in this API are Mac and Windows only, for Linux we have offline installers

@waltercool
Copy link
Author

Ah makes sense, still, the website you provided mentions "API availability: Unavailable" and "In store: No".

That doesn't make sense when the game responds to their public APIs and the game is currently at store https://www.gog.com/en/game/imperator_rome

Raised ticket 379091 explaining above to GOG and hope they can check what's the problem. Likely this caused the problem:

Screenshot_20230801_125341

Will keep you posted about their response. I know this is more than a GOG issue, but it may happen to other games as well.

@imLinguin
Copy link
Member

imLinguin commented Aug 1, 2023

In store: No means only that game itself isn't in store there are however "packages" that contain them

Notice that package and game are different, while package doesn't contain game files or installers, game does

@waltercool
Copy link
Author

So, what would you suggest me to discuss with GOG (or even Paradox Interactive if applicable)?

Because all their APIs Links from GOGDB Details under gameid 1198397489, are broken, but by using account/gameDetails API, works fine.

@imLinguin
Copy link
Member

I'm not really sure what to do here.

I'm also curious how GOG Galaxy handles it, since it uses same endpoints we do

@imLinguin
Copy link
Member

Checked with people on GOG Discord, it seems like Galaxy can detect the game just fine. I'll research this more, ideally I'd trace what Galaxy does with it. GOG support won't help here, since it's our issue

@imLinguin
Copy link
Member

Looks like the game should pull the data just fine, could you try clearing Heroic cache and refreshing the library? Please also try the Pull request I linked

@waltercool
Copy link
Author

Let me do some heavy testing and let you know! Many thanks for this fast analysis

@waltercool
Copy link
Author

OK, the game installed and worked fine.

Also installed several games and no issues from my side. I would say this is fixed with your changes made at the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants