StatsHelix / demoinfo

A library to analyze CS:GO demos in C#
MIT License
321 stars 78 forks source link

Null Weapons #141

Closed JordanBerge closed 6 years ago

JordanBerge commented 6 years ago

Been playing with the demo extraction on and off and it was working fine till I tried putting some more recent demos through and now I am getting errors for Null Weapons. player.ActiveWeapon.Weapon is returning 'Object reference not set to an instance of an object.' and iterating through player Weapons I am getting similar type of errors. Did something change to the way demos capture this information? Also if this has already been answered sorry, I couldn't find anything recent about this type of issue.

JordanBerge commented 6 years ago

I noticed that Player values are null as well. I went back to a couple of demos from HLTV from December and those ones work, but anything starting in this year is returning Null values for some of the Players and Weapons. Did something change to cause this problem or do I need to use a newer version of the library. I am currently using the NuGet Stable version.

JordanBerge commented 6 years ago

User Error! I messed up a part of my code.