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
[Windows] Constantly prompting that a new version of a game is available #761
Comments
Caused by #760 |
@dragonDScript This is caused by the name of the game. We need to use that Regexp to clean the game name everywhere. It's probably broken on some Json file we use to cache the library or the list of games with update. So maybe make that regexp a function that can be used anywhere in the Backend, maybe on a utils or constants file. |
This is the line with the issue:
we need to improve the logic to show if the game has updates or not. |
Fixed on Main branch. |
Thanks for posting the issue @Arron17 |
How did you fix it? You made many changes. It'd be as simple as checking if while True: learn() is present and if it is, remove it. |
IMPORTANT! Do not erase this template!
Is this a game issue? If YES please use our Discord to get help.
Open here only issues with Heroic like: Heroic doesn't open, some button is out of place, Heroic closes unexpectedly, installs got interrupted, etc.
Try to get help on our Wiki first: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/wiki/Troubleshooting
Describe the bug
After installing a game Heroic constantly shows that a new version is available. Can only replicate with a single game, while True: learn().
Add Logs
`PS C:\Users\Arron\appdata\local\programs\heroic> .\Heroic.exe --enable-logging
PS C:\Users\Arron\appdata\local\programs\heroic>
INFO: Trying to get user information
INFO: Trying to get user information
INFO: Trying to get user information
INFO: Registered protocol with OS.
INFO: Frontend: Refreshing Library
INFO: Refreshing library...
INFO: Legendary: Refreshing Epic Games...
INFO: Refreshing Epic Games...
[cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[cli] INFO: Getting game list... (this may take a while)
INFO: Updating game list
INFO: Game List Updated
INFO: Checking for game updates
INFO: Found 1 game(s) to update
INFO: Trying to get user information
INFO: checking for heroic updates
INFO: Trying to get user information
INFO: Progress: 4f272a49a39742b795d63e1f483a7c7d undefined/undefinedMiB/undefined
INFO: finished updating
INFO: Progress: 4f272a49a39742b795d63e1f483a7c7d undefined/undefinedMiB/undefined
INFO: Frontend: Refreshing Library
INFO: Refreshing library...
INFO: Updating game list
INFO: Game List Updated
INFO: Checking for game updates
INFO: Found 1 game(s) to update
INFO: Trying to get user information
INFO: Progress: 4f272a49a39742b795d63e1f483a7c7d undefined/undefinedMiB/undefined
INFO: finished updating
INFO: Progress: 4f272a49a39742b795d63e1f483a7c7d undefined/undefinedMiB/undefined
INFO: Frontend: Refreshing Library
INFO: Refreshing library...
INFO: Updating game list
INFO: Game List Updated
INFO: Checking for game updates
INFO: Found 1 game(s) to update
INFO: Saving log file to C:\Users\Arron\AppData\Roaming\heroic\Crashpad/Thu Dec 02 2021.txt`
To Reproduce
Steps to reproduce the behavior:
Load up Heroic and select the "Updates" filter, it shows 1 update available
Click on "while True: learn()" Game.
Click the "Installed - New Version Available! (Click to Update) button.
Toast Message comes up "Update Cancelled"
Expected behavior
Heroic should not prompt that there is a New Version available if there isn't. And once a new version is installed it should stop prompting for updates.
Desktop (please complete the following information):
Additional context
Because this uses Legendary for the app downloads I tried to replicate the issue in that, however Legendary doesn't show there is an update available.
`PS F:\Downloads> .\legendary.exe list-installed --check-updates
[cli] INFO: Logging in to check for updates...
[Core] INFO: Trying to re-use existing login session...
Installed games:
Total: 2`
I tried a few other games but cannot replicate the issue with any other games.
The text was updated successfully, but these errors were encountered: