Wszystkie dyskusje > Fora Steam > Steam Community > Szczegóły wątku
kgb_rade 14 października 2020 o 3:23
CS:GO Demo file parser
Hi there,
I'm working on some app to analyze demo data. I saw that there is few libraries for parsing a demo like CSGO-Demos-Manager from akiver and many others, but I'm wondering how I can do it myself with PHP? I want to directly open this file in PHP and get data that I need.
Do anyone have experience with this?
< >
Wyświetlanie 1-7 z 7 komentarzy
ReBoot 14 października 2020 o 3:26 
Does PHP even support opening binary data & parsing a byte array? Does PHP even have byte arrays as type?
kgb_rade 14 października 2020 o 3:36 
Well yes, there is unpack method
ReBoot 14 października 2020 o 4:34 
Well, if there's a way in PHP to deal with binary data, operating in a stream of raw bytes (as opposed to char/string-based data), then you can achieve pretty much anything in PHP, including decoding demo files.
Ostatnio edytowany przez: ReBoot; 14 października 2020 o 4:38
kgb_rade 14 października 2020 o 4:48 
Well I found chr and pack/unpack for PHP, so it is possible. But the problem is how to separate that data
kgb_rade 14 października 2020 o 5:07 
Yup, saw it, tried it and it works as they write it, but still not enough information on valve documentation.
ReBoot 14 października 2020 o 5:10 
What are you missing?
< >
Wyświetlanie 1-7 z 7 komentarzy
Na stronę: 1530 50

Wszystkie dyskusje > Fora Steam > Steam Community > Szczegóły wątku
Data napisania: 14 października 2020 o 3:23
Posty: 7