Closed David-Durst closed 3 years ago
Hi @David-Durst - thanks for the report
Could you have a look at #315 to see if this change works for you? you will need to use the new flag IgnoreErrBombsiteIndexNotFound
, more details on the PR
Cheers
Works for me. Confirmed with https://github.com/David-Durst/csknow/blob/1c0f0942de698e69794e325decdad46918076d23/test_parser/main.go#L18-L19.
Thanks!
Describe the bug Retakes demos seem to lack some information on bomb plants. In version 2.5.0, the demo parser was able to complete processing demos, even if the bomb plants information was invalid. In version 2.11.1, the demo parser terminates early with the error message "bombsite with index 0 was not found" from https://github.com/markus-wa/demoinfocs-golang/blob/b2c45b12fb7816f1762374691e12ec1e0056afd1/pkg/demoinfocs/game_events.go#L657. Can the parser continue parsing and print non-fatal errors if the bomb plant information is invalid?
To Reproduce Download link to an affected demo: https://drive.google.com/file/d/1_Rae00HJMhPmD-7Wpy_ufRKO3074ERzv/view?usp=sharing
This is a retakes game I played on a listenserver with friends connected over the internet.
Code:
Expected behavior The parser processes the entire game.
Observed behavior The parser terminates early with the following message
Library version e.g. v2.11.1
Additional context I'm using Ubuntu 21.04.