No project description provided
Project description
Demo parser for Counter-Strike 2
Work in progress so expect some bugs here and there!
Install
comming soon!
Useage:
Game events
from demoparser2 import DemoParser
parser = DemoParser("path_to_demo.dem")
df = parser.parse_events("player_death")
Tick data (entities)
from demoparser2 import DemoParser
wanted_props = ["m_vecX", "m_vecY"]
parser = DemoParser("path_to_demo.dem")
df = parser.parse_ticks(wanted_props)
Both events return a Pandas Dataframe.
Example output:
m_vecX m_vecY tick steamid name
0 649.795044 633.648438 0 76512345678912345 person1
1 526.207642 794.186157 0 76512345678912345 person2
2 997.494324 583.692871 0 76512345678912345 person3
3 958.421570 498.485657 0 76512345678912345 person4
4 624.525696 556.522217 0 76512345678912345 person5
... ... ... ... ... ...
913215 924.593140 308.131622 30452 76512345678912345 person6
913216 598.564514 794.186157 30452 76512345678912345 person7
913217 329.393677 323.219360 30452 76512345678912345 person8
913218 526.207642 81.611084 30452 76512345678912345 person9
913219 36.691650 308.887451 30452 76512345678912345 person10
(steamids and names are made up in this example)
You can also filter ticks:
df = parser.parse_ticks(wanted_props, ticks=[x for x in range(29000, 30000)])
Progress:
- Game events
- Server info
- Sendtables
- Serverclasses
- Header
- Packet entites
- String tables
Values to try for tick data (more on the way):
m_vecX
m_vecY
m_vecZ
m_iHealth
m_iTeamNum
m_bInBuyZone
m_szLastPlaceName
m_iWeaponPurchasesThisRound
m_szRagdollDamageWeaponName
m_unTotalRoundDamageDealt
Acknowledgements
Without Dotabuff's dota 2 parser manta this would not have been possible. Check it out: https://github.com/dotabuff/manta
The dota 2 demo format is very similar to CS2 demo format with only a few minor changes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for demoparser2-0.0.1-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 439a11a85715bf1af123fa6d9caf3840349dea92f37aa9406cac81d638909d44 |
|
MD5 | c777c9cd857c3664123165e7b5088118 |
|
BLAKE2b-256 | b616bc25f7c97fcc3a843b717b1cffe8b1575c94814e6812b4b32a14271f8dab |
Close
Hashes for demoparser2-0.0.1-cp311-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bc5e38c5bc9ace52006ef58b2d902c22feb50474bd1b51b0d1b4641a9ad89b3 |
|
MD5 | 2260f8de7e024051d0ec8764e2807033 |
|
BLAKE2b-256 | 8ddda1d2c1c7143505ab923e1acdca29f9ecbbe1273d0d32665bed01f3f42b7e |
Close
Hashes for demoparser2-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da81a6155f3c91070a64b9547db518dc94f6ff67a43c6d48f736c9100b3a052f |
|
MD5 | 504f0075dc6070305678a143daca9fd1 |
|
BLAKE2b-256 | 5febb75c4d11274abb507cfb146ac3496a9de7dafcabf057ebb4199215c1abdf |
Close
Hashes for demoparser2-0.0.1-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a8c1f564d50af380ac31eab14a2c1eba05c0d143222e3b4a5dadaf2a9f1c7a |
|
MD5 | d82d5f5c183b59afe173683e2a688ba1 |
|
BLAKE2b-256 | a38424a9f9527c2affd7394a255b968cae9ae53ab80aa20372222f5e033ae374 |
Close
Hashes for demoparser2-0.0.1-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f93674ab44ab8e2b7e9c65385b03be2f87b50c48da8eebab356ee679b41900 |
|
MD5 | 6eedb07980d94d80e5f55e86e4c7148c |
|
BLAKE2b-256 | bf9433ce96ccd5e4999b0e0deb48db0f9da61334de48d2a77e903f16d4cbb8ba |
Close
Hashes for demoparser2-0.0.1-cp310-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf0d4b40f6179ddb3541196c7b7d253caf28ac391096cb4206e25ab6f26e9527 |
|
MD5 | 430f964a05a1a484ff2497c46c8e4987 |
|
BLAKE2b-256 | 468a780aefb1ecd95e9924f18b30313bff5fc4238b20c7c415f4b2bac50df400 |
Close
Hashes for demoparser2-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697b246fa7ffb1e8251cf1fe06202510206babc8d736dad09f577d26a5ac14da |
|
MD5 | 73371adfe7d014c5e46b327f71c4fa36 |
|
BLAKE2b-256 | bd00c7a1fa221174b98ffccc3843280a9e53e042684a1398332dd186f2800a0d |
Close
Hashes for demoparser2-0.0.1-cp310-cp310-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cba3324528704298d943dba263e8783c0bff24f077095d9365f98c357c0ba19 |
|
MD5 | 52a723f27b2b1e21fb74c472d70c8726 |
|
BLAKE2b-256 | 5e834fb44b7bfcd132b3cbcb2b13caf71bc791de4501290ae450be5822e34075 |
Close
Hashes for demoparser2-0.0.1-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7e21b16920be739e9af1f87159fccccd82329fb926c22755345566b461b24e |
|
MD5 | 1c7c332652eccd012b3ce2f8a35c82b1 |
|
BLAKE2b-256 | 200038adfd9d93394c6ab44554e0cc569ecb96379dd63765f26224d062f8b6e6 |
Close
Hashes for demoparser2-0.0.1-cp39-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30b6073ba6e08b6071fb377f3e6103348cf53c6fa6539c63e0f35f00dda82cf8 |
|
MD5 | 9f16eb80179b8314a7a4c0535c28c15c |
|
BLAKE2b-256 | 378cf362bd9e2cedcb03ab0093aca6a1baef7dd204c61324a08ab026d7c1d6cb |
Close
Hashes for demoparser2-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7db5d4e9f0d857e4fcb7e3792fda0b64233599c91f51df8ea1dcfc671983287e |
|
MD5 | 68c3df0e0c161c5481398c6752bd57b1 |
|
BLAKE2b-256 | fd87657d17eecfb4493429c488ca71e9591dd5623930ac5efe3c4779d7621f0a |
Close
Hashes for demoparser2-0.0.1-cp39-cp39-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78d6de6b5a553d11e99c2778f0d8126f67b1badb821d0dace440cb0d291d369f |
|
MD5 | f3bcbbd6ad58b4cf9fe29e52b571a537 |
|
BLAKE2b-256 | 3cdbca55efb4b74b6d30c8e5603233cd113f82ea728fd02e636a66dcce487a52 |
Close
Hashes for demoparser2-0.0.1-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f75e827ff78ab5ac65c36fe73442a8e90539c840a79ee28f8351ae436654be7 |
|
MD5 | 9777c35271eed3361dfeb2fbc4659bd4 |
|
BLAKE2b-256 | cf511b031adfeafe2a01a81282afc5a5e0035ee992f570ab15b5f8bea5a7a1c0 |
Close
Hashes for demoparser2-0.0.1-cp38-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce134dadf981be14cf3f42aa6ddea3ec21b336c6624373e2ca68db9dc4bad94b |
|
MD5 | 9678dd0277b3aa45fa5ab07560d9283a |
|
BLAKE2b-256 | 069d837f69c11a7413af929cd34b571a66f2df0c509d9fbde3760ec9f5a7987f |
Close
Hashes for demoparser2-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aac03ca851c72724e480d4cdf97e318820646cf468685addeb095b4ac236eac |
|
MD5 | 1461f27f520acf2da47c164a3045a551 |
|
BLAKE2b-256 | 25405c2085a8ab6aa934b08f1d66215202c827871664d116dda59a4a7c438227 |
Close
Hashes for demoparser2-0.0.1-cp38-cp38-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b3c3b05575b2a24ca2f8d28c70e86d2e7b4990e5277db8ef474c032fdd87a98 |
|
MD5 | be54645ff3890c43e253ccfa182eb9f0 |
|
BLAKE2b-256 | 75b3c62ab1fe6a7ef07995c18ce9a010680f439e9712a747e012676bad8e79ea |
Close
Hashes for demoparser2-0.0.1-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c932395f31f87f4af6985632fb811350aad6b6a17f55976b9e06ae9a4fcdde2 |
|
MD5 | 09d8d6cc7e53b5147081b110b01579ac |
|
BLAKE2b-256 | e2c8d7638ad1bbe91834acb0f1e61a1f98e2c5efa365a0bfd5b1b7c53d9b3599 |
Close
Hashes for demoparser2-0.0.1-cp37-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea5eb07e89ea9d9004c8ff2bf5beaa8b0beeafd2be210b8a0d2c47e1cc98b964 |
|
MD5 | 48e81f09aeee3c290d8ec9360f724e4a |
|
BLAKE2b-256 | 5c248f30c4847827f44a18b077468957178f61edd10f49859a13c609ed670bb7 |
Close
Hashes for demoparser2-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55c272e37139b0f4bdaebce68ce520fbb331e059de7211194c15e0268f2d4adc |
|
MD5 | aea0a98ba8d6fc7bdc30324c983e1028 |
|
BLAKE2b-256 | 67e95ba8b1df23eede4a791a57487931bc804e46978314d4ee79796fe2cab95f |
Close
Hashes for demoparser2-0.0.1-cp37-cp37m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ea53dbb0989984faf393107e618adf5aeaf8e80f295afafab35d9579bdcd21a |
|
MD5 | 17a2c71bce8ef9a4d45514df12e46f83 |
|
BLAKE2b-256 | 7a8870018a5bc3fc57cd03dd55d211b33598b0d38a96d2b8c57f3365c8d972f1 |