Closed LukasThyWalls closed 3 years ago
I'm not quite sure I understand the issue. Is the game appearing when the Status > Installed
filter is enabled, despite the fact that the game is not in the "Installed" bookmark and opening the game in Galaxy prompts you to install it?
If this is the case, then it really sounds like a bug with Galaxy 2.0, and not with the plugin. In the log file you posted, the plugin is sending the correct installation status of Grand Theft Auto: San Andreas to the Galaxy client, as shown here:
2020-05-06 19:41:31,022 - root - DEBUG - ROCKSTAR_INSTALLED_GAMES: {'launcher': LocalGame(game_id='21', local_game_state=<LocalGameState.Installed: 1>), 'gtasa': LocalGame(game_id='18', local_game_state=<LocalGameState.None_: 0>), 'gta5': LocalGame(game_id='11', local_game_state=<LocalGameState.None_: 0>), 'lanoire': LocalGame(game_id='9', local_game_state=<LocalGameState.None_: 0>), 'mp3': LocalGame(game_id='10', local_game_state=<LocalGameState.None_: 0>), 'gta3': LocalGame(game_id='26', local_game_state=<LocalGameState.None_: 0>), 'gtavc': LocalGame(game_id='27', local_game_state=<LocalGameState.None_: 0>), 'bully': LocalGame(game_id='23', local_game_state=<LocalGameState.None_: 0>), 'rdr2': LocalGame(game_id='13', local_game_state=<LocalGameState.None_: 0>), 'gta4': LocalGame(game_id='1', local_game_state=<LocalGameState.None_: 0>)}
[. . .]
2020-05-06 19:41:31,024 - root - DEBUG - Sending data: {"jsonrpc": "2.0", "id": "6", "result": {"local_games": [{"game_id": "21", "local_game_state": 1}, {"game_id": "18", "local_game_state": 0}, {"game_id": "11", "local_game_state": 0}, {"game_id": "9", "local_game_state": 0}, {"game_id": "10", "local_game_state": 0}, {"game_id": "26", "local_game_state": 0}, {"game_id": "27", "local_game_state": 0}, {"game_id": "23", "local_game_state": 0}, {"game_id": "13", "local_game_state": 0}, {"game_id": "1", "local_game_state": 0}]}}
Unless you are certain that the problem is with this plugin, I would suggest filing a bug report on the Galaxy 2.0 client.
I don't really know, but i just recently reinstalled Galaxy. The reason to reinstall was i have some issues with the integrations failing to connect when i start Galaxy, then i was using GOG Integration Updater by Slashbunny and now i'm installing the integration with Galaxy itself, although i still have issues with them failing when i start Galaxy sometimes, and i'm not sure Galaxy itself is updating these non official integrations as anywhere says it does or not...
But back to the topic, in the past i have this issue with two Games: GTA:SA (Rockstar) and Theme Hospital (Origin). The issue is i don't have any game installed, less these ones, and in "Installed" inside Galaxy said no games, but when i group as Installed/Not Installed the Rockstar bookmark or the Owned Games bookmark, (And Origin Bookmark in the case of Theme Hospital), Galaxy showed these games as Installed, when they aren't. TH was installed before and i uninstalled directly in Origin, so i thought is something with the registry or something like that, with GTA:SA i don't know i never installed it, but then decided to reinstalled Galaxy.
So, i uninstall and install Galaxy again, now using the built-in integration search to add integrations and, i logged everything and all integrations hasve fetched the games. Now, Theme Hospital is not grouped as "Installed" anywhere, so i fixed that with the reinstall, but GTA:SA still is grouped as "Installed". I have updated Rockstar Games Launcher, and Galaxy, and the integration (I installed it through Galaxy itself, searching the integration, is updated? will it update? I don't know...). In Rockstar Games Launcher is not installed.
The main issue with going directly to the Galaxy bug tracker is they will said is a problem with the integration, so i need to be sure it is not.
So, What can i do to give more info? Or made a proper reset of the integration? Am i the only one with this issue?
Edit: As an image explains it better than words...:
Thank you for providing additional information. As it turns out, it's not your fault. I followed the process that you described, and my games are being listed in this manner as well, despite not being installed. This means that it is definitely a problem with the integration, and not with Galaxy 2.0. I will look into the issue.
Actually, I take back part of what I said. The issue remains that these games are still being displayed incorrectly, but there is nothing in the API which would seem to resolve this. As such, I now believe that Galaxy 2.0 is at fault, and not the plugin. I have reported the issue on the Galaxy 2.0 client.
In the meantime, if any other individuals can give insight into this problem, it would be appreciated.
Hi! Was looking into this issue because I hate my games being listed as installed when they are not.
After reading other plugins code, it seems that the return of the function at line https://github.com/tylerbrawl/Galaxy-Plugin-Rockstar/blob/9e6a4b63f666ce6e948c8f414b9d54e2aba44490/src/plugin.py#L608 should only contain the list of installed games. Right now it contains the list of all games with the LocalGameState parameter.
Not being a dev, I sadly can't test my theory and can't provide a PR. If anyone has some time to test this !
[EDIT] I tried to bruteforce my theory by "hard coding" the list to only contain RDR2 (which I own)
async def get_local_games(self):
# Since the API requires that get_local_games returns a list of LocalGame objects, local_list is the value
# that needs to be returned. However, for internal use (the self.local_games_cache field), the dictionary
# local_games is used for greater flexibility.
local_games = {}
local_list = []
title_id = get_game_title_id_from_ros_title_id(13)
local_game = self.check_game_status("rdr2")
local_games[title_id] = local_game
local_list.append(local_game)
self.local_games_cache = local_games
log.debug(f"ROCKSTAR_INSTALLED_GAMES: {local_games}")
return local_list
And i can confirm that other games are no longer grouped as installed
Hello
I only have GTA:SA in my Rockstar account, and i detected GOG Galaxy group it in "Installed" games in "Owned Games" and "Rockstar" Bookmarks, but it is not, and i never installled in this machine. The weird thing is in the "Installed" bookmark it doesn't appear, and always the option when i right click or click on it is to install.
My Rockstar plugin log file: