LaihoE / Python-demoparser

CS:GO demo parser
36 stars 2 forks source link

Round is not correctly detected #12

Closed statist32 closed 1 year ago

statist32 commented 1 year ago

If I am parsing game events like 'weapon_fire' or 'player_death', the round property is always 0. I guess that the round change is not propagated correctly.

LaihoE commented 1 year ago

Hi, yeah this is a bug that was never fixed as I moved on to the CS2 parser. There is a hack that can fix it:

df = parser.parse_events("weapon_fire", props=["round"])

Adding props=["round"] should give you the correct round. Yes this is very nasty sorry.

Anyhow this has properly been fixed in CS2 version.

statist32 commented 1 year ago

Thanks for the workaround. Am I correct, that the cs2 parser can not parse csgo demos?

LaihoE commented 1 year ago

No, you will have to use this one for csgo demos.