StatsHelix / demoinfo

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

Demofiles from CPH 2014 can't be read, while demoinfogo can process them #19

Closed moritzuehling closed 9 years ago

moritzuehling commented 9 years ago

There is an exception during the parsing of the packet-entites. (sigh)

An example of a non-working demo is in the hltv demo archive (tested with the demo of de_inferno).

Example outout of demoinfogo by Valve: https://gist.github.com/moritzuehling/a89a9587ab19d7953547

If anybody finds my mistakes, I'd be thankful. I'll look into the parsing-code myself.

Thanks to /u/Pigophone for reporting this bug!

moritzuehling commented 9 years ago

I think identified the issue. Some type of the 11 types of the special floats does not seem to be read correctly.

The first call to return a wrong value is this one.

The original parser outputs

Field: 5, m_vecVelocity[1] = 31.697927
Field: 7, m_vecOrigin = 5.000000, 770.375000

The value I read for field 5 is okay, but field 7 is read as 0, 0.75

So let's dig into that! But not this night.