Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m_iMatchStats_Deaths not sorted properly #392

Open
1 task done
MHase opened this issue Aug 15, 2023 · 2 comments
Open
1 task done

m_iMatchStats_Deaths not sorted properly #392

MHase opened this issue Aug 15, 2023 · 2 comments
Labels

Comments

@MHase
Copy link

MHase commented Aug 15, 2023

Research

  • I searched but did not find an existing issue or discussion about this bug.

Description

I've noticed that m_iMatchStats_Deaths is not sorted properly which results in mixed matchStats for each player

m_iMatchStats_Deaths: {
  '011': 1,
  '012': 1,
  '013': 0,
  '014': 0,
  '015': 0,
  '016': 0,
  '017': 0,
  '018': 0,
  '019': 0,
  '020': 0,
  '021': 0,
  '022': 0,
  '023': 0,
  '024': 0,
  '025': 0,
  '026': 0,
  '027': 0,
  '028': 0,
  '029': 0,
  '000': 1,
  '001': 1,
  '002': 0,
  '003': 0,
  '004': 1,
  '005': 1,
  '006': 1,
  '007': 0,
  '008': 1,
  '009': 1,
  '010': 1
},

some rounds looks like this where NOTHING happened but still player "died" (this is "last" -> "029" round result from short match where only 13 rounds were played)

{
  kills: 0,
  damage: 0,
  equipmentValue: 0,
  moneySaved: 0,
  killReward: 0,
  liveTime: 0,
  deaths: 1,
  assists: 0,
  headShotKills: 0,
  objective: 0
}

Code to reproduce

demoFile.gameEvents.on("player_disconnect", ({ userid }) => {
  const player = demoFile.entities.getByUserId(userid)!;
  console.log(player);
});

Affected demos

https://drive.google.com/file/d/1KOLVI-1p1EKw008KTbZZ4MPQJD4Yk382/view

@MHase MHase added the bug label Aug 15, 2023
@saul
Copy link
Owner

saul commented Aug 15, 2023

Hi @MHase - thanks for the report. Please can you attach the affected demo to aid investigation?

@MHase
Copy link
Author

MHase commented Aug 15, 2023

@saul
here you go :) this is typical MM
https://drive.google.com/file/d/1KOLVI-1p1EKw008KTbZZ4MPQJD4Yk382/view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants