You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# demoinfocs-golang - CS:GO Demo Parser
2
2
3
-
A blazing fast, feature complete and production ready Go library for parsing and analysing of Counter Strike: Global Offensive (CS:GO) demos (aka replays). It is based on <ahref="https://github.com/ValveSoftware/csgo-demoinfo"rel="external">Valve's demoinfogo</a> and <ahref="https://github.com/StatsHelix/demoinfo"rel="external">SatsHelix's demoinfo</a> but provides many improvements.
3
+
A blazing fast, feature complete and production ready Go library for parsing and analysing of Counter Strike: Global Offensive (CS:GO) demos (aka replays).
4
4
5
5
[](https://vshymanskyy.github.io/StandWithUkraine)
6
6
@@ -85,6 +85,7 @@ package main
85
85
86
86
import (
87
87
"fmt"
88
+
"log"
88
89
"os"
89
90
90
91
dem "github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs"
@@ -94,7 +95,7 @@ import (
94
95
funcmain() {
95
96
f, err:= os.Open("/path/to/demo.dem")
96
97
if err != nil {
97
-
panic(err)
98
+
log.Panic("failed to open demo file: ", err)
98
99
}
99
100
defer f.Close()
100
101
@@ -117,7 +118,7 @@ func main() {
117
118
// Parse to end
118
119
err = p.ParseToEnd()
119
120
if err != nil {
120
-
panic(err)
121
+
log.Panic("failed to parse demo: ", err)
121
122
}
122
123
}
123
124
```
@@ -219,7 +220,7 @@ There is one caveat however: Beta features - which are marked as such via commen
219
220
-[megaclan3000](https://github.com/megaclan3000/megaclan3000) - A CS:GO stats page for clans with recent matches and player statistics
220
221
-[csgo Python library](https://github.com/pnxenopoulos/csgo) - A wrapper for the Golang parser in Python
221
222
222
-
If your project is using this library feel free to submit a PR or send a message in [Gitter](https://gitter.im/csgodemos/demoinfo-lib) to be included in the list.
223
+
If your project is using this library feel free to submit a PR or send a message via [Discord](https://discord.gg/eTVBgKeHnh) to be included in the list.
223
224
224
225
## Development
225
226
@@ -304,6 +305,8 @@ To install some (optional, but quite handy) `pre-commit` and `pre-push` hooks, y
304
305
305
306
## Acknowledgements
306
307
308
+
This library was originally based on <ahref="https://github.com/ValveSoftware/csgo-demoinfo"rel="external">Valve's demoinfogo</a> and <ahref="https://github.com/StatsHelix/demoinfo"rel="external">SatsHelix's demoinfo</a> (although today it shares little resemblence with these two).
309
+
307
310
Thanks to [@JetBrains](https://github.com/JetBrains) for sponsoring a license of their awesome [GoLand](https://www.jetbrains.com/go/) IDE for this project - go check it out!
308
311
309
312
And a very special thanks goes out to all the [⭐contributors⭐](https://github.com/markus-wa/demoinfocs-golang/graphs/contributors)️, be it in the form of PRs, issues or anything else.
Copy file name to clipboardExpand all lines: examples/README.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,15 @@
2
2
3
3
Here you can find a overview of examples on how to use demoinfocs-golang.
4
4
5
+
:information_source: Example code may not be production ready - specifically error handling and such is done in a simplified way and should not be used in critical systems as-is.
6
+
5
7
|Example|Description
6
8
|-|-|
7
9
|[heatmap](heatmap)|Creating a heatmap from positions where players fired shots from|
8
10
|[nade-trajectories](nade-trajectories)|Map overview with grenade trajectories|
9
11
|[entities](entities)|Using unhandled data from entities (`Parser.ServerClasses()`)|
10
12
|[net-messages](net-messages)|Parsing and handling custom net-messages|
13
+
|[encrypted-net-messages](encrypted-net-messages)|Parsing and handling encrypted net-messages (e.g. text chat in MM demos)|
Copy file name to clipboardExpand all lines: examples/heatmap/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
This example shows how to create a heatmap from positions where players fired their weapons from.
4
4
5
+
:information_source: Uses radar images from `https://radar-overviews.csgo.saiko.tech/<map>/<crc>/radar.png` - see https://github.com/saiko-tech/csgo-centrifuge for more info.
0 commit comments