markus-wa / demoinfocs-golang

A Counter-Strike 2 & CS:GO demo parser for Go (demoinfo)
https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs?tab=doc
MIT License
668 stars 89 forks source link

Parsing POV demos from scrims #426

Open jlirms opened 9 months ago

jlirms commented 9 months ago

Describe the bug Parsing a POV demo leads to 2023/09/30 20:49:04 failed to parse demo: unable to find new baseline 2

To Reproduce Using this demo CS2 pov demo, from a dathost server of a scrim Acquired by typing record demo_name from one player into their console, at scrim start.

Code: Running example script with demo above. Stack trace: жучок <Glock-18 (HS)> dofo Gun Don <Glock-18 (HS)> Yo_Man83 J <USP-S (HS)> Gun Don Angelus lapsus <Glock-18 (HS)> J Angelus lapsus <Glock-18 (HS)> P cptkurtka023 <USP-S (HS)> Kallen Gun Don <AK-47> dofo P <USP-S (HS)> Gun Don жучок <AK-47 (HS)> J 2023/09/30 20:55:35 failed to parse demo: unable to find new baseline 2 stacktrace: goroutine 6 [running]:

Seems like the demo does begin parsing as we expect and the value 2 (I believe its the baseline entity Id?) is different for other POV demos we have.

Expected behavior To behave as close to as other demos downloaded from HLTV Library version e.g. v1.2.1

Additional context I can provide more POV demos if needed! Just message below.

markus-wa commented 8 months ago

thanks @jlirms - I will try to take a look when I have some time