Lacro59 / playnite-gameactivity-plugin

This plugin creates datas for your game activities and shows many statistics.
https://playnite.link
MIT License
60 stars 10 forks source link

Doesn't work anymore since last Playnite update (10.19) #201

Open jaceneliot opened 1 year ago

jaceneliot commented 1 year ago

Hi ! i have Playnite 10.19 and GameActivity 3.1.0. It doesn't work anymore :( It doesn't track time and i can't even see the oldest activites i recorded...Is there any issue with the extension ? I resinstalled it but it still doesn't work...

I noticed it take longer than usual to load too. image image

As we can see, there is nothing about oldest activity except in Gantt view...

Thanks for the help.

jaceneliot commented 1 year ago

Hi ! Is is still updated :( ?

Clusters commented 11 months ago

@jaceneliot don't know if that helps you in any way. But I have no such issues with 10.19 so far. Gantt and playtime records are present for my game sessions, even for the most recent ones. ...as long as they were initiated through Playnite.

11matt556 commented 11 months ago

I don't know if it helps, but I found that I get this same error when my tracking path is incorrect.

jaceneliot commented 10 months ago

Hi. Thanks. And how do you correct it ? Thanks


De : Matthew H. @.> Envoyé : vendredi, 8 décembre 2023 18:32 À : Lacro59/playnite-gameactivity-plugin @.> Cc : jaceneliot @.>; Mention @.> Objet : Re: [Lacro59/playnite-gameactivity-plugin] Doesn't work anymore since last Playnite update (10.19) (Issue #201)

I don't know if it helps, but I found that I get this same error when my tracking path is incorrect.

— Reply to this email directly, view it on GitHubhttps://github.com/Lacro59/playnite-gameactivity-plugin/issues/201#issuecomment-1847568194, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDCWQDX53OY3MSSPG6V3K7TYINFJRAVCNFSM6AAAAAA5VUSVFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBXGU3DQMJZGQ. You are receiving this because you were mentioned.Message ID: @.***>

11matt556 commented 10 months ago

@jaceneliot It would be in the Edit menu for the game. In my case I had defined some custom launch options in the Actions tab and had to fix some of the paths.

jaceneliot commented 10 months ago

Hi. I'm not sure to understand. The whole extension don't work anymore... it's not just one game. Do you have any idea how to fix it ?


De : Matthew H. @.> Envoyé : dimanche, 10 décembre 2023 23:37 À : Lacro59/playnite-gameactivity-plugin @.> Cc : jaceneliot @.>; Mention @.> Objet : Re: [Lacro59/playnite-gameactivity-plugin] Doesn't work anymore since last Playnite update (10.19) (Issue #201)

@jaceneliothttps://github.com/jaceneliot It would be in the Edit menu for the game. In my case I had defined some custom launch options in the Actions tab and had to fix some of the paths.

— Reply to this email directly, view it on GitHubhttps://github.com/Lacro59/playnite-gameactivity-plugin/issues/201#issuecomment-1849109451, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDCWQDWAG4BP2WA2XOTCG2DYIY2TFAVCNFSM6AAAAAA5VUSVFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBZGEYDSNBVGE. You are receiving this because you were mentioned.Message ID: @.***>

11matt556 commented 10 months ago

At first I thought the whole extension was broken since I got an error every time I launched a game and it failed to record the session, but it turned out that all the games I had tested on had something incorrect in the Edit menu. I still get the same error from GameActivity when I first launch PlayNite as I did when launching a game with incorrect path information, but I don't get this error when I tested a fresh install on a different system. This leads me to believe I still have some path somewhere which is incorrect. but the plugin seems to be working fine despite this error (See screenshot) so I haven't put much effort into getting rid of the error on my main system.

image

jaceneliot commented 10 months ago

Hi. I'm really sorry but do you think it's possible to explain me better or do some screenshots of the actual "edit" menu and what you have to change. I'm sorry it's maybe because english it's not my mother tongue but i can't understand what you are talking about. Thanks !


De : Matthew H. @.> Envoyé : jeudi, 14 décembre 2023 17:22 À : Lacro59/playnite-gameactivity-plugin @.> Cc : jaceneliot @.>; Mention @.> Objet : Re: [Lacro59/playnite-gameactivity-plugin] Doesn't work anymore since last Playnite update (10.19) (Issue #201)

At first I thought the whole extension was broken, but it turned out that all the games I had tested on had something incorrect in the Edit menu which caused the tracking the fail. I still get the same error from GameActivity when I first launch PlayNite as I do when launching a game with incorrect path information, so I assume this means I still have some path somewhere which is incorrect, and I don't get this error when I tested a fresh install on a different system. However, the plugin seems to be working fine despite this error (See screenshot) so I haven't put much effort into getting rid of it.

image.png (view on web)https://github.com/Lacro59/playnite-gameactivity-plugin/assets/27040860/55eb5538-9ed5-4866-a8bd-b0f3a6e79202

— Reply to this email directly, view it on GitHubhttps://github.com/Lacro59/playnite-gameactivity-plugin/issues/201#issuecomment-1856151505, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDCWQDTVB6RP3CWR4AV7LOTYJMRTXAVCNFSM6AAAAAA5VUSVFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJWGE2TCNJQGU. You are receiving this because you were mentioned.Message ID: @.***>

11matt556 commented 10 months ago
  1. Right click on a game and click "Edit" from the menu image

  2. This window should appear

image

  1. Click the "Installation" tab. Verify the installation path is correct image

  2. Repeat with any paths you have entered in the "Action" tab. This is the tab I had to fix, but you may not have anything on this tab. It should be fine if this tab is empty though. image

If all of that is correct, the only things I know to try are completely uninstalling Playnite and then reinstalling with just the GameActivity plugin, and verifying that the RivaTuner Statatistics Server that GameActivity gathers data from is actually working.

In case it matters, I am using GameActivity with RivaTuner Statistics Server 7.3.3 and MSI Afterburner 4.6.4.16255 specifically.

crackalackintv commented 10 months ago

It is completely broken for me and there are no logs, even if I check the "log trace messages". I have checked the extension folders and the playnite.log, are there any other places where extension logs would be written to?

I verified the paths and just installed two games fresh, same issue. No session tracking and the old sessions aren't even displayed. The loading of the GameActivity screen also takes forever even though there are only a handful of entries in the gameactivity dataset.

07-01 03:58:30.436|INFO |GamesEditor:Starting Mechabellum,  [....]
07-01 03:58:30.647|DEBUG|GamesEditor:Using plugin to start a game.
07-01 03:58:39.841|INFO |GamesEditor:Started Mechabellum game.
07-01 04:00:01.119|INFO |GamesEditor:Game Mechabellum stopped after 82 seconds.
07-01 04:00:02.148|DEBUG|GamesEditor:Game session was too short for client to be shutdown.

Playnite recognized the launch and shutdown of the game fine, but the session was not recorded in GameActivity (I tried with a 20 minute session as well, turned off the 'don't log if session is shorter than...", same outcome.

It broke for me two days ago (Jan 4th 2024), which shouldn't coincide with a Playnite update, but not sure what triggered it. I tried disabling the addon and then re-enabling it, didn't help. Completely uninstalling the addon and reinstalling didn't fix it, either.

Edit: Playnite showed me an error notification and let me export a log package then:

07-01 04:30:59.617|ERROR|GameActivity#Common:Error on getActivityByListGame()|D:\GitHub\Lacro59\playnite-gameactivity-plugin\source\Views\GameActivityView.xaml.cs|887
System.NullReferenceException: Object reference not set to an instance of an object.
   at CommonPluginsShared.LocalSystem..ctor(String ConfigurationsPath, Boolean WithDiskInfos) in D:\GitHub\Lacro59\playnite-gameactivity-plugin\source\playnite-plugincommon\CommonPluginsShared\LocalSystem.cs:line 47
   at GameActivity.Services.ActivityDatabase.get_LocalSystem() in D:\GitHub\Lacro59\playnite-gameactivity-plugin\source\Services\ActivityDatabase.cs:line 24
   at GameActivity.Models.Activity.get_Configuration() in D:\GitHub\Lacro59\playnite-gameactivity-plugin\source\Models\Activity.cs:line 47
   at GameActivity.Views.GameActivityView.getActivityByListGame() in D:\GitHub\Lacro59\playnite-gameactivity-plugin\source\Views\GameActivityView.xaml.cs:line 887
crackalackintv commented 9 months ago

I found the issue that caused my recording to stop and the UI to be slow. See https://github.com/Lacro59/playnite-gameactivity-plugin/issues/196#issuecomment-1880547108 but in short: Delete the Configurations.json in the ExtensionsData folder of the GameActivity extension. For me it was written with nonsense and the reading of it failed. Once I deleted it, it got recreated properly (when I opened the addon config dialogue and saved) and it worked since then.

jaceneliot commented 9 months ago

Hi.

As I said, I fresh installed Playnite (make sure to save library but not extension and extension data). Save manually the older sessions and all the data you would need. Now it's working for me fine again.


From: crackalackintv @.> Sent: Monday, January 8, 2024 9:19:20 AM To: Lacro59/playnite-gameactivity-plugin @.> Cc: jaceneliot @.>; Mention @.> Subject: Re: [Lacro59/playnite-gameactivity-plugin] Doesn't work anymore since last Playnite update (10.19) (Issue #201)

I found the issue that caused my recording to stop and the UI to be slow. See #196 (comment)https://github.com/Lacro59/playnite-gameactivity-plugin/issues/196#issuecomment-1880547108 but in short: Delete the Configurations.json in the ExtensionsData folder of the GameActivity extension. For me it was written with nonsense and the reading of it failed. Once I deleted it, it got recreated properly (when I opened the addon config dialogue and saved) and it worked since then.

— Reply to this email directly, view it on GitHubhttps://github.com/Lacro59/playnite-gameactivity-plugin/issues/201#issuecomment-1880549519, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDCWQDW5SEDTZMQUMQ25TY3YNOTYRAVCNFSM6AAAAAA5VUSVFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGU2DSNJRHE. You are receiving this because you were mentioned.Message ID: @.***>

Lacro59 commented 8 months ago

https://github.com/Lacro59/playnite-plugincommon/commit/8c664a180e0c5ed9b3eda82b1b9c56f26a6201b2

Lacro59 commented 8 months ago

Can you try with the last release?