Releases: markus-wa/demoinfocs-golang
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
,GrenadeProjectile
andInferno
funcs 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}
fromint
toZoomLevel
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.SteamID
toPlayer.SteamID64
New Features / Changes
- Added Bomb-Damage detection.
PlayerHurt.Weapon.Type
andKill.Weapon.Type
will now beEqBomb
- Added Fall-Damage detection.
PlayerHurt.Weapon.Type
andKill.Weapon.Type
will now beEqWorld
- Added field
RankUpdate.Player
(may be nil if the player has already disconnected) - Added utility function
Player.SteamID32()
which convertsSteamID64
to the 32-bit variant and returns the result - Added utility function
RankUpdate.SteamID64()
which convertsSteamID32
to 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
NewParserWithConfig
returnParser
interface 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.Weapon
should now be identical (see #119) - Changed type of
Item{Pickup,Drop,Equip}.Weapon
fromEquipment
struct 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-golang
tojackfan.us.kg/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
common
with getter funcs - Replaced
Player.AdditionalPlayerInfo.XXX
with getter funcs on thePlayer
struct - Removed or replaced all previously deprecated methods, fields and events
- Renamed field
EquipmentElement.Weapon
toEquipmentElement.Type
- Renamed field
Player.RawWeapons
toPlayer.Inventory
- Renamed func
Entity.PropertiesI()
toEntity.Properties()
- Renamed func
Entity.FindPropertyI()
toEntity.Property()
- Changed type of
Equipment.ZoomLevel
fromint
toZoomLevel
New Features / Changes
- Added constants
common.Zoom{None,Half,Full}
- Updated protobuf code (re-generated with new
protoc
version)
v1.10.0
Changes / New Features
- Changed panicking behaviour partially back to pre-
v1.8.0
to improve debugging experience (#200)
Fixes
- Limited automatic
msgQueue
size (when settingParserConfig.MsgQueueSize=-1
) to the range of50'000
to500'000
This fixes an issue where some demos would have a queue size of 0, leading to degraded performance (happened ifDemoHeader.PlaybackTicks
was0
).
v1.9.1
v1.9.0
v1.8.1
v1.8.0
Deprecation Notices
- Deprecated
DemoHeader.TickRate()
- Deprecated
DemoHeader.TickTime()
New Features / Changes
- Added
Parser.TickRate()
- Added
Parser.TickTime()
- Implemented fallback to
CSVCMsg_ServerInfo
for tick-rate etc. in case of corrupted demo headers with missing data (#184)
Fixes
- Replaced panicking behaviour with returning errors across the whole library (#183)
- Fixed rounding error in
Player.FlashTimeRemaining()
that caused inaccurate calculation of the flash time in some rare cases