Jeshibu / PlayniteExtensions

MIT License
30 stars 5 forks source link

Legacy Games library integration issue #6

Closed wolfrik17 closed 2 years ago

wolfrik17 commented 2 years ago

Getting this error: Failed to get Legacy Games games: Value cannot be null. Parameter name: source

Legacy games launcher is installed and I am logged in.

extensions.log playnite.log

Jeshibu commented 2 years ago

Apparently I forgot to log that exception. My bad. Can you trigger the error again with this version of the plugin and then send me the logs again? https://github.com/Jeshibu/PlayniteExtensions/releases/download/legacygames0.1.1/LegacyGamesLibrary_0_1_2.pext

wolfrik17 commented 2 years ago

extensions.log playnite.log

Here you go

Jeshibu commented 2 years ago

In your %appdata%\legacy-games-launcher folder there is a file named app-state.json. The plugin reads this for most of its data. In it, there is a user.profile.downloads property, that looks like this (mine is at the end of the file, yours might not be): image

Could you share what yours looks like? The error is saying that the downloads property is empty, which is where all your game (bundle) purchases/entitlements are stored.

wolfrik17 commented 2 years ago

I checked the file and there was no downloads section, it stopped after username, so I opened the Legacy launcher, downloaded a game and checked the file again and now my file looks just like yours, no more errors in playnite and it imported all my games perfectly.

Seems like you need to download at least 1 game for that section to populate with all your owned games.

Jeshibu commented 2 years ago

Should be fixed now.