Closed onduty1981 closed 11 months ago
Thanks for the report - the property is now a vector (length 64) and is just called m_fireXDelta
, so this will definitely need to be adjusted.
Hi, I tried to run the following code with the 3 demos linked in the issue, and it didn't crash.
Which demo exactly is affected?
p.RegisterEventHandler(func(e events.FrameDone) {
for _, inferno := range p.GameState().Infernos() {
points := inferno.Fires().Active().ConvexHull2D()
for _, p := range points {
fmt.Println(p.X, p.Y)
}
}
})
@markus-wa the prop m_fireXDelta
has been removed in the 11/2/2023 update so we should now check if m_fireXDelta
exists here.
We use m_fireXDelta
only when m_firePositions
doesn't exist, but I can't find a demo with such a case.
Hi, I tried to run the following code with the 3 demos linked in the issue, and it didn't crash. Which demo exactly is affected?
p.RegisterEventHandler(func(e events.FrameDone) { for _, inferno := range p.GameState().Infernos() { points := inferno.Fires().Active().ConvexHull2D() for _, p := range points { fmt.Println(p.X, p.Y) } } })
@markus-wa the prop
m_fireXDelta
has been removed in the 11/2/2023 update so we should now check ifm_fireXDelta
exists here. We usem_fireXDelta
only whenm_firePositions
doesn't exist, but I can't find a demo with such a case.
Hi akiver, You can try the following demo, it crashed on my side. http://replay233.wmsj.cn/730/003650808412331049010_0474274576.dem.bz2
I think I know why it crashes only for you - you are using the last beta.5
version but this problem has been fix on the branch master https://github.com/markus-wa/demoinfocs-golang/commit/f7db8ec3674518fb9a74ffccd19b23c13eac3bc4
If you use the master branch it should work.
will close this as the fix has been released with v4.0.0 - reopen if the issue persists
Describe the bug when I call the function { func (inf *Inferno) Fires() Fires }, I can't get the Inferno position.
To Reproduce
https://r2-demos.hltv.org/demos/100901/epl-world-series-americas-season-4-w7m-vs-solid-bo3-dSsvx95GYl9EHOvss0vDrv.rar
Code: func parseGameStates(parser dem.Parser, match *Match) []common.OverviewState { playbackFrames := parser.Header().PlaybackFrames states := make([]common.OverviewState, 0, playbackFrames)
}