urwrstkn8mare / galaxy-riot-integration

A GOG Galaxy 2.0 Community integration for Riot!
MIT License
71 stars 2 forks source link

Locally removed games will still be shown in GOG as "Installed" #25

Closed Nexusmeister closed 1 year ago

Nexusmeister commented 2 years ago

I deinstalled Valorant but it keeps displayed in the "Installed" Tab. When I click "Play", the Riot Client tries to download Valorant again.

Is there a possibility to refresh the installed games?

image

image

urwrstkn8mare commented 2 years ago

What version of the plugin are you using and have you tried clicking this button? If not please try and let me know what happens. image

Also the plugin logs would greatly help me help you diagnose the issue. It will be in %programdata%\GOG.com\Galaxy\logs and will have riot in its name.

Nexusmeister commented 2 years ago

It seems like that the plugin itself doesn't know a install location for valorant (which is correct)

This is in the logs after syncing the integrations:

2022-06-11 13:15:24,043 - galaxy.api.jsonrpc - INFO - Handling request: id=356, method=import_owned_games, params={}
2022-06-11 13:15:24,043 - galaxy.api.jsonrpc - INFO - Handling request: id=357, method=import_local_games, params={}
2022-06-11 13:15:24,043 - plugin - INFO - Getting owned games
2022-06-11 13:15:24,044 - plugin - INFO - Getting local games
2022-06-11 13:15:24,044 - plugin - DEBUG - RIOT_INSTALLED_GAMES: [LocalGame(game_id='league_of_legends', local_game_state=<LocalGameState.Installed: 1>)]
2022-06-11 13:15:24,369 - galaxy.api.jsonrpc - INFO - Handling request: id=358, method=start_game_times_import, params={'game_ids': ['bacon', 'league_of_legends', 'valorant']}
2022-06-11 13:15:24,369 - galaxy.api.jsonrpc - INFO - Handling request: id=359, method=start_os_compatibility_import, params={'game_ids': ['league_of_legends', 'bacon', 'valorant']}
2022-06-11 13:15:24,369 - galaxy.api.jsonrpc - INFO - Sending notification: method=game_time_import_success, params={'game_time': None}
2022-06-11 13:15:24,370 - galaxy.api.jsonrpc - INFO - Sending notification: method=game_time_import_success, params={'game_time': None}
2022-06-11 13:15:24,370 - galaxy.api.jsonrpc - INFO - Sending notification: method=game_time_import_success, params={'game_time': None}
2022-06-11 13:15:24,370 - plugin - INFO - Getting os compatibility
2022-06-11 13:15:24,370 - galaxy.api.jsonrpc - INFO - Sending notification: method=os_compatibility_import_success, params={'game_id': 'league_of_legends', 'os_compatibility': <OSCompatibility.MacOS|Windows: 3>}
2022-06-11 13:15:24,370 - plugin - INFO - Getting os compatibility
2022-06-11 13:15:24,370 - galaxy.api.jsonrpc - INFO - Sending notification: method=os_compatibility_import_success, params={'game_id': 'bacon', 'os_compatibility': <OSCompatibility.Windows: 1>}
2022-06-11 13:15:24,370 - plugin - INFO - Getting os compatibility
2022-06-11 13:15:24,371 - galaxy.api.jsonrpc - INFO - Sending notification: method=os_compatibility_import_success, params={'game_id': 'valorant', 'os_compatibility': <OSCompatibility.Windows: 1>}
2022-06-11 13:15:24,371 - galaxy.api.jsonrpc - INFO - Sending notification: method=game_times_import_finished, params=None
2022-06-11 13:15:24,372 - plugin - DEBUG - game_time_cache: {}
2022-06-11 13:15:24,372 - galaxy.api.jsonrpc - INFO - Sending notification: method=push_cache, params={'data': '****'}
2022-06-11 13:15:24,372 - galaxy.api.jsonrpc - INFO - Sending notification: method=os_compatibility_import_finished, params=None
2022-06-11 13:15:25,795 - galaxy.api.jsonrpc - INFO - Handling request: id=360, method=start_local_size_import, params={'game_ids': ['league_of_legends']}
2022-06-11 13:15:25,899 - utils.misc - DEBUG - Size: 19479975005 bytes - D:\Game Library\Riot Games\League of Legends\League of Legends
2022-06-11 13:15:25,900 - galaxy.api.jsonrpc - INFO - Sending notification: method=local_size_import_success, params={'game_id': 'league_of_legends', 'local_size': None}
2022-06-11 13:15:25,900 - galaxy.api.jsonrpc - INFO - Sending notification: method=local_size_import_finished, params=None
2022-06-11 13:15:26,765 - galaxy.api.jsonrpc - INFO - Handling request: id=361, method=ping, params={}
2022-06-11 13:15:29,028 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:29,029 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:15:31,784 - galaxy.api.jsonrpc - INFO - Handling request: id=362, method=ping, params={}
2022-06-11 13:15:34,092 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:34,092 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:15:36,838 - galaxy.api.jsonrpc - INFO - Handling request: id=363, method=ping, params={}
2022-06-11 13:15:39,135 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:39,135 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:15:41,888 - galaxy.api.jsonrpc - INFO - Handling request: id=364, method=ping, params={}
2022-06-11 13:15:44,162 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:44,162 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:15:46,931 - galaxy.api.jsonrpc - INFO - Handling request: id=365, method=ping, params={}
2022-06-11 13:15:49,193 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:49,194 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:15:51,979 - galaxy.api.jsonrpc - INFO - Handling request: id=366, method=ping, params={}
2022-06-11 13:15:54,222 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:54,222 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:15:57,021 - galaxy.api.jsonrpc - INFO - Handling request: id=367, method=ping, params={}
2022-06-11 13:15:59,241 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:15:59,241 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:02,062 - galaxy.api.jsonrpc - INFO - Handling request: id=368, method=ping, params={}
2022-06-11 13:16:04,267 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:04,267 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:07,093 - galaxy.api.jsonrpc - INFO - Handling request: id=369, method=ping, params={}
2022-06-11 13:16:09,280 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:09,280 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:12,140 - galaxy.api.jsonrpc - INFO - Handling request: id=370, method=ping, params={}
2022-06-11 13:16:14,343 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:14,343 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:17,193 - galaxy.api.jsonrpc - INFO - Handling request: id=371, method=ping, params={}
2022-06-11 13:16:19,388 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:19,388 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:22,239 - galaxy.api.jsonrpc - INFO - Handling request: id=372, method=ping, params={}
2022-06-11 13:16:24,409 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:24,409 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:27,278 - galaxy.api.jsonrpc - INFO - Handling request: id=373, method=ping, params={}
2022-06-11 13:16:29,460 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:29,460 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:32,318 - galaxy.api.jsonrpc - INFO - Handling request: id=374, method=ping, params={}
2022-06-11 13:16:34,487 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:34,487 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:37,362 - galaxy.api.jsonrpc - INFO - Handling request: id=375, method=ping, params={}
2022-06-11 13:16:39,538 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:39,539 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:42,395 - galaxy.api.jsonrpc - INFO - Handling request: id=376, method=ping, params={}
2022-06-11 13:16:44,562 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:44,562 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:47,440 - galaxy.api.jsonrpc - INFO - Handling request: id=377, method=ping, params={}
2022-06-11 13:16:49,629 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:49,629 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:52,482 - galaxy.api.jsonrpc - INFO - Handling request: id=378, method=ping, params={}
2022-06-11 13:16:54,671 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:54,672 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:16:57,499 - galaxy.api.jsonrpc - INFO - Handling request: id=379, method=ping, params={}
2022-06-11 13:16:59,737 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:16:59,738 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:17:02,533 - galaxy.api.jsonrpc - INFO - Handling request: id=380, method=ping, params={}
2022-06-11 13:17:04,804 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:17:04,804 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:17:07,567 - galaxy.api.jsonrpc - INFO - Handling request: id=381, method=ping, params={}
2022-06-11 13:17:09,830 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:17:09,831 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:17:12,618 - galaxy.api.jsonrpc - INFO - Handling request: id=382, method=ping, params={}
2022-06-11 13:17:14,875 - plugin - DEBUG - self.local_client.install_location: {'bacon': None, 'league_of_legends': 'D:\\Game Library\\Riot Games\\League of Legends\\League of Legends', 'valorant': None, 'vanguard': None}
2022-06-11 13:17:14,875 - plugin - DEBUG - self.status: {'bacon': <LocalGameState.None_: 0>, 'league_of_legends': <LocalGameState.Installed: 1>, 'valorant': <LocalGameState.None_: 0>}
2022-06-11 13:17:17,682 - galaxy.api.jsonrpc - INFO - Handling request: id=383, method=ping, params={}
urwrstkn8mare commented 2 years ago

Well the plugin logs indicates that its working as it should be. It shows LocalGameState.None_ means not installed. Could you please try earlier versions and let me know if that fixes it? They are available in: https://github.com/urwrstkn8mare/galaxy-riot-integration/releases. Remember to completely quit GOG Galaxy (including making the taskbar icon disappear) after installing the earlier versions to make sure the update works.

Nexusmeister commented 2 years ago

Do you know the relative path for the plugins? Just too dumb to find it

urwrstkn8mare commented 2 years ago

What do you mean?

Nexusmeister commented 1 year ago

Where are the plugins located? I mean the folder path

urwrstkn8mare commented 1 year ago

%LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed

Nexusmeister commented 1 year ago

I come back to this issue that it has been resolved - deinstalled games don't show up as "installed". Thanks for your help!