Lacro59 / playnite-successstory-plugin

This plugin shows the game achievements in Playnite.
https://playnite.link
MIT License
167 stars 29 forks source link

Object reference not set to an instance of an object #478

Closed Staz0r closed 2 months ago

Staz0r commented 4 months ago

I got this warning notification everytime I open playnite, and it also doesnt show the achievements for games image

It seems to be attempting to get file through

Here is the extensions.log 場所 SuccessStory.SuccessStory.WindowBase_LoadedEvent(Object sender, EventArgs e) 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs:行 221 24-05 02:29:40.425|ERROR|SuccessStory#Common:Error on WindowBase_LoadedEvent()|G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs|221 System.NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません (Object reference not set to an instance of an object)。 場所 SuccessStory.Clients.SteamAchievements..ctor() 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\Clients\SteamAchievements.cs:行 63 場所 SuccessStory.Services.SuccessStoryDatabase.get_AchievementProviders() 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\Services\SuccessStoryDatabase.cs:行 43 場所 SuccessStory.SuccessStory.WindowBase_LoadedEvent(Object sender, EventArgs e) 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs:行 221 24-05 02:31:26.783|ERROR|SuccessStory#Common:Error on WindowBase_LoadedEvent()|G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs|221 System.NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません (Object reference not set to an instance of an object)。 場所 SuccessStory.Clients.SteamAchievements..ctor() 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\Clients\SteamAchievements.cs:行 63 場所 SuccessStory.Services.SuccessStoryDatabase.get_AchievementProviders() 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\Services\SuccessStoryDatabase.cs:行 43 場所 SuccessStory.SuccessStory.WindowBase_LoadedEvent(Object sender, EventArgs e) 場所 G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs:行 221

Rizhikk commented 4 months ago

The same thing.. How to solve it?
Снимок экрана 2024-05-24 1123526

Снимок экрана 2024-05-25 22013012 The api key is not saved when you enter it. It disappears when you exit the window*

sunsetHue commented 4 months ago

Same error notification related to Steam API key but with different logs.

I don't even use Steam achievements. I used manual ones until this error starting showing a while ago that seems to stop you from adding any new Exophase achievements too. Pre-existing achievements added before the error still show and work fine.

Section from extensions.log

31-05 02:19:32.368|WARN |SuccessStory#SteamApi:No SteamLibrary configuration found
31-05 02:19:32.368|ERROR|SuccessStory#Common:Error on GetManual()|G:\GitHub\Lacro59\playnite-successstory-plugin\source\Services\SuccessStoryDatabase.cs|109
System.NullReferenceException: Object reference not set to an instance of an object.
   at SuccessStory.Clients.SteamAchievements..ctor() in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Clients\SteamAchievements.cs:line 63
   at SuccessStory.Views.SuccessStoreGameSelection..ctor(Game game) in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Views\SuccessStoreGameSelection.xaml.cs:line 40
   at SuccessStory.Services.SuccessStoryDatabase.GetManual(Game game) in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Services\SuccessStoryDatabase.cs:line 109
Lacro59 commented 2 months ago

Can you try this? https://github.com/Lacro59/playnite-successstory-plugin/issues/479#issuecomment-2191342743

Staz0r commented 2 months ago

Can you try this? #479 (comment) I forgot to mention it but I've tried it and it is working properly now