Closed xGuysOG closed 4 months ago
The reason these demos are failing to read fully is because they are not complete recordings. They have enough data for the match end at least, but after that they appear to have incomplete data. I have just raised a PR (#44) to not throw when trying to read CDemoFileInfo (which is at the end of the file).
Even when the PR is merged, you will still need to wrap ReadAllAsync
in a try/catch to catch EndOfStreamException. I'm not a huge fan of having to catch errors, so I may make further API changes to catch this at the top level.
The fix is released as v0.11.1
Research
Description
I have 2 demos that are resulting in EOF. Demos works fine on 2D demo sites and in cs2 itself. It seems to be a contained error to this parser.
Code to reproduce
Affected demos
https://drive.google.com/drive/folders/1dgPmwyjy5UlEsDW-eF8rdyRNFxAmEzCa?usp=sharing