darklinkpower / PlayniteExtensionsCollection

Collection of extensions made for Playnite.
MIT License
281 stars 28 forks source link

[PlayState] Interrupt and Minimize not working at all #539

Open TermsGithub opened 1 month ago

TermsGithub commented 1 month ago

Extension name

PlayState

Bug Description

Hi, Playstate is not working at all for me. Short: The Information Popup works, everything else doesn´t.

In the Addon I have defined Shortcuts for Keyboard and Controller. Global Interruptmodus: Process; I have tried several Keys and Button Combinations, but nothing works.

The Notification for "Information" works without problems (keyboard + Controller). The "Interrupt/Resume" and "Minimize/maximize" do show the Notification that the Game is interrupted and then resumed, but the Games are never stopped or minimized.

Also: I have no idea what the entries in the Controller Tab under "remove Controller Shortcut" are for. Windows 11, latest Playnite & Playstate, latest

To Reproduce

Ohh in the Logs there is a: "PlayState#PlayState:Couldn't find any game process" It does not work with: Ratchet and Clank, Anno 1800 or Last Train HOme either.

Logs

20-05 11:13:53.125|DEBUG|PlayState#PlayState:Information Hotkey registered with hotkey Ctrl + I. 20-05 11:13:53.125|DEBUG|PlayState#PlayState:Pause/resume Hotkey registered with hotkey U. 20-05 11:13:53.125|DEBUG|PlayState#PlayState:Minimize/Maximize Hotkey registered with hotkey M. 20-05 11:13:55.421|DEBUG|PlayState#PlayState:Information Hotkey registered with hotkey Ctrl + I. 20-05 11:13:55.421|DEBUG|PlayState#PlayState:Pause/resume Hotkey registered with hotkey Ctrl + U. 20-05 11:13:55.421|DEBUG|PlayState#PlayState:Minimize/Maximize Hotkey registered with hotkey M. 20-05 11:13:58.817|DEBUG|PlayState#PlayState:Information Hotkey registered with hotkey Ctrl + I. 20-05 11:13:58.817|DEBUG|PlayState#PlayState:Pause/resume Hotkey registered with hotkey Ctrl + U. 20-05 11:13:58.817|DEBUG|PlayState#PlayState:Minimize/Maximize Hotkey registered with hotkey Ctrl + M. 20-05 11:14:00.383|INFO |PlayNext#GameActivityExtension:Game Activity extension not loaded. Returning empty list. 20-05 11:15:52.190|DEBUG|DisplayHelper#DisplayUtilities:ChangeDisplaySettings Parameters - displayDeviceName: \.\DISPLAY2, newWidth: 3440, newHeight: 1440, newRefreshRate: 0, applyChanges: True 20-05 11:15:52.190|DEBUG|DisplayHelper#DisplayUtilities:Setting configuration of device "\.\DISPLAY2", 3440x1440, 0, CDS_UPDATEREGISTRY 20-05 11:15:52.190|INFO |DisplayHelper#DisplayUtilities:Display change test failed with value BadMode 20-05 11:15:53.190|DEBUG|PlayState#PlayStateManagerViewModel:Added game A Plague Tale: Requiem with Id c6b69d0d-d25f-4515-a51c-0bba45259743 to detection dictionary 20-05 11:16:13.195|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:16:13.330|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:16:53.335|DEBUG|PlayState#PlayState:Starting WMI loop number 0 20-05 11:16:53.335|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:16:53.438|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:08.459|DEBUG|PlayState#PlayState:Starting WMI loop number 1 20-05 11:17:08.459|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:08.547|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:23.553|DEBUG|PlayState#PlayState:Starting WMI loop number 2 20-05 11:17:23.553|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:23.656|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:38.668|DEBUG|PlayState#PlayState:Starting WMI loop number 3 20-05 11:17:38.668|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:38.761|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:53.767|DEBUG|PlayState#PlayState:Starting WMI loop number 4 20-05 11:17:53.767|DEBUG|PlayState#PlayState:FilterPaths set to false for WMI Query 20-05 11:17:53.767|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "False", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:53.852|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:18:08.859|DEBUG|PlayState#PlayState:Starting WMI loop number 5 20-05 11:18:08.859|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "False", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:18:08.953|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:18:23.969|DEBUG|PlayState#PlayState:Starting WMI loop number 6 20-05 11:18:23.969|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "False", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:18:24.052|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:08.547|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:23.553|DEBUG|PlayState#PlayState:Starting WMI loop number 2 20-05 11:17:23.553|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:23.656|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:38.668|DEBUG|PlayState#PlayState:Starting WMI loop number 3 20-05 11:17:38.668|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "True", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:38.761|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:17:53.767|DEBUG|PlayState#PlayState:Starting WMI loop number 4 20-05 11:17:53.767|DEBUG|PlayState#PlayState:FilterPaths set to false for WMI Query 20-05 11:17:53.767|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "False", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:17:53.852|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:18:08.859|DEBUG|PlayState#PlayState:Starting WMI loop number 5 20-05 11:18:08.859|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "False", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:18:08.953|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:18:23.969|DEBUG|PlayState#PlayState:Starting WMI loop number 6 20-05 11:18:23.969|DEBUG|PlayState#ProcessesHandler:Starting GetProcessesWmiQuery. "False", "D:\GAMES\A Plague Tale Requiem", "" 20-05 11:18:24.052|DEBUG|PlayState#ProcessesHandler:Returning 0 items: 20-05 11:18:39.064|DEBUG|PlayState#PlayState:Couldn't find any game process 20-05 11:18:39.080|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0. Suspend time: 0, System deduct time: 0 20-05 11:18:39.230|DEBUG|PlayState#PlayStateManagerViewModel:Data for game A Plague Tale: Requiem with id c6b69d0d-d25f-4515-a51c-0bba45259743 was created. Executables: 20-05 11:18:39.230|DEBUG|PlayState#PlayStateManagerViewModel:Removed game A Plague Tale: Requiem with Id c6b69d0d-d25f-4515-a51c-0bba45259743 from detection dictionary 20-05 11:18:39.230|DEBUG|PlayState#PlayStateManagerViewModel:Changed current game to A Plague Tale: Requiem 20-05 11:19:15.257|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0. Suspend time: 0, System deduct time: 0 20-05 11:19:15.257|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0. Suspend time: 0, System deduct time: 0 20-05 11:19:21.669|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0. Suspend time: 0, System deduct time: 0 20-05 11:19:21.669|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0. Suspend time: 0, System deduct time: 0 20-05 11:19:24.663|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 1,3E-05. Suspend time: 1,29E-05, System deduct time: 0 20-05 11:19:24.663|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0,0003834. Suspend time: 0,0003833, System deduct time: 0 20-05 11:19:25.517|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0,8541635. Suspend time: 0,8541635, System deduct time: 0 20-05 11:19:25.517|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0,8541635. Suspend time: 0,8541635, System deduct time: 0 20-05 11:19:26.327|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0,854186. Suspend time: 0,8541856, System deduct time: 0 20-05 11:19:26.327|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 0,8547479. Suspend time: 0,8547477, System deduct time: 0 20-05 11:19:27.182|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 1,7093864. Suspend time: 1,7093864, System deduct time: 0 20-05 11:19:27.182|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 1,7093864. Suspend time: 1,7093864, System deduct time: 0 20-05 11:19:36.114|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 1,7094004. Suspend time: 1,7094002, System deduct time: 0 20-05 11:19:36.114|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 1,7097691. Suspend time: 1,7097689, System deduct time: 0 20-05 11:22:23.935|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 166,5424968. Suspend time: 166,5424967, System deduct time: 0 20-05 11:22:23.935|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 166,542889. Suspend time: 166,5428889, System deduct time: 0 20-05 11:23:48.980|WARN |SuccessStory#SteamApi:No SteamLibrary configuration found 20-05 11:23:48.980|ERROR|SuccessStory#Common:Error on WindowBase_LoadedEvent()|G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs|221 System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei SuccessStory.Clients.SteamAchievements..ctor() in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Clients\SteamAchievements.cs:Zeile 63. bei SuccessStory.Services.SuccessStoryDatabase.get_AchievementProviders() in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Services\SuccessStoryDatabase.cs:Zeile 43. bei SuccessStory.SuccessStory.WindowBase_LoadedEvent(Object sender, EventArgs e) in G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs:Zeile 221. 20-05 11:25:11.872|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 334,4791732. Suspend time: 334,479173, System deduct time: 0 20-05 11:25:11.872|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 334,4796036. Suspend time: 334,4796033, System deduct time: 0 20-05 11:25:12.325|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 334,9325484. Suspend time: 334,9325482, System deduct time: 0 20-05 11:25:12.325|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 334,9329356. Suspend time: 334,9329354, System deduct time: 0 20-05 11:25:12.700|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 335,3067643. Suspend time: 335,306764, System deduct time: 0 20-05 11:25:12.700|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 335,3071585. Suspend time: 335,3071584, System deduct time: 0 20-05 11:25:13.152|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 335,7592789. Suspend time: 335,7592785, System deduct time: 0 20-05 11:25:13.152|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 335,7597837. Suspend time: 335,7597836, System deduct time: 0 20-05 11:25:20.005|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 342,6121486. Suspend time: 342,6121483, System deduct time: 0 20-05 11:25:20.005|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 342,6125162. Suspend time: 342,6125161, System deduct time: 0 20-05 11:25:20.376|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 342,9830659. Suspend time: 342,9830655, System deduct time: 0 20-05 11:25:20.376|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 342,9834658. Suspend time: 342,9834658, System deduct time: 0 20-05 11:25:21.323|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 343,9301594. Suspend time: 343,9301592, System deduct time: 0 20-05 11:25:21.323|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 343,9305208. Suspend time: 343,9305206, System deduct time: 0 20-05 11:25:21.693|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 344,3005591. Suspend time: 344,3005587, System deduct time: 0 20-05 11:25:21.693|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 344,3010482. Suspend time: 344,301048, System deduct time: 0 20-05 11:25:22.068|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 344,6751547. Suspend time: 344,6751543, System deduct time: 0 20-05 11:25:22.068|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 344,675538. Suspend time: 344,6755379, System deduct time: 0 20-05 11:25:22.440|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 345,0474097. Suspend time: 345,0474095, System deduct time: 0 20-05 11:25:22.440|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 345,0478377. Suspend time: 345,0478376, System deduct time: 0 20-05 11:25:22.903|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 345,5106947. Suspend time: 345,5106944, System deduct time: 0 20-05 11:25:22.903|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 345,5111095. Suspend time: 345,5111094, System deduct time: 0 20-05 11:25:23.288|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 345,8953155. Suspend time: 345,8953145, System deduct time: 0 20-05 11:25:23.288|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 345,8959288. Suspend time: 345,8959285, System deduct time: 0 20-05 11:25:31.404|WARN |SuccessStory#SteamApi:No SteamLibrary configuration found 20-05 11:25:31.404|ERROR|SuccessStory#Common:Error on WindowBase_LoadedEvent()|G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs|221 System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt. bei SuccessStory.Clients.SteamAchievements..ctor() in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Clients\SteamAchievements.cs:Zeile 63. bei SuccessStory.Services.SuccessStoryDatabase.get_AchievementProviders() in G:\GitHub\Lacro59\playnite-successstory-plugin\source\Services\SuccessStoryDatabase.cs:Zeile 43. bei SuccessStory.SuccessStory.WindowBase_LoadedEvent(Object sender, EventArgs e) in G:\GitHub\Lacro59\playnite-successstory-plugin\source\SuccessStory.cs:Zeile 221. 20-05 11:25:48.670|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 371,2765735. Suspend time: 371,2765732, System deduct time: 0 20-05 11:25:48.670|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 371,284604. Suspend time: 371,2846039, System deduct time: 0 20-05 11:25:57.849|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 380,4565374. Suspend time: 380,4565374, System deduct time: 0 20-05 11:25:57.849|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 380,4565374. Suspend time: 380,4565374, System deduct time: 0 20-05 11:26:06.286|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 380,456585. Suspend time: 380,4565847, System deduct time: 0 20-05 11:26:06.286|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 380,4570638. Suspend time: 380,4570636, System deduct time: 0 20-05 11:27:11.177|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 445,3465109. Suspend time: 445,3465109, System deduct time: 0 20-05 11:27:11.177|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 445,3465109. Suspend time: 445,3465109, System deduct time: 0 20-05 11:27:20.064|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 445,346524. Suspend time: 445,3465239, System deduct time: 0 20-05 11:27:20.064|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 445,3468874. Suspend time: 445,3468872, System deduct time: 0 20-05 11:27:27.490|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 452,7715746. Suspend time: 452,7715746, System deduct time: 0 20-05 11:27:27.490|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 452,7715746. Suspend time: 452,7715746, System deduct time: 0 20-05 11:27:59.034|DEBUG|PlayState#PlayState:Information Hotkey registered with hotkey Ctrl + I. 20-05 11:27:59.034|DEBUG|PlayState#PlayState:Pause/resume Hotkey registered with hotkey Ctrl + U. 20-05 11:27:59.034|DEBUG|PlayState#PlayState:Minimize/Maximize Hotkey registered with hotkey Ctrl + Alt + M. 20-05 11:28:14.794|DEBUG|PlayState#PlayStateData:Calculated effective suspend time: 452,7715746. Suspend time: 452,7715746, System deduct time: 0 20-05 11:28:14.794|DEBUG|PlayState#PlayState:Suspend elapsed seconds for game A Plague Tale: Requiem was 453 20-05 11:28:14.794|DEBUG|PlayState#PlayState:Old playtime 51739, new playtime 51286 20-05 11:28:14.794|WARN |SuccessStory#SteamApi:No SteamLibrary configuration found 20-05 11:28:14.794|DEBUG|PlayState#PlayStateManagerViewModel:Data for game A Plague Tale: Requiem with id c6b69d0d-d25f-4515-a51c-0bba45259743 was removed

Screenshots

No response