Releases: markus-wa/demoinfocs-golang
v2.0.0
Doc Links
The new docs are hosted on the fabulous new go.dev page.
Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc
Go Get
Watch out, there's a new module path for go get and import!
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
Upgrading from v1.x
If you are currently using version 1.x of this library, check out this wiki page for an upgrade guide.
Breaking Changes
- Import path base has changed from
github.com/markus-wa/demoinfocs-golangtogithub.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs - Replaced main public structs with interfaces (
Parser,GameState,Participants,Entity,Property)- These interfaces already existed before but used to be prefixed with
I(e.g.IParser)
- These interfaces already existed before but used to be prefixed with
- Replaced many struct fields in package
commonwith getter funcs - Replaced
Player.AdditionalPlayerInfo.XXXwith getter funcs on thePlayerstruct - Removed or replaced all previously deprecated methods, fields and events
- Renamed field
EquipmentElement.WeapontoEquipmentElement.Type - Renamed field
Player.RawWeaponstoPlayer.Inventory - Renamed field
Player.SteamIDtoPlayer.SteamID64 - Renamed func
Entity.PropertiesI()toEntity.Properties() - Renamed func
Entity.FindPropertyI()toEntity.Property() - Removed redundant funcs
common.EquipmentElementNames()andcommon.GamePhaseNames()
EquipmentType.String()andGamePhase.String()will achieve the same result. - Removed obsolete func
ItemPickup.WeaponTraceable()
ItemPickup.Weaponshould now be identical (see #119) - Removed
Item{Pickup,Drop,Equip}.WeaponPtr - Removed func
Entity.BindPosition() - Changed type of
Item{Pickup,Drop,Equip}.WeaponfromEquipmentstruct to pointer of the same type - Changed type of
Equipment.ZoomLevelfrominttoZoomLevel - Changed receiver types of
DemoHeader,TeamState,Equipment,GrenadeProjectileandInfernofuncs from struct to pointer
New Features / Changes
- Added Bomb-Damage detection.
PlayerHurt.Weapon.TypeandKill.Weapon.Typewill now beEqBomb - Added Fall-Damage detection.
PlayerHurt.Weapon.TypeandKill.Weapon.Typewill now beEqWorld - Added field
RankUpdate.Player(may be nil if the player has already disconnected) - Added utility function
Player.SteamID32()which convertsSteamID64to the 32-bit variant and returns the result - Added utility function
RankUpdate.SteamID64()which convertsSteamID32to the 64-bit variant and returns the result - Added utility functions
common.ConvertSteamID{TxtTo32,32To64,64To32}() - Added constants
common.Zoom{None,Half,Full} - Updated protobuf code (re-generated with new
protocversion)
v2.0.0-beta.11
Doc Links
The new docs are hosted on the fabulous new go.dev page.
Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc
Go Get
Watch out, there's a new module path for go get and import!
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
Breaking Changes
- See v2.0.0-beta.10 for more breaking changes since
v1.x - Changed receiver types of
DemoHeader,TeamState,Equipment,GrenadeProjectileandInfernofuncs from struct to pointer
v2.0.0-beta.10
Doc Links
The new docs are hosted on the fabulous new go.dev page.
Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc
Go Get
Watch out, there's a new module path for go get and import!
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
Breaking Changes
- See v2.0.0-beta.9 for more breaking changes since
v1.x - Removed func
Entity.BindPosition() - Removed func
PropertyValue.Float64Val() - Changed type of
common.Zoom{None,Half,Full}frominttoZoomLevel
Fixes
- Fixed issue where
Entity.Property()was not returning nil if the property wasn't found - Fixed nil-pointer de-reference error when trying to retrieve player data when there is no
Player.Entity
v2.0.0-beta.9
Doc Links
The new docs are hosted on the fabulous new go.dev page.
Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc
Go Get
Watch out, there's a new module path for go get and import!
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
Breaking Changes
- See v2.0.0-beta.5 for more breaking changes since
v1.x - Renamed field
Player.SteamIDtoPlayer.SteamID64
New Features / Changes
- Added Bomb-Damage detection.
PlayerHurt.Weapon.TypeandKill.Weapon.Typewill now beEqBomb - Added Fall-Damage detection.
PlayerHurt.Weapon.TypeandKill.Weapon.Typewill now beEqWorld - Added field
RankUpdate.Player(may be nil if the player has already disconnected) - Added utility function
Player.SteamID32()which convertsSteamID64to the 32-bit variant and returns the result - Added utility function
RankUpdate.SteamID64()which convertsSteamID32to the 64-bit variant and returns the result - Added utility functions
common.ConvertSteamID{TxtTo32,32To64,64To32}()
v2.0.0-beta.5
Doc Links
The new docs are hosted on the fabulous new go.dev page.
Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc
Go Get
Watch out, there's a new module path for go get and import!
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
Breaking Changes
- See v2.0.0-beta.4 for more breaking changes since
v1.x - Made
NewParserWithConfigreturnParserinterface instead of private struct - Removed redundant funcs
common.EquipmentElementNames()andcommon.GamePhaseNames()
EquipmentType.String()andGamePhase.String()will achieve the same result. - Removed obsolete func
ItemPickup.WeaponTraceable()
ItemPickup.Weaponshould now be identical (see #119) - Changed type of
Item{Pickup,Drop,Equip}.WeaponfromEquipmentstruct to pointer of the same type - Removed
Item{Pickup,Drop,Equip}.WeaponPtr
v2.0.0-beta.4
Doc Links
The new docs are hosted on the fabulous new go.dev page.
Package docs: https://pkg.go.dev/mod/github.com/markus-wa/demoinfocs-golang/[email protected]
API docs: https://pkg.go.dev/github.com/markus-wa/demoinfocs-golang/[email protected]/pkg/demoinfocs?tab=doc
Go Get
Watch out, there's a new module path for go get and import!
go get -u github.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs
Major Breaking Changes
- Import path base has changed from
github.com/markus-wa/demoinfocs-golangtogithub.com/markus-wa/demoinfocs-golang/v2/pkg/demoinfocs - Replaced main public structs with interfaces (
Parser,GameState,Participants,Entity,Property)- These interfaces already existed before but used to be prefixed with
I(e.g.IParser)
- These interfaces already existed before but used to be prefixed with
- Replaced many struct fields in package
commonwith getter funcs - Replaced
Player.AdditionalPlayerInfo.XXXwith getter funcs on thePlayerstruct - Removed or replaced all previously deprecated methods, fields and events
- Renamed field
EquipmentElement.WeapontoEquipmentElement.Type - Renamed field
Player.RawWeaponstoPlayer.Inventory - Renamed func
Entity.PropertiesI()toEntity.Properties() - Renamed func
Entity.FindPropertyI()toEntity.Property() - Changed type of
Equipment.ZoomLevelfrominttoZoomLevel
New Features / Changes
- Added constants
common.Zoom{None,Half,Full} - Updated protobuf code (re-generated with new
protocversion)
v1.10.0
Changes / New Features
- Changed panicking behaviour partially back to pre-
v1.8.0to improve debugging experience (#200)
Fixes
- Limited automatic
msgQueuesize (when settingParserConfig.MsgQueueSize=-1) to the range of50'000to500'000
This fixes an issue where some demos would have a queue size of 0, leading to degraded performance (happened ifDemoHeader.PlaybackTickswas0).