ValveSoftware / csgo-demoinfo

CS:GO demo parsing tool
BSD 2-Clause "Simplified" License
482 stars 102 forks source link

Does not work in CS2 #40

Open clankill3r opened 7 months ago

clankill3r commented 7 months ago

When using csgo-demoinfo on demos created in cs2 an error will occur:

CDemoFile::Open: crc_test.dem has invalid demo header ID.

mtms39 commented 3 months ago

When using csgo-demoinfo on demos created in cs2 an error will occur:

CDemoFile::Open: crc_test.dem has invalid demo header ID.

Well it happened to me as well. I checked the hexdump of the demo and found out that there were filled many lines before the header line ID, which should be the first seven bytes of the file (as I can see from my file). Check it out and tell us. For some reason your file is malformed

mtms39 commented 3 months ago

When using csgo-demoinfo on demos created in cs2 an error will occur:

CDemoFile::Open: crc_test.dem has invalid demo header ID.

Well it happened to me as well. I checked the hexdump of the demo and found out that there were filled many lines before the header line ID, which should be the first seven bytes of the file (as I can see from my file). Check it out and tell us. For some reason your file is malformed

In my case I was extracting 3 files from a .rar. I realized that only the first file was being correctly extracted, I mean, without the filling 0s. So I extract each file at a time and worked just fine.