GT Sport on K' [12-11] | K' Score improved | Events, Leaderboards, Profiles, Stats, Cars | Feedback

Discussion in 'Gran Turismo Sport' started by Milouse, Oct 14, 2017.

  1. Foxis

    Foxis

    Messages:
    181
    Please forgive me if I have missed something, but are you saying that the car number (door number?) indicates your expected position as guessed by the DR system...?
     
  2. Outspacer

    Outspacer

    Messages:
    1,977
    Location:
    United Kingdom
  3. Grey Ghost

    Grey Ghost

    Messages:
    3
    Hi Milouse, thanks for your work on the data, great work!
    One question, is there anyway of getting historic information for the DR & SR? Using your bookmark button I can get today's values, but I was wondering if it possible to get it for previous days? I would like to have a look to see how it has changed since I started.
     
    Milouse likes this.
  4. Foxis

    Foxis

    Messages:
    181
    Ah - thanks! :)
     
  5. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    I'm currently polling the Profiles in a more deeper way, with DR/SR history. This is under way, but i can already see this:
    D->C base limit has been changed from 5000 to 4000 the 6th of December.

    Not related to the poll, i also saw some inconsistent data about the A->S base limit.

    Not currently. I could setup a solution in future, but in the meantime, i can have a manual look at it if you provide your profile number or link.
     
    godzella48 and Outspacer like this.
  6. Outspacer

    Outspacer

    Messages:
    1,977
    Location:
    United Kingdom
    Thanks for the confirmation about D->C :cheers:

    Yes, I think the threshold for getting into S was also reduced - some players with A said they got a boost to their DR bar after the update, and one went up to S after the next race (so, probably, DR letter is only updated when driver points changes). But since most A & S players are pretty active, I didn't see any hint as to what the old threshold was, just by looking at current data - 55000 maybe?
     
    Last edited: Dec 12, 2017
  7. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    A->S base limit has indeed been changed from 55,000 to 50,000 the 6th of December.

    Based on the history data of some S profile driver provided in this thread, most by @mrnascar242424
     
    mrnascar242424 and Outspacer like this.
  8. Grey Ghost

    Grey Ghost

    Messages:
    3
  9. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    The K' Bookmarklet is now version 1.3 (edit: now 1.4), with a new feature: Sport Mode Profile history!

    Once installed in your bookmark bar, use it on an official profile page and it will display the usual info, but with a new link. Clicking this link generates a link to a stat page (that lands on K' for better displaying features).
    Here's an example generated by my Profile.
    As you can see, you can share the result as data are in the URL itself. Refreshing the K' page is useless, as the content (and the link) is like a snapshot. To get up-to-date stats, you need to use the bookmarklet.

    It has been tested on Chrome, i guess it works on other browsers.
    Waiting for feedback.

    I think you have what's needed now ;)
     
    Last edited: Dec 13, 2017
  10. Bass Addict

    Bass Addict Premium

    Messages:
    1,802
    Location:
    United States
    Works like a charm...:tup: Thank you so very much...

    On Chrome and Windows 8...
     
    manos147 likes this.
  11. machine1121

    machine1121

    Messages:
    236
    Location:
    United States
    I just tried it on my profile:

    https://www.gran-turismo.com/us/gtsport/user/profile/3399566/overview

    My current DR is 31889, but the plot generated on KudosPrime only showed 9 days worth of activity and topped out at 15174. This is probably accurate for my first 9 days of activity, but I don't know what caused it to stop. I havn't played Sport Mode every day, so hopefully your tool isn't dependent on consecutive days played.
     
    Milouse and Bass Addict like this.
  12. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    Thanks for the feedback!
    I found the bug: the december month was missing.
    Sadly, the bug is in the bookmarklet. So i updated it to Bookmarklet 1.4 and it is required to replace 1.3 by 1.4.
    (Edit: and run it on a reloaded profile page if 1.3 was already running on it)
     
    Bass Addict likes this.
  13. Outspacer

    Outspacer

    Messages:
    1,977
    Location:
    United Kingdom
    What an excellent thing! Thank-you!

    I too seem to be missing some days off the end of my chart, at least a day, probably two or more. My profile. 1.4 works fine now :)

    Your example link doesn't work for me, I just see blank graphs. Could be a clash with the forum markup? Tried to put my generated link in, but lots of the url spills out.

    The bookmarklet hasn't worked for me using Firefox with NoScript, even though NoScript doesn't look like it's blocking anything, and bookmarklets are not forbidden in the settings. That is most likely my problem to solve though!
     
    Milouse likes this.
  14. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    Your link is truncated and i don't know why.
    When sharing such a long link on a site like GT Planet, it's better to use the Link button on a more descriptive and short name, then add the url in the box.
    However, just after my previous message, i made an update that changes the way the links are formed: there are no quotation mark anymore. This apply to future generated URLs without the need for you to update the bookmarklet.
     
  15. machine1121

    machine1121

    Messages:
    236
    Location:
    United States
    Works great now! Thanks for all of your effort.
     
  16. Outspacer

    Outspacer

    Messages:
    1,977
    Location:
    United Kingdom
    I'm old school, I usually type BB url formatting by myself :)

    generated link using link button

    The ']' might clash, I guess.

    by hand

    edit: yes, that's it, using the link button single-quotes the url so it works :)
     
  17. Interesting work, @Milouse

    So it looks like you're getting this data by peeking at fetches the driver profile page is requesting from gran-turismo.com's API? For instance let's see the attached screenshot of a public profile, which fetches data from https://www.gran-turismo.com/nl/api/gt7sp/profile/

    Using the developer console we can look at a page resource with some, er, GTSport-y looking statistics.

    Code:
    {
        "stats_history": [
            {
                "year": "2017",
                "month": "5"
            },
            {
                "year": "2017",
                "month": "6"
            },
            {
                "year": "2017",
                "month": "7"
            },
            {
                "year": "2017",
                "month": "8"
            },
            {
                "year": "2017",
                "month": "9"
            },
            {
                "year": "2017",
                "month": "10",
                "stats1": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "263918",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "155997",
                    "151962",
                    "375117",
                    "0",
                    "505740",
                    "131339",
                    "401304",
                    "576538",
                    "0",
                    "10851",
                    "334248",
                    "0",
                    "612688",
                    "639205"
                ],
                "stats2": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "14",
                    "611",
                    "1119",
                    "1112",
                    "1463",
                    "740",
                    "868",
                    "3545",
                    "3195",
                    "0",
                    "1253",
                    "305",
                    "353",
                    "5707",
                    "1712"
                ],
                "stats3": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "753",
                    "2437",
                    "4236",
                    "6643",
                    "7909",
                    "13201",
                    "14549",
                    "18258",
                    "19805",
                    "0",
                    "25126",
                    "26431",
                    "26918",
                    "33292",
                    "38950"
                ],
                "stats4": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "669200",
                    "509060",
                    "358460",
                    "675770",
                    "1961870",
                    "2175020",
                    "1739420",
                    "2972920",
                    "3349620",
                    "0",
                    "3273470",
                    "3380670",
                    "3385970",
                    "3730120",
                    "4173620"
                ],
                "stats5": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "760",
                    "1960",
                    "4570",
                    "4706",
                    "5566",
                    "10986",
                    "11826",
                    "13704",
                    "15744",
                    "0",
                    "17702",
                    "13600",
                    "13900",
                    "19440",
                    "23260"
                ],
                "stats6": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "3"
                ],
                "stats7": [
                    "0"
                ],
                "stats11": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "1",
                    "1",
                    "4",
                    "4",
                    "4",
                    "0",
                    "4",
                    "4",
                    "0",
                    "4",
                    "0",
                    "0",
                    "4",
                    "4"
                ],
                "stats12": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "1",
                    "1",
                    "11868",
                    "13090",
                    "16658",
                    "0",
                    "17532",
                    "18976",
                    "0",
                    "18862",
                    "0",
                    "0",
                    "23644",
                    "26752"
                ],
                "stats13": [
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "49",
                    "43",
                    "55",
                    "57",
                    "69",
                    "0",
                    "71",
                    "99",
                    "0",
                    "99",
                    "0",
                    "0",
                    "99",
                    "99"
                ]
            },
            {
                "year": "2017",
                "month": "11",
                "stats1": [
                    "334126",
                    "269944",
                    "509971",
                    "233082",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "335586",
                    "612671",
                    "174471",
                    "325206",
                    "289831",
                    "129290",
                    "0",
                    "0",
                    "0",
                    "0",
                    "361409",
                    "0",
                    "0",
                    "0",
                    "0",
                    "18329",
                    "244966",
                    "475050",
                    "639546"
                ],
                "stats2": [
                    "3219",
                    "6947",
                    "5258",
                    "6248",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "9976",
                    "652",
                    "1519",
                    "2674",
                    "3218",
                    "4244",
                    "0",
                    "0",
                    "0",
                    "0",
                    "5409",
                    "0",
                    "0",
                    "0",
                    "0",
                    "6600",
                    "6662",
                    "10822",
                    "910"
                ],
                "stats3": [
                    "42291",
                    "45734",
                    "51380",
                    "52421",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "56673",
                    "61904",
                    "63649",
                    "66901",
                    "69799",
                    "71092",
                    "0",
                    "0",
                    "0",
                    "0",
                    "74338",
                    "0",
                    "0",
                    "0",
                    "0",
                    "75839",
                    "76413",
                    "82580",
                    "87612"
                ],
                "stats4": [
                    "4330770",
                    "4510420",
                    "5096520",
                    "5146720",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "5555870",
                    "5791170",
                    "6001470",
                    "6123170",
                    "6185070",
                    "6296680",
                    "0",
                    "0",
                    "0",
                    "0",
                    "6502380",
                    "0",
                    "0",
                    "0",
                    "0",
                    "6625930",
                    "6633130",
                    "6882380",
                    "6784280"
                ],
                "stats5": [
                    "25380",
                    "28680",
                    "33680",
                    "34580",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "37590",
                    "40840",
                    "39710",
                    "41870",
                    "43670",
                    "43204",
                    "0",
                    "0",
                    "0",
                    "0",
                    "42774",
                    "0",
                    "0",
                    "0",
                    "0",
                    "43794",
                    "44154",
                    "44969",
                    "48399"
                ],
                "stats6": [
                    "0"
                ],
                "stats7": [
                    "0"
                ],
                "stats11": [
                    "4",
                    "4",
                    "5",
                    "5",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "5",
                    "5",
                    "0",
                    "5",
                    "5",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "5",
                    "0",
                    "0",
                    "0",
                    "0",
                    "5",
                    "5",
                    "5",
                    "5"
                ],
                "stats12": [
                    "26498",
                    "27320",
                    "32286",
                    "32299",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "35151",
                    "35353",
                    "0",
                    "35070",
                    "35070",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "34962",
                    "0",
                    "0",
                    "0",
                    "0",
                    "35942",
                    "36661",
                    "37671",
                    "41207"
                ],
                "stats13": [
                    "99",
                    "99",
                    "99",
                    "99",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "99",
                    "99",
                    "0",
                    "99",
                    "99",
                    "0",
                    "0",
                    "0",
                    "0",
                    "0",
                    "99",
                    "0",
                    "0",
                    "0",
                    "0",
                    "99",
                    "99",
                    "99",
                    "99"
                ]
            },
            {
                "year": "2017",
                "month": "12",
                "stats1": [
                    "0",
                    "271324",
                    "631969",
                    "385463",
                    "0",
                    "209619",
                    "0",
                    "332708",
                    "407954",
                    "0",
                    "0",
                    "0",
                    "13897"
                ],
                "stats2": [
                    "0",
                    "3222",
                    "10064",
                    "12172",
                    "0",
                    "3361",
                    "0",
                    "14321",
                    "11282",
                    "0",
                    "0",
                    "0",
                    "11282"
                ],
                "stats3": [
                    "0",
                    "90992",
                    "97151",
                    "101005",
                    "0",
                    "103102",
                    "0",
                    "107586",
                    "110509",
                    "0",
                    "0",
                    "0",
                    "110646"
                ],
                "stats4": [
                    "0",
                    "7105580",
                    "7803030",
                    "8018380",
                    "0",
                    "8188980",
                    "0",
                    "8597930",
                    "10085580",
                    "0",
                    "0",
                    "0",
                    "10085580"
                ],
                "stats5": [
                    "0",
                    "50709",
                    "55139",
                    "58099",
                    "0",
                    "61789",
                    "0",
                    "67939",
                    "68759",
                    "0",
                    "0",
                    "0",
                    "68849"
                ],
                "stats6": [
                    "0"
                ],
                "stats7": [
                    "0"
                ],
                "stats11": [
                    "0",
                    "5",
                    "5",
                    "5",
                    "0",
                    "5",
                    "0",
                    "5",
                    "5"
                ],
                "stats12": [
                    "0",
                    "42426",
                    "45442",
                    "47322",
                    "0",
                    "47467",
                    "0",
                    "48071",
                    "48916"
                ],
                "stats13": [
                    "0",
                    "99",
                    "99",
                    "97",
                    "0",
                    "99",
                    "0",
                    "92",
                    "99"
                ]
            }
        ]
    }
    
    EDIT: OHHHH so yeah it's just a table basically with one column per 'stats##' column title, and each row representing a day of the month it looks like?

    So you are taking this data on a per profile basis and parsing it so it's a table again of driver data. I'm assuming 'stats13' is SR, for instance.

    Observers will notice that rows have a 0 value recorded for calendar days where you don't play Sport Mode.
     

    Attached Files:

    Last edited: Dec 14, 2017
  18. Grey Ghost

    Grey Ghost

    Messages:
    3
    Milouse you are a star! This is brilliant and just what I was after, love the graphs too! :tup::tup::tup:
     
    Milouse likes this.
  19. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    Yes, 0 means no play.

    The GT forum turned your API url as a clickable link, maybe you should change that, visitors would click it and get an error (and generate one in the official site log)
     
  20. zzz_pt

    zzz_pt

    Messages:
    7,786
    Location:
    Germany
    I can only make it work on Chrome, not FF. Is that intended? :)
     
    Milouse likes this.
  21. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    Thanks for reporting this.
    Firefox became a bit touchy with bookmarklet it seems. I changed the code so that it now should work with Firefox -> K' Bookmarklet 1.5 (i also removed the DPUR)
     
    Last edited: Dec 14, 2017
    manos147 and zzz_pt like this.
  22. zzz_pt

    zzz_pt

    Messages:
    7,786
    Location:
    Germany
    Great! Working now. All good.

    Thank you. :cheers:

    EDIT: Do you by any chance can see the data of how many players Portugal has? Or is it only technically limited to the top 10?
     
    Mirror_man likes this.
  23. Milouse

    Milouse

    Messages:
    1,844
    Location:
    France
    I updated the stats based on poll on Profiles, with a poll made yesterday. Data used replace the old ones.

    I cut under 2% for margin of error reason, but that's probably over zealous. On two Snapshot, both on distinct sample of more than 5000 profiles, Portugal weight 1.2% and 1.1%, behind Russia and in front of Austria.
     
    Outspacer and zzz_pt like this.
  24. Mirror_man

    Mirror_man

    Messages:
    1,391
    Location:
    Portugal
    Just for curiosity, do you know how many DR points has the "Number One" on that "Points Score Table" (World Wide)???
     
  25. NoFinClue

    NoFinClue

    Messages:
    166
    Milouse likes this.
  26. Mirror_man

    Mirror_man

    Messages:
    1,391
    Location:
    Portugal
    I still don´t have the "routine" working on Firefox (64bits) ...
     
  27. cleanLX

    cleanLX

    Messages:
    890
    Location:
    United States
    works on my firefox... version 57.0.2(64bit)
    @Milouse - thank you.
     
    Milouse likes this.
  28. Mirror_man

    Mirror_man

    Messages:
    1,391
    Location:
    Portugal
    Ups... After all.. it worked!! I had previously a problem when I dragged the K´1.5 Shortcut/"Badge"... and after having deleted my previous test... I did it all again (the dragging) and now it worked!! :) Thanks guys! :)
     
  29. Outspacer

    Outspacer

    Messages:
    1,977
    Location:
    United Kingdom
    Well this was spotted not long ago, so maybe there's a maximum 75,000 that a very few will attain.

     
    Milouse and Mirror_man like this.
  30. Mirror_man

    Mirror_man

    Messages:
    1,391
    Location:
    Portugal
    I see... there´s a limit... that is a bit strange... I would say... It falls behind the philosophy of Grand Turismo.... ("There´s no limits!!!") :(