tylerbrawl / Galaxy-Plugin-Rockstar

MIT License
70 stars 7 forks source link

List of Google Tags for Games #46

Open tylerbrawl opened 4 years ago

tylerbrawl commented 4 years ago

I have been working on a new system for getting the user's games, which will return a more complete list of their titles if the Rockstar Games Launcher log files cannot be read. It has proven to be much more accurate than the current implementation, but I am unable to find all of the tags. It would be greatly appreciated if I could get the assistance of the community for games that I do not own.

If you would like to aid the development of this plugin, then here are the required steps:

  1. On Google Chrome, Mozilla Firefox, or some other browser with a similar network inspection feature, visit https://socialclub.rockstargames.com/.

  2. Once you are logged into the Social Club website, view the Session Storage information for https://socialclub.rockstargames.com/. (On Google Chrome, press F12 to open the developer tools, click on the Application tab at the top of the new window, expand the Session Storage list on the left side of the developer tools window, and then select https://socialclub.rockstargames.com/.)

  3. If all goes well, you should see a listing for cdData as a key in the Session Storage. The corresponding value of cdData contains another set of keys and values, with one of the keys being called ownedGames. The corresponding value of this key is what I am looking for. For instance, my (censored) cdData looks like this:

    {"loginState":"true","memberId":"***","validationStatus":"***","creationDate":"***","creationPath":"socialclub","gamesOwned":"RDR_XBox|GTAV_XBox|GTAV_XBoxOne|RDR_Ps3|GTAV_Ps3|GTAV_PC|Bully_PC|RDR2_PC|Launcher_PC|GTASA_PC|GTAV_ifruit_iOSRos|GTASA_iOSRos","platformsOwned":"XBox|XBoxOne|Ps3|PC|iOSRos","linkedAccounts":"***","currentlyPlaying":"","crewCount":***,"isCrewCount":"***","friendCount":***,"isFriendCount":"***","memberSince":***,"mfaEnabled":"***","environment":"socialclub","paymentType":"***"}

    From that, I am looking for this specifically:

    "gamesOwned":"RDR_XBox|GTAV_XBox|GTAV_XBoxOne|RDR_Ps3|GTAV_Ps3|GTAV_PC|Bully_PC|RDR2_PC|Launcher_PC|GTASA_PC|GTAV_ifruit_iOSRos|GTASA_iOSRos"

It would be greatly appreciated if others could post their gamesOwned list, specifically for owned PC games which are not known.

Here is the current list of known (and unknown) Google tags for the games on the Rockstar Games Launcher:

When posting your ownedGames list, make sure to conceal any information that you would not want others seeing.

FriendsOfGalaxy commented 4 years ago

MP3_PC|Bully_PC|GTASA_PC|Launcher_PC

Games under My library in the launcher:

FriendsOfGalaxy commented 4 years ago

Add it to readme in big letters :P

tylerbrawl commented 4 years ago

@FriendsOfGalaxy - Thank you for your contribution.

FriendsOfGalaxy commented 4 years ago

no problem! My local storage now also contains GTAV_PC. Probably because I've just launched the game first time(?).

tylerbrawl commented 4 years ago

I experienced a similar situation with L.A. Noire. It seems to only list games that have been played at least once.

DarkNeooo commented 4 years ago

MP3_PC|LAN_PC|GTAV_PC|GTAIII_PC|Launcher_PC|RDR2_PC|MP1_iOSRos|GTAV_ifruit_iOSRos

So it's GTAIII_PC for Grand Theft Auto III

13xforever commented 4 years ago
gamesOwned:"LAN_PC|MP3_PC|GTAV_PC|RDR2_PC|Launcher_PC|GTAV_ifruit_iOSRos|Beaterator_Psp"

Beaterator was a PSP game

tylerbrawl commented 4 years ago

@13xforever I might add support for displaying console games as an option at some point. For now, however, I am currently looking for PC releases. Still, I appreciate your contribution.

tylerbrawl commented 4 years ago

Looking through the JavaScript files on the Social Club website, I may have just found the list of Google Tags for games. Here is the particular function of interest:

n.normaliseGameTypeFriendly = function(e) {
        switch (e.toString().toUpperCase()) {
        case "1":
        case "GTAIV":
            return "Grand Theft Auto IV";
        case "2":
        case "MCLA":
            return "Midnight Club Los Angeles";
        case "3":
        case "GTAIV_TLAD":
            return "Grand Theft Auto: The Lost and Damned";
        case "4":
        case "GTAIV_BOGT":
            return "Grand Theft Auto: The Ballad of Gay Tony";
        case "6":
        case "CW":
            return "Grand Theft Auto: Chinatown Wars";
        case "7":
        case "BEATERATOR":
            return "Beaterator";
        case "8":
        case "RDR":
            return "Red Dead Redemption";
        case "9":
        case "LAN":
        case "LANOIRE":
            return "L.A. Noire";
        case "10":
        case "MP3":
            return "Max Payne 3";
        case "11":
        case "GTAV":
        case "GTA5":
            return "Grand Theft Auto V";
        case "12":
        case "MP1":
            return "Max Payne";
        case "13":
        case "RDR2":
            return "Red Dead Redemption 2";
        case "16":
            return "Grand Theft Auto V: iFruit";
        case "17":
            return "Social Club";
        case "18":
        case "GTASA":
            return "Grand Theft Auto: San Andreas";
        case "19":
        case "GTALCS":
            return "GTA: Liberty City Stories";
        case "22":
        case "RDR2APP":
            return "Red Dead Redemption 2 Companion App";
        case "23":
        case "BULLY":
            return "Bully";
        case "24":
        case "LANVR":
            return "L.A. Noire: The VR Case Files";
        case "26":
        case "GTAIII":
        case "GTA3":
            return "Grand Theft Auto III";
        case "27":
        case "GTAVC":
            return "Grand Theft Auto: Vice City"
        }
        return e
    }

It does not include all of the tags (for instance, it is missing Launcher), but every confirmed tag matches what is on this list. Unless anybody can find a confirmation for Grand Theft Auto: Vice City and/or L.A. Noire: The VR Case Files, these will be the tags that I will use (GTAVC and LANVR, respectively).

joalexander9 commented 4 years ago

gamesOwned:"GTAVC_PC|GTAV_PC|RDR2_PC|Launcher_PC|GTAV_ifruit_WinPhone"

however i also own max payne 3 but never started it. so it seems to not necessarily list all the games that are owned.

tylerbrawl commented 4 years ago

@JoStoltenberg - Thank you for your contribution. It does only seem to list games that have been played, which is a limitation of the Social Club API, but the (Windows) workaround of using the log file generated by the Rockstar Games Launcher should allow unplayed games to be seen on Galaxy 2.0.

zielman commented 4 years ago

gamesOwned: "MP3_PC|RDR2_PC|GTAV_PC|LAN_PC|Launcher_PC|GTAV_ifruit_Android|GTAIV_Winlive" hope this helps!

edit: just to clarify, within R* Launcher I have GTASA and GTAVC but never played them on this account.

Tene21 commented 4 years ago

gamesOwned: "GTAIV_XBox|GTAIV_BOGT_XBox|LAN_XBox|RDR_XBox|RDR2_Ps4|MP3_PC|GTAV_ifruit_PC|LAN_PC|GTAV_PC|Launcher_PC|RDR2_PC|GTAV_ifruit_Android|CW_NinDs"

most of mine aren't PC and most of the ones that are PC are already known, so i doubt it'll be much help aside from stating that GTAV_ifruit_PC is the Windows 10 Store version of GTAV's iFruit companion app

sven-coppers commented 4 years ago

gamesOwned: "LAN_PC|MP3_PC|GTAV_PC|Launcher_PC|RDR2_PC|GTAV_ifruit_Android|RDR2App_Android|GTAIV_Winlive|GTAIV_BOGT_Winlive|GTAIV_TLAD_Winlive"

From what I can see, the _Winlive suffix for GTA IV and its DLC are new, as well as the _Android suffix for the RDR2App.

Do you have any idea why only San Andreas shows up for me in GOG Galaxy 2.0? It is not even in this list...

tylerbrawl commented 4 years ago

@Tauron93 - There are a few ideas that I may have regarding only GTA: San Andreas appearing in the Galaxy 2.0 client:

If you could answer any or all of the above questions, then it would be immensely helpful. Also, I would appreciate it if you could submit a copy of your latest Rockstar Games Launcher log file here.

sven-coppers commented 4 years ago

@tylerbrawl Thanks for coming back to me, here are all my answers to your questions:

Since I own most games through Steam, I guess I have to wait until the plugin uses the social club instead of the launcher logs.

Thanks for all the effort!

tylerbrawl commented 4 years ago

@Tauron93 - Thank you for the descriptive answers. The reason that GTA: San Andreas was the only game listed in Galaxy 2.0 is because it is the only game that you own on the Rockstar Games Launcher. If the launcher is installed, then the plugin gets your owned games from the list generated by the launcher's log file; otherwise, it lists all PC titles listed in gamesOwned. This was an intentional design decision so as to not create duplicate entries of Steam or Epic Games Store versions of the same game.

sven-coppers commented 4 years ago

@tylerbrawl I would prefer to have the duplicate entries, similar to what the uplay and xbox plugins do for games also owned through steam (e.g. Age of Empires II: DE). GOG Galaxy 2.0 already handles duplicates nicely, except for game time tracking.

For now, I removed the logs from the rockstar launcher and reinstalled your plugin ;-) Now I can finally see my RDR2 achievements, since the steam plugin seems to be broken...

tylerbrawl commented 4 years ago

I cannot think of a graceful method for implementing this idea. Accommodating for Steam and Epic Games Store versions of these games properly would mean having to define methods for getting their installation statuses (including the directory where the game is located) and launching, installing, and uninstalling them in addition to the methods used for native Rockstar Games Launcher games. Not only would this prove to be a massive amount of work, but it would be made all but redundant by existing plugins.

However, if you still wish to view games not owned on the Rockstar Games Launcher, you can try replacing the existing launcher.log file with a new read-only file with the same name containing the following:

[2020-02-06 22:22:56.231] [DISPLAY] [Admin] [titlemanager] Title gtasa     : on branch "default"
[2020-02-06 22:22:56.231] [DISPLAY] [Admin] [titlemanager] Title gta5      : on branch "default"
[2020-02-06 22:22:56.231] [DISPLAY] [Admin] [titlemanager] Title rdr2      : on branch "default"
[2020-02-06 22:22:56.231] [DISPLAY] [Admin] [titlemanager] Title lanoire   : on branch "default"
[2020-02-06 22:22:56.232] [DISPLAY] [Admin] [titlemanager] Title mp3       : on branch "default"
[2020-02-06 22:22:56.232] [DISPLAY] [Admin] [titlemanager] Title bully     : on branch "default"
[2020-02-06 22:22:56.232] [DISPLAY] [Admin] [titlemanager] Title gtavc     : on branch "default"
[2020-02-06 22:22:56.233] [DISPLAY] [Admin] [titlemanager] Title gta3      : on branch "default"
[2020-02-06 22:22:56.233] [DISPLAY] [Admin] [titlemanager] Title launcher  : on branch "default"

This particular example will have every game be displayed in Galaxy 2.0. If you want a particular game to not appear, then replace the title's on branch "default" line with no branches!. In addition, the installation status of the games might be incorrect if they are not owned on the Rockstar Games Launcher, and you will still have to launch non-launcher games by other means.

sven-coppers commented 4 years ago

Thanks for the tip, now everything keeps working, even after syncing again.

I don't know how this plugin works exactly, but I think the clue is that the plugin does not need to know this at all. The plugin only needs to know which games can be launched through the rockstar launcher, even though the rockstar launcher has a button 'play on steam'.

tylerbrawl commented 4 years ago

Perhaps this is the case. Since this discussion is getting rather long and away from the topic of this issue, you should create another issue on this repository for this. We can continue discussing it from there.

b1oki commented 4 years ago

gamesOwned: "MP3_PC|LAN_PC|GTAV_PC|RDR2_PC|Launcher_PC|GTAIV_PC|GTAV_ifruit_Android|RDR2App_Android"

yoshimo commented 4 years ago
`"gamesOwned": "GTAV_PC|Launcher_PC",`
yartat commented 3 years ago
gamesOwned:"GTAIV_PC|LAN_PC|GTAV_PC|RDR2_PC|Launcher_PC|GTAV_ifruit_Android|RDR2App_Android"
NBA2K1 commented 3 years ago

gamesOwned:"GTAIV_PC|MP3_PC|GTAV_PC|RDR2_PC|GTASA_PC|Launcher_PC|Bully_PC|GTAV_ifruit_iOSRos|GTASA_iOSRos|RDR2App_iOSRos"

dotslash-baunthy commented 3 years ago

"RDR2_Ps4|GTAV_PC|GTASA_PC|Launcher_PC|GTASA_Android" I didn't know I had GTA 5. 😅

sven-coppers commented 2 years ago

@tylerbrawl The definive edition of the trilogy has landed!

"GTA3UNREAL_PC|GTAVCUNREAL_PC|GTASAUNREAL_PC"

Do you know if game time and achievements will work with this plugin?