ValveSoftware / csgo-demoinfo

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

Does not work in CS2 #40

Open clankill3r opened 9 months ago

clankill3r commented 9 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 5 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 5 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.

clankill3r commented 4 days ago

I move to https://github.com/markus-wa/demoinfocs-golang It seems to be a lot faster and getting way more love then this repository.