Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.22k stars 428 forks source link

In gog_library.json, is_installed set to false for GOG games #2691

Closed Rolv-Apneseth closed 1 year ago

Rolv-Apneseth commented 1 year ago

Describe the bug

Hi, I'm having what I would assume is a very niche and probably minor issue. All gog games work fine downloading / launching etc., but for this script I'm working on, I'm trying to parse the file ~/.config/heroic/store_cache/gog_library.json for which games are installed, but even though the games are installed, the is_installed for each game is always false.

Add logs

(20:58:49) INFO:    [Legendary]:        Refreshing library...
(20:58:49) INFO:    [Legendary]:        Refreshing Epic Games...
(20:58:49) INFO:    [Connection]:       Connectivity: check-online
(20:58:49) INFO:    [Connection]:       Pinging external endpoints
(20:58:49) INFO:    [Legendary]:        Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary --version
(20:58:49) INFO:    [Legendary]:        Legendary location: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary
(20:58:49) INFO:    [Gog]:              GOGDL location: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(20:58:49) INFO:    [Gog]:              GOGDL location: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(20:58:49) INFO:    [Legendary]:        Game list updated, got 8 games & DLCs
(20:58:49) WARNING: [Backend]:          Protocol already registered.
(20:58:49) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json --version
(20:58:49) INFO:    [Connection]:       Connectivity: online
(20:58:49) INFO:    [Gog]:              Checking if login is valid
(20:58:49) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(20:58:49) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(20:58:49) INFO:    [Legendary]:        Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(20:58:49) INFO:    [Backend]:          Loading Screen Ready
(20:58:49) INFO:    [Backend]:          

Heroic Version: 2.7.1 Eustass Kid
Legendary Version:  0.20.32 Dark Energy (hotfix #6)
GOGdl Version: 0.7.1

Electron Version: 23.1.4
Chrome Version: 110.0.5481.192
NodeJS Version: 18.12.1

OS: Arch KERNEL: 6.3.1-arch1-1 ARCH: x64
CPU: AMD Ryzen 7 5800X 8-Core Processor @3.8 GOVERNOR: schedutil
RAM: Total: 31.26 GiB Available: 21.43 GiB
GRAPHICS: GPU0: Navi 21 [Radeon RX 6900 XT] VRAM: 1MB 
PROTOCOL: wayland

(20:58:49) INFO:    [Frontend]:         Refreshing Library
(20:58:49) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(20:58:49) INFO:    [Backend]:          Frontend Ready
(20:58:50) INFO:    [Backend]:          Checking for new Heroic Updates
(20:58:50) INFO:    [Backend]:          Checking for current version changelog
(20:58:50) INFO:    [Gog]:              Found 0 game(s) to update
(20:58:50) INFO:    [Gog]:              Saved username to config file
(20:58:50) INFO:    [Legendary]:        Checking for game updates: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(20:58:51) INFO:    [Legendary]:        Found 0 games to update
(20:58:52) INFO:    [Winetricks]:       Downloading Winetricks
(20:58:52) INFO:    [Frontend]:         Refreshing Library
(20:58:52) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(20:58:52) INFO:    [Gog]:              Found 0 game(s) to update
(20:58:52) INFO:    [Legendary]:        Checking for game updates: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(20:58:53) INFO:    [Legendary]:        Found 0 games to update
(20:58:54) INFO:    [Backend]:          Starting the Download Queue
(20:59:23) INFO:    [Frontend]:         Refreshing Library
(20:59:23) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(20:59:23) INFO:    [Gog]:              Found 0 game(s) to update
(20:59:23) INFO:    [Legendary]:        Checking for game updates: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(20:59:25) INFO:    [Legendary]:        Found 0 games to update
(21:03:36) INFO:    [Frontend]:         Refreshing Library
(21:03:36) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(21:03:37) INFO:    [Gog]:              Found 0 game(s) to update
(21:03:37) INFO:    [Legendary]:        Checking for game updates: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(21:03:38) INFO:    [Legendary]:        Found 0 games to update
(21:03:48) INFO:    [Frontend]:         Refreshing Library
(21:03:48) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(21:03:48) INFO:    [Gog]:              Found 0 game(s) to update
(21:03:48) INFO:    [Legendary]:        Checking for game updates: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(21:03:49) INFO:    [Legendary]:        Found 0 games to update
(21:04:54) INFO:    [Gog]:              Logging user out
(21:04:55) INFO:    [Frontend]:         Refreshing Library
(21:04:55) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(21:04:55) INFO:    [Backend]:          Checking for new Heroic Updates
(21:04:55) INFO:    [Backend]:          Checking for current version changelog
(21:04:55) INFO:    [Gog]:              Found 0 game(s) to update
(21:04:55) INFO:    [Legendary]:        Checking for game updates: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(21:04:56) INFO:    [Legendary]:        Found 0 games to update
(21:05:17) INFO:    [Gog]:              Logging using GOG credentials
(21:05:17) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth --code <redacted>
(21:05:17) INFO:    [Gog]:              Login Successful
(21:05:17) INFO:    [Gog]:              Checking if login is valid
(21:05:17) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:17) INFO:    [Gog]:              Saved username to config file
(21:05:17) INFO:    [Frontend]:         Refreshing Library
(21:05:17) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:17) INFO:    [Gog]:              Getting GOG library
(21:05:18) INFO:    [Gog]:              Number of library pages: 1
(21:05:18) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:18) INFO:    [Gog]:              Saved games data
(21:05:19) INFO:    [Frontend]:         Refreshing Library
(21:05:19) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(21:05:19) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:19) INFO:    [Legendary]:        Refreshing library...
(21:05:19) INFO:    [Legendary]:        Refreshing Epic Games...
(21:05:19) INFO:    [Legendary]:        Game list updated, got 8 games & DLCs
(21:05:19) INFO:    [Gog]:              Getting GOG library
(21:05:19) INFO:    [Legendary]:        Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(21:05:19) INFO:    [Gog]:              Number of library pages: 1
(21:05:19) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:20) INFO:    [Gog]:              Saved games data
(21:05:23) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:23) DEBUG:   [Backend]:          {"free":305514717184,"diskSize":983349346304,"message":"284.53 GiB / 915.82 GiB","validPath":true}
(21:05:23) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1207664543 --token <redacted> --lang=en-US --os windows
(21:05:24) DEBUG:   [Backend]:          {"free":305514717184,"diskSize":983349346304,"message":"284.53 GiB / 915.82 GiB","validPath":true}
(21:05:30) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:30) INFO:    [Backend]:          Preventing machine to sleep
(21:05:30) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1207664543 --token <redacted> --lang=en-US --os linux
(21:05:31) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(21:05:31) INFO:    [DownloadManager]:  Ascendant  was added to the download queue.
(21:05:31) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:31) INFO:    [Gog]:              Installing 1207664543: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json download 1207664543 --platform linux --path=/media/main/Games --token <redacted> --skip-dlcs --lang=en
(21:05:31) DEBUG:   [Gog]:              Logging to file "/home/rolv/.config/heroic/GamesConfig/1207664543.log"
(21:05:32) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:32) DEBUG:   [Backend]:          {"free":305514717184,"diskSize":983349346304,"message":"284.53 GiB / 915.82 GiB","validPath":true}
(21:05:32) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1122367125 --token <redacted> --lang=en-US --os windows
(21:05:35) DEBUG:   [Backend]:          {"free":305514717184,"diskSize":983349346304,"message":"284.53 GiB / 915.82 GiB","validPath":true}
(21:05:37) INFO:    [Backend]:          Writing config for 1122367125
(21:05:37) INFO:    [Backend]:          Changed config: winePrefix from /home/rolv/.wine to /media/main/Games/Heroic/Prefixes/Bread  Fred Demo
(21:05:37) INFO:    [Backend]:          Changed config: wineCrossoverBottle from undefined to 
(21:05:37) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:05:37) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1122367125 --token <redacted> --lang=en-US --os Windows
(21:05:37) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(21:05:37) INFO:    [DownloadManager]:  Bread & Fred Demo  was added to the download queue.
(21:05:41) INFO:    [Gog]:              Progress for Ascendant: 4.7%/49.65MB/00:03:02 Down: 2.02MB/s / Disk: 2.02MB/s
(21:05:47) INFO:    [Gog]:              Progress for Ascendant: 7.8%/85.11MB/00:02:57 Down: 6.07MB/s / Disk: 6.07MB/s
(21:05:58) INFO:    [Backend]:          Launching Rocket League® (Sugar)
(21:05:58) INFO:    [Backend]:          Preventing display from sleep
(21:05:58) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(21:05:58) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(21:05:58) WARNING: [Backend]:          You are using Proton, this can lead to some bugs. Please do not open issues with bugs related to games
(21:05:58) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(21:05:58) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(21:05:58) DEBUG:   [Backend]:          Running Wine command: run wineboot --init
(21:05:59) INFO:    [Gog]:              Progress for Ascendant: 15.5%/164.15MB/00:02:27 Down: 7.09MB/s / Disk: 7.09MB/s
(21:06:00) INFO:    [Gog]:              Progress for Ascendant: 16.2%/172.26MB/00:02:25 Down: 8.1MB/s / Disk: 8.1MB/s
(21:06:02) INFO:    [Legendary]:        Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch Sugar --json --offline
(21:06:02) INFO:    [Gog]:              Progress for Ascendant: 17.7%/184.42MB/00:02:19 Down: 5.06MB/s / Disk: 5.06MB/s
(21:06:02) INFO:    [Legendary]:        Launching Rocket League®: LD_PRELOAD= STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/rolv/.local/share/.steam/steam STEAM_COMPAT_DATA_PATH="/media/main/Games/Heroic/Prefixes/Rocket League" PROTON_NO_ESYNC=1 PROTON_NO_FSYNC=1 STEAM_COMPAT_APP_ID=0 SteamAppId=0 SteamGameId=heroic-rocketleague PROTON_LOG_DIR=/home/rolv/.local/share /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch Sugar --language en --no-wine --wrapper "'/usr/share/steam/compatibilitytools.d/proton-ge-custom/proton' run"
(21:06:03) INFO:    [Gog]:              Progress for Ascendant: 18.2%/191.51MB/00:02:19 Down: 7.09MB/s / Disk: 7.09MB/s
(21:06:04) INFO:    [Gog]:              Progress for Ascendant: 18.9%/199.61MB/00:02:17 Down: 8.1MB/s / Disk: 8.1MB/s
(21:06:05) INFO:    [Gog]:              Progress for Ascendant: 19.7%/203.67MB/00:02:14 Down: 4.05MB/s / Disk: 4.05MB/s
(21:06:07) INFO:    [Gog]:              Progress for Ascendant: 20.8%/218.87MB/00:02:13 Down: 8.1MB/s / Disk: 8.1MB/s
(21:08:03) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:08:03) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1207664543 --token <redacted> --lang=en-US --os linux
(21:08:04) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(21:08:04) ERROR:   [Gog]:              install info is undefined in GOG install
(21:08:04) ERROR:   [DownloadManager]:  Installation of 1207664543 failed with: 
(21:08:04) WARNING: [DownloadManager]:  Installation of 1207664543 failed!
(21:08:04) INFO:    [DownloadManager]:  1207664543 added to download manager finished.
(21:08:04) INFO:    [DownloadManager]:  1207664543 removed from download manager.
(21:08:04) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:08:04) INFO:    [Frontend]:         Refreshing Library
(21:08:04) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:08:04) INFO:    [Gog]:              Installing 1122367125: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json download 1122367125 --platform windows --path=/media/main/Games --token <redacted> --skip-dlcs --lang=en-US
(21:08:04) DEBUG:   [Gog]:              Logging to file "/home/rolv/.config/heroic/GamesConfig/1122367125.log"
(21:08:04) INFO:    [Gog]:              Getting GOG library
(21:08:04) INFO:    [Gog]:              Number of library pages: 1
(21:08:04) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:08:05) INFO:    [Gog]:              Saved games data
(21:08:17) INFO:    [Gog]:              Got install info from cache for 1122367125 on windows platform
(21:08:17) INFO:    [Backend]:          Adding shortcuts for Bread & Fred Demo
(21:08:17) INFO:    [DownloadManager]:  Finished Installation of 1122367125
(21:08:17) INFO:    [DownloadManager]:  1122367125 added to download manager finished.
(21:08:17) INFO:    [DownloadManager]:  1122367125 removed from download manager.
(21:08:17) INFO:    [Frontend]:         Refreshing Library
(21:08:17) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:08:17) INFO:    [Gog]:              Getting GOG library
(21:08:17) INFO:    [Gog]:              Number of library pages: 1
(21:08:17) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(21:08:18) INFO:    [Gog]:              Saved games data
(22:04:30) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(22:04:30) INFO:    [Frontend]:         Refreshing Library
(22:04:30) INFO:    [Legendary]:        Refreshing library...
(22:04:30) INFO:    [Legendary]:        Refreshing Epic Games...
(22:04:30) INFO:    [Legendary]:        Game list updated, got 8 games & DLCs
(22:04:30) INFO:    [Legendary]:        Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(22:16:04) INFO:    [Backend]:          Launching Bread & Fred Demo (1122367125)
(22:16:04) INFO:    [Backend]:          Checking if wine version exists: Default Wine - Not Found
(22:16:04) ERROR:   [Backend]:          Wine version Default Wine - Not Found is not valid, trying another one.
(22:16:04) INFO:    [Backend]:          Checking if wine version exists: Default Wine - Not Found
(22:16:04) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(22:16:04) INFO:    [Backend]:          Preventing machine to sleep
(22:16:09) INFO:    [Backend]:          Changing wine version to Proton - proton-ge-custom
(22:16:09) INFO:    [Backend]:          1122367125: Setting wineVersion to {"bin":"/usr/share/steam/compatibilitytools.d/proton-ge-custom/proton","name":"Proton - proton-ge-custom","type":"proton"}
(22:16:09) INFO:    [Backend]:          Stopping Power Saver Blocker
(22:16:09) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(22:16:09) WARNING: [Backend]:          You are using Proton, this can lead to some bugs. Please do not open issues with bugs related to games
(22:16:09) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(22:16:09) INFO:    [Backend]:          Checking if wine version exists: Proton - proton-ge-custom
(22:16:09) DEBUG:   [Backend]:          Running Wine command: run wineboot --init
(22:16:11) INFO:    [Backend]:          Created/Updated Wineprefix at /media/main/Games/Heroic/Prefixes/Bread  Fred Demo
(22:16:11) INFO:    [Gog]:              Setup: No instructions
(22:16:11) INFO:    [Gog]:              Launching Bread & Fred Demo: LD_PRELOAD= STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/rolv/.local/share/.steam/steam STEAM_COMPAT_DATA_PATH="/media/main/Games/Heroic/Prefixes/Bread  Fred Demo" PROTON_NO_ESYNC=1 PROTON_NO_FSYNC=1 STEAM_COMPAT_APP_ID=0 SteamAppId=0 SteamGameId="heroic-Bread & Fred Demo" PROTON_LOG_DIR=/home/rolv/.local/share /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json launch "/media/main/Games/Bread & Fred Demo" 1122367125 --no-wine --wrapper "'/usr/share/steam/compatibilitytools.d/proton-ge-custom/proton' run" --platform windows
(22:16:21) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(22:16:21) INFO:    [Frontend]:         Refreshing Library
(22:16:21) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:21) INFO:    [Gog]:              Getting GOG library
(22:16:21) INFO:    [Gog]:              Number of library pages: 1
(22:16:21) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:22) INFO:    [Gog]:              Saved games data
(22:16:29) INFO:    [Gog]:              Got install info from cache for 1207664543 on windows platform
(22:16:29) DEBUG:   [Backend]:          {"free":305064828928,"diskSize":983349346304,"message":"284.11 GiB / 915.82 GiB","validPath":true}
(22:16:29) DEBUG:   [Backend]:          {"free":305064828928,"diskSize":983349346304,"message":"284.11 GiB / 915.82 GiB","validPath":true}
(22:16:31) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:31) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1207664543 --token <redacted> --lang=en-US --os linux
(22:16:31) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(22:16:31) INFO:    [DownloadManager]:  Ascendant  was added to the download queue.
(22:16:31) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:32) INFO:    [Gog]:              Installing 1207664543: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json download 1207664543 --platform linux --path=/media/main/Games --token <redacted> --skip-dlcs --lang=en
(22:16:32) DEBUG:   [Gog]:              Logging to file "/home/rolv/.config/heroic/GamesConfig/1207664543.log"
(22:16:35) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:35) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1207664543 --token <redacted> --lang=en-US --os linux
(22:16:35) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(22:16:35) ERROR:   [Gog]:              install info is undefined in GOG install
(22:16:35) ERROR:   [DownloadManager]:  Installation of 1207664543 failed with: 
(22:16:35) WARNING: [DownloadManager]:  Installation of 1207664543 failed!
(22:16:35) INFO:    [DownloadManager]:  1207664543 added to download manager finished.
(22:16:35) INFO:    [DownloadManager]:  1207664543 removed from download manager.
(22:16:35) INFO:    [Frontend]:         Refreshing Library
(22:16:35) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:35) INFO:    [Backend]:          Stopping Power Saver Blocker
(22:16:35) INFO:    [Gog]:              Getting GOG library
(22:16:36) INFO:    [Gog]:              Number of library pages: 1
(22:16:36) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:36) INFO:    [Gog]:              Saved games data
(22:16:40) INFO:    [Gog]:              Got install info from cache for 1207664543 on windows platform
(22:16:40) DEBUG:   [Backend]:          {"free":305064828928,"diskSize":983349346304,"message":"284.11 GiB / 915.82 GiB","validPath":true}
(22:16:40) DEBUG:   [Backend]:          {"free":305064828928,"diskSize":983349346304,"message":"284.11 GiB / 915.82 GiB","validPath":true}
(22:16:44) INFO:    [Gog]:              Got install info from cache for 1207664543 on windows platform
(22:16:47) INFO:    [Backend]:          Writing config for 1207664543
(22:16:47) INFO:    [Backend]:          Changed config: winePrefix from /home/rolv/.wine to /media/main/Games/Heroic/Prefixes/Ascendant
(22:16:47) INFO:    [Backend]:          Changed config: wineCrossoverBottle from undefined to 
(22:16:47) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:47) INFO:    [Gog]:              Getting game metadata: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json info 1207664543 --token <redacted> --lang=en-US --os Windows
(22:16:47) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(22:16:47) INFO:    [DownloadManager]:  Ascendant  was added to the download queue.
(22:16:47) INFO:    [Gog]:              Running command: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json auth
(22:16:47) INFO:    [Gog]:              Installing 1207664543: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/rolv/.config/heroic/gog_store/auth.json download 1207664543 --platform windows --path=/media/main/Games --token <redacted> --skip-dlcs --lang=en-US
(22:16:47) DEBUG:   [Gog]:              Logging to file "/home/rolv/.config/heroic/GamesConfig/1207664543.log"
(22:16:49) INFO:    [Gog]:              Progress for Ascendant: 0%/1.10MB/00:00:00 Down: 1.1MB/s / Disk: 1.33MB/s
(22:16:52) INFO:    [Gog]:              Progress for Ascendant: 0.7%/12.41MB/00:09:30 Down: 5.39MB/s / Disk: 12.57MB/s
(22:17:47) INFO:    [Gog]:              Progress for Ascendant: 38.63%/395.26MB/00:01:33 Down: 6.64MB/s / Disk: 6.64MB/s
(22:18:47) INFO:    [Gog]:              Progress for Ascendant: 78.61%/797.99MB/00:00:32 Down: 7.12MB/s / Disk: 7.12MB/s
(22:18:49) INFO:    [Gog]:              Progress for Ascendant: 80%/810.64MB/00:00:30 Down: 5.82MB/s / Disk: 5.82MB/s
(22:18:50) INFO:    [Gog]:              Progress for Ascendant: 80.57%/816.20MB/00:00:29 Down: 5.56MB/s / Disk: 5.56MB/s
(22:19:19) INFO:    [Gog]:              Progress for Ascendant: 98.62%/997.77MB/00:00:02 Down: 5.56MB/s / Disk: 5.56MB/s
(22:19:20) INFO:    [Gog]:              Progress for Ascendant: 99.17%/1003.57MB/00:00:01 Down: 5.8MB/s / Disk: 5.8MB/s

Steps to reproduce

  1. Add and install a GOG game
  2. Read store_cache/gog_library.json to see value of is_installed for that game

Expected behavior

I would expect is_installed to be true for games which are installed

Screenshots

No response

Heroic Version

Latest Stable

System Information

Additional information

Not sure those logs are of any use, but I can post what I have in my gog_library.json if needed, I only have 3 games

Edit: Sorry nevermind, looks like this line from the logs would probably be the culprit?

(22:16:47) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
imLinguin commented 1 year ago

is_installed value in gog_library.json is meaningless. The value is updated accordingly based on ~/.config/heroic/gog_store/installed.json. Take gog_library as a list of owned games, and installed as actually installed titles

Rolv-Apneseth commented 1 year ago

Ah I see. Is there a similar installed.json for legendary? My store_cache/legendary_install_info.json is empty.

imLinguin commented 1 year ago

Check files lib-cache/. I don't recall it exactly and I don't really have a way to check right now

Rolv-Apneseth commented 1 year ago

lib-cache/installInfo.json is blank and lib-cache/library.json appears to be the same as store_cache/legendary_library.json but with a bit more info under install. I suppose I'll parse both files separately, thank you.