-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some Tournament Demos Skipping First Round in parseEvent #59
Comments
Yes I think this was also a bug in csgo demos, seems like they didn't fix it for cs2. Unfortunately I'm quite confident this is not a bug in the parser, but a bug in the demo and so there is no easy fix. It's quite interesting that it works for some demos 🤔 |
Ah, bummer. I'll comment back if I can find a workaround. For csgo, I was using demofile and ya had to use entity changing cause I think I remember that too with it not triggering the actual event:
|
Yeah seems like implementing something similar will be needed. I'm just wondering didn't that absolutely ruin performance? |
of course there is a tiny chance that they fix the events for cs2. Not too hopeful tho... |
I'm not sure about performance, I'm sorry. Didn't have anything to compare it to since I had to do it at the very beginning to be able to get consistent data. |
I submitted a bug report to them, so we will see. |
@LaihoE @dbalders the first round event is emitted in both matches (by workaround I guess), found this line, might be helpful: https://github.com/markus-wa/demoinfocs-golang/blob/master/pkg/demoinfocs/datatables.go#L1205 Also in https://github.com/saul/demofile first |
I went and looked at the demos and the ones that are breaking are those that start when the first round has already started. Is this normal for pro demos? Was this also the reason for the csgo demos missing the first round? |
I have not seen enough of those demos, but I assume it's rather normal on HLTV to start demo few seconds after first round when players are just leaving their spawn, also not sure whether that was the reason of missing first rounds in csgo demos. |
I don't know 100% since I've never built the actual demo parser. But, historically the demos do not start mid already in first round. Usually its mid warm up round which gets reset (sometimes multiple times) before the match actually starts. With the code I sent earlier I can capture the first round of every csgo demo (and did for the last year+), so it is resetting to start the round, just not in the same way it starts all the other rounds for some reason. |
Their last 2 cs patches did both mention changes to the demo system. So, maybe work is still being done. Also, just wanted to say I appreciate your work on this package @LaihoE. Thank you for making it. |
Error: For demos from some tournament organizers, it seems that when parsing events like round_start/round_end/etc, it isn't capturing the first round of the match. It is starting on round 2. TotalRoundsPlayed is already at 1 for the first object in the array.
Version: 0.12.0
Code:
let roundStartTimes = parseEvent(demoFileName, "round_start", startEvents)
Example 1 (Broken) (Thunderpick): https://www.hltv.org/matches/2367520/furia-vs-apeks-roobet-cup-2023
![Screenshot 2023-11-01 at 1 14 51 PM](https://private-user-images.githubusercontent.com/4715098/279792485-a71625aa-6dfa-4b2e-8f0e-8dc2779a0dd7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU5MTEsIm5iZiI6MTcyNDY5NTYxMSwicGF0aCI6Ii80NzE1MDk4LzI3OTc5MjQ4NS1hNzE2MjVhYS02ZGZhLTRiMmUtOGYwZS04ZGMyNzc5YTBkZDcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTExNDhlM2EzYmI5MGExNGQwYzU2YTFiYzhhZjkwYWM1NjRkODc1ZDM2ZGRkZDk4NmYxNjNhMmFkM2U0OTI4MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.zP4GsT47i7ZlFCXZSOZ-a1XntBF0om59e7D_wBII3tw)
Example 2 (Broken) (Roobet Cup): https://www.hltv.org/matches/2367600/complexity-vs-mouz-thunderpick-world-championship-2023
![Screenshot 2023-11-01 at 1 15 23 PM](https://private-user-images.githubusercontent.com/4715098/279792678-e6ebd139-b02e-44f8-90b3-3a92eaee404a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU5MTEsIm5iZiI6MTcyNDY5NTYxMSwicGF0aCI6Ii80NzE1MDk4LzI3OTc5MjY3OC1lNmViZDEzOS1iMDJlLTQ0ZjgtOTBiMy0zYTkyZWFlZTQwNGEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9M2E1ODg3YjM5NTEzNGZlZDM5Y2EzMGJmZGE0YzE4NzZkMjUwMWNlMTU0MGI2YzllNjNmNjY5NDg5ZGE2MmE1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.9GQe1UGcm7KbYJlMe8N4B98v0RJ3tm4vQtfP24CVMxM)
Example 3 (Working) (ESL Challenger League): https://www.hltv.org/matches/2367288/bad-news-bears-vs-nouns-esl-challenger-league-season-46-north-america
![Screenshot 2023-11-01 at 1 15 55 PM](https://private-user-images.githubusercontent.com/4715098/279793007-c637cc87-b7d6-4e0b-9fc2-02358f9d4225.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU5MTEsIm5iZiI6MTcyNDY5NTYxMSwicGF0aCI6Ii80NzE1MDk4LzI3OTc5MzAwNy1jNjM3Y2M4Ny1iN2Q2LTRlMGItOWZjMi0wMjM1OGY5ZDQyMjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NzgwMDliYTQxY2ZiZjZkZmQ0MWYzMjFiZGI5YmYxOThlOWExODkzMjlkOWFhZTI2MDE1NDI5MDM4YmUyN2M5OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.bflOHMUHuQwbDbBc9YVVbQEURfzxpuMvJot_kKVyYqs)
Example 4 (Working) (ESL Challenger League): https://www.hltv.org/matches/2367484/spirit-vs-saw-esl-challenger-league-season-46-europe
![Screenshot 2023-11-01 at 1 27 02 PM](https://private-user-images.githubusercontent.com/4715098/279793707-b45aeac9-c6c8-4324-a4cb-1c20e45e0349.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU5MTEsIm5iZiI6MTcyNDY5NTYxMSwicGF0aCI6Ii80NzE1MDk4LzI3OTc5MzcwNy1iNDVhZWFjOS1jNmM4LTQzMjQtYTRjYi0xYzIwZTQ1ZTAzNDkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9N2NiYmYzZTAxNDYyZmNiMWEyN2IyZTNjNTEyMTQwNjg0NGM0MjhkYzY5ZGM4YjIwNzZhNzI3ZjU0MTUwMTVmYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.GonKf-iUgg2VPie3_MxnZmJ1BBvdc882lDN6-PU5r9M)
Example 5 (Working) (CCT): https://www.hltv.org/matches/2367826/forze-vs-preasy-cct-central-europe-series-8
![Screenshot 2023-11-01 at 1 38 58 PM](https://private-user-images.githubusercontent.com/4715098/279796492-50e73f47-4c44-4e7b-8053-cc9d9b162d38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU5MTEsIm5iZiI6MTcyNDY5NTYxMSwicGF0aCI6Ii80NzE1MDk4LzI3OTc5NjQ5Mi01MGU3M2Y0Ny00YzQ0LTRlN2ItODA1My1jYzlkOWIxNjJkMzgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjM2YThkOWM3YWFjYTYyZDU5NjY2ZDc4MjJlNjU3NjBlZjMwNGQzODY1NjFkZjRlZDM0MTMwNjc0OTZlZDU2ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.x5YRR2S1IIRH-ftASkcRv1qRVLquGcOeccqsHdVRFn0)
Example 6 (Broken) (ESL Impact): https://www.hltv.org/matches/2367268/9-pandas-fearless-vs-gl-prism-esl-impact-league-season-4-europe
![Screenshot 2023-11-01 at 1 44 25 PM](https://private-user-images.githubusercontent.com/4715098/279797902-ec04e3b2-783e-42fe-a269-7395050ac252.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2OTU5MTEsIm5iZiI6MTcyNDY5NTYxMSwicGF0aCI6Ii80NzE1MDk4LzI3OTc5NzkwMi1lYzA0ZTNiMi03ODNlLTQyZmUtYTI2OS03Mzk1MDUwYWMyNTIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjZUMTgwNjUxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTI0YTBjODEwZjkwOWU4N2YyNTE1ZThiZmJkYTA5ZTQ0MDM0MDBjNmU0OWVlNmI4Zjk4NTQ4OTk3Y2JkOWM0NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.kaUEFMhh-fo5Gjfi4vMEr2WNhXj_nm0VxFr4isA3rUo)
The text was updated successfully, but these errors were encountered: