janstuemmel / csgo-log Goto Github PK
View Code? Open in Web Editor NEWGo package for parsing csgo server logfiles.
License: MIT License
Go package for parsing csgo server logfiles.
License: MIT License
Is there a plan to create a library for parsing CS2 logs?
As mentioned by @FlowingSPDG in pullrequest #7, logs can be received by a http request via logaddress_add_http
. Lines from this log do not begin with a leading L
.
Log types that are still missing:
RoundRestart
: World triggered "Restart_Round_(1_second)
ServerMessage
: server_message: "quit"
FreezPeriodStart
: Starting Freeze period
Out of scope ?!
Log file closed
Some events that can occur on the server introduced by pullrequest #7 (without get5)
PlayerKillOther
Players can destroy non-player objects (e.g. chickens) on the mapRconEvent
An rcon event can occur when server admins change cvarsMatchPause
Occurs when match is paused (!?)Golang is stopping me from importing at v2.0.1 (I realise this is the same reason I kept my fork in v2.0.0) because of the language rules that state "If an old package and a new package have the same import path, the new package must be backwards compatible with the old package." (https://golang.org/cmd/go/#hdr-Module_compatibility_and_semantic_versioning)
go get github.com/janstuemmel/[email protected]
go: finding github.com/janstuemmel/csgo-log v2.0.1
go: finding github.com/janstuemmel/csgo-log v2.0.1
go get github.com/janstuemmel/[email protected]: github.com/janstuemmel/[email protected]: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
I think the fix is to change v2.0.0 and v2.0.1 to be v1.1.0 and v1.1.1 respectively, since I don't believe I introduced any breaking changes when I committed the first time and this will make go get
happy. I figure this won't break for anyone else since you can't get the module as a dependency at these new versions anyway due to the error above.
a plaer can switch from a team to Spectator
"Player<12><STEAM_1:1:1010101>" switched from team <TERRORIST> to <Spectator>
this is wrong in the regex for PlayerSwitch
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.