Skip to content

Releases: markus-wa/demoinfocs-golang

v2.0.0-beta.11

06 May 16:50
4c3c927
Compare
Choose a tag to compare
v2.0.0-beta.11 Pre-release
Pre-release

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 and Inferno funcs from struct to pointer

v2.0.0-beta.10

19 Apr 13:12
fb96d60
Compare
Choose a tag to compare
v2.0.0-beta.10 Pre-release
Pre-release

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} from int to ZoomLevel

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

18 Apr 20:51
9e73278
Compare
Choose a tag to compare
v2.0.0-beta.9 Pre-release
Pre-release

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 to Player.SteamID64

New Features / Changes

  • Added Bomb-Damage detection. PlayerHurt.Weapon.Type and Kill.Weapon.Type will now be EqBomb
  • Added Fall-Damage detection. PlayerHurt.Weapon.Type and Kill.Weapon.Type will now be EqWorld
  • Added field RankUpdate.Player (may be nil if the player has already disconnected)
  • Added utility function Player.SteamID32() which converts SteamID64 to the 32-bit variant and returns the result
  • Added utility function RankUpdate.SteamID64() which converts SteamID32 to the 64-bit variant and returns the result
  • Added utility functions common.ConvertSteamID{TxtTo32,32To64,64To32}()

v2.0.0-beta.5

12 Apr 16:18
f9a5eeb
Compare
Choose a tag to compare
v2.0.0-beta.5 Pre-release
Pre-release

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 return Parser interface instead of private struct
  • Removed redundant funcs common.EquipmentElementNames() and common.GamePhaseNames()
    EquipmentType.String() and GamePhase.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 from Equipment struct to pointer of the same type
  • Removed Item{Pickup,Drop,Equip}.WeaponPtr

v2.0.0-beta.4

10 Apr 21:54
423ddb7
Compare
Choose a tag to compare
v2.0.0-beta.4 Pre-release
Pre-release

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 to github.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)
  • Replaced many struct fields in package common with getter funcs
  • Replaced Player.AdditionalPlayerInfo.XXX with getter funcs on the Player struct
  • Removed or replaced all previously deprecated methods, fields and events
  • Renamed field EquipmentElement.Weapon to EquipmentElement.Type
  • Renamed field Player.RawWeapons to Player.Inventory
  • Renamed func Entity.PropertiesI() to Entity.Properties()
  • Renamed func Entity.FindPropertyI() to Entity.Property()
  • Changed type of Equipment.ZoomLevel from int to ZoomLevel

New Features / Changes

  • Added constants common.Zoom{None,Half,Full}
  • Updated protobuf code (re-generated with new protoc version)

v1.10.0

02 Apr 18:26
Compare
Choose a tag to compare

Changes / New Features

  • Changed panicking behaviour partially back to pre-v1.8.0 to improve debugging experience (#200)

Fixes

  • Limited automatic msgQueue size (when setting ParserConfig.MsgQueueSize=-1) to the range of 50'000 to 500'000
    This fixes an issue where some demos would have a queue size of 0, leading to degraded performance (happened if DemoHeader.PlaybackTicks was 0).

v1.9.1

27 Mar 20:30
e0887e1
Compare
Choose a tag to compare

Fixes

  • Fixed issue where player's weapons were sometimes not instantiated correctly (EqUnknonwn) - (#197 - thanks @BestAwperEver)

v1.9.0

26 Mar 16:33
Compare
Choose a tag to compare

New Features / Changes

  • Added GameState.Weapons() function which returns all currently existing weapon instances as a map[int]*Equipment where the key is the entityID (#195 - thanks @BestAwperEver)

v1.8.1

21 Mar 23:14
Compare
Choose a tag to compare

Changes

  • Avoid suppressing panics inside consumer code (e.g. RegisterEventHandler) (#190)
    This was accidentally done since 1.8.0 and made debugging errors in event or net-message handlers much harder

v1.8.0

08 Mar 00:37
Compare
Choose a tag to compare

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