pubg / api-assets

Official Resources for PUBG API Developers
419 stars 115 forks source link

Bug: Survival Mastery returns zero total matches played for players past level 500 #236

Open matthiggins opened 1 year ago

matthiggins commented 1 year ago

This appears to be a bug that was introduced with the most recent update 22.2 allowing players to level up past 500.

Issue

Players that have leveled past 500 (AKA Tier 1 - Tier 5) have a totalMatchesPlayed of 0 when requesting Survival Mastery for that player. Additionally, the lastMatchId is empty.

How to reproduce

The request must be for a player above Tier 0 level 499. In this example we'll use TGLTN's account ID.

Bad response example

[
    "data" => [
      "type" => "survivalMasterySummary",
      "id" => "account.82bad0072f31455d8d9f8d834da2f2f3",
      "attributes" => [
        "totalMatchesPlayed" => 0,
        "stats" => [...],
        "xp" => 995830,
        "level" => 97,
        "lastMatchId" => "",
      ],
    ],
    "links" => [
      "self" => "https://api.pubg.com/shards/steam/players/account.82bad0072f31455d8d9f8d834da2f2f3/survival_mastery",
    ],
    "meta" => [],
  ]

Expected response

The expected response would include a value above 0 for totalMatchesPlayed and a match ID for lastMatchId

thedarkman commented 1 year ago

I would also like to mention that we would also need the tier level now included, so this might be also a feature request as well