hawkeye116477 / playnite-legendary-plugin

Epic Games Store library integration with Legendary Launcher for Playnite.
https://playnite.link/addons.html#LegendaryLibrary
MIT License
16 stars 0 forks source link

Unable to update game #76

Closed darklinkpower closed 1 month ago

darklinkpower commented 1 month ago

Prerequisites

Playnite version

10.33

Plugin version

1.7.7.38382

Legendary Launcher version

0.20.34

Bug description

Unable to update game Frontier Hunter: Erza's Wheel of Fortune after it got updated to the full game from Early Access.

  1. Right click on game -> Check for updates indicates that there's no update available: Playnite DesktopApp_6I2cElvgba

  2. Same for Main menu -> Extensions -> Legendary -> Check for updates image

  3. Upon launching game, the game is not run it opens this dialog to download an update but doesn't display anything: Playnite DesktopApp_R4YpCfWoD0

Relevant log

26-07 07:50:31.062|DEBUG|LegendaryLibrary#CliWrapCommandExtensions:Executing command: C:\Games\Software\Legendary\legendary.exe -y sync-saves 50a44688f80743a8b7880b41ef69f489 --skip-upload --save-path C:\Users\Brandon\AppData\LocalLow\IceSitruuna\Frontier_Hunter\PlayerPrefs\
26-07 07:50:32.304|DEBUG|LegendaryLibrary#LegendaryCloud:[Legendary] [Core] INFO: Trying to re-use existing login session...
26-07 07:50:32.696|WARN |LegendaryLibrary#LegendaryCloud:[Legendary] [Core] WARNING: Game Manifest "G:\Games\PC\Epic Games\TheWitness\.egstore\22DFA4E24129653464CC83B9A11AE985.manifest" not found, cannot import!
26-07 07:50:32.696|WARN |LegendaryLibrary#LegendaryCloud:[Legendary] [Core] WARNING: Game Manifest "C:\Software\Twinmotion2020.2EDU\.egstore\510A5DA74CC9B6149BD4BAAAE6CD8F5A.manifest" not found, cannot import!
26-07 07:50:32.696|WARN |LegendaryLibrary#LegendaryCloud:[Legendary] [Core] WARNING: Game Manifest "G:\Games\PC\Epic Games\YookaLaylee\.egstore\63EDAB2948586729284592997B0769C6.manifest" not found, cannot import!
26-07 07:50:32.993|DEBUG|LegendaryLibrary#LegendaryCloud:[Legendary] [cli] INFO: Got 1 remote save game(s)
26-07 07:50:32.993|DEBUG|LegendaryLibrary#LegendaryCloud:[Legendary] [cli] INFO: Checking "Frontier Hunter: Erza's Wheel of Fortune" (50a44688f80743a8b7880b41ef69f489)
26-07 07:50:32.993|DEBUG|LegendaryLibrary#LegendaryCloud:[Legendary] [cli] INFO: Overriding save path with "C:\Users\Brandon\AppData\LocalLow\IceSitruuna\Frontier_Hunter\PlayerPrefs\"...
26-07 07:50:32.993|DEBUG|LegendaryLibrary#LegendaryCloud:[Legendary] [cli] INFO: Save game for "Frontier Hunter: Erza's Wheel of Fortune" is up to date, skipping...
26-07 07:50:33.105|DEBUG|LegendaryLibrary#CliWrapCommandExtensions:Executing command: C:\Games\Software\Legendary\legendary.exe launch 50a44688f80743a8b7880b41ef69f489
26-07 07:50:35.678|DEBUG|LegendaryLibrary#LegendaryPlayController:[Legendary] [cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[cli] INFO: Checking for updates...
[cli] ERROR: Game is out of date, please update or launch with update check skipping!

26-07 07:50:35.679|ERROR|LegendaryLibrary#LegendaryPlayController:[Legendary] exit code: 1

Screenshots

image __

hawkeye116477 commented 1 month ago

Hmm, looks like that's paid game, never given away. In that case, can you send me gameId.json file from %APPDATA%\Playnite\ExtensionsData\ead65c3b-2f8f-4e37-b4e6-b3de6be540c6\infocache directory? Can you also send me installed.json file from %USERPROFILE%\.config\legendary with mentioned gameID key?

darklinkpower commented 1 month ago

I managed to update it using the Epic Store app, to my surprise it correctly listed the game there.

50a44688f80743a8b7880b41ef69f489.json

installed.json

I'll re-upload the files if the issue happens again.


On a separate note, I've noticed that the Epic overlay doesn't activate when booted in Playnite using the plugin but it does when launched from the Epic app. Should I open a new issue here or is that issue in Legendary?

image

Edit: It looks like the overlay not working is due to an incompatibility with Special K. Sharing in case anyone runs into this issue in the future.

darklinkpower commented 1 month ago

Hmmm I tried launching it again and now it's prompting an update but that version is the old one. I think something might have broken due to updating in the Epic App :(

image

Edit: Coincidentally it turns out the developer pushed a new update while commenting here. After updating the game updated correctly. No idea what happened before but the issue can be closed I think, and I can open a new one if it happens again.

hawkeye116477 commented 1 month ago

Ah, ok. I see that there is old version at file from infocache, while newer at installed.json. I guess probably for some reason it didn't refresh information. There is 7 days delay (from last write time) set just to be friendly with servers and that could be the reason. I don't know if lowering that delay would be good, but Legendary also saves some files with partial information, so maybe I could compare dates of writing of those files and then update cache if Legendary have newer files. I could also add additional button just to clean cache file from one game, I'll think about it.