-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
demoinfocs v4 for CS2 support #293
base: main
Are you sure you want to change the base?
Conversation
Do we require a higher golang version with this or does 1.18 still work? |
You're right. Demoinfocs docs say |
awpy/parser/go.mod
Outdated
github.com/golang/geo v0.0.0-20210211234256-740aa86cb551 // indirect | ||
github.com/golang/geo v0.0.0-20230421003525-6adc56603217 // indirect | ||
github.com/golang/snappy v0.0.4 // indirect | ||
github.com/markus-wa/demoinfocs-golang/v4 v4.0.0-beta.0 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.com/markus-wa/demoinfocs-golang/v4 v4.0.0-beta.2
awpy/parser/go.sum
Outdated
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= | ||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= | ||
github.com/markus-wa/demoinfocs-golang/v3 v3.3.0 h1:cXAI081cH5tDmmyPuyUzuIGeP8strtVzdtRB5VlIvL8= | ||
github.com/markus-wa/demoinfocs-golang/v3 v3.3.0/go.mod h1:NzAkCtDshPkoSMg3hAyojkmHE4ZgnNWCM1Vv4yCPLsI= | ||
github.com/markus-wa/demoinfocs-golang/v4 v4.0.0-beta.0 h1:cP34r7ZHfQvJA0kwO7gA/lWLEAHhIghxTptwnV5KRls= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github.com/markus-wa/demoinfocs-golang/v4 v4.0.0-beta.2
Hi guys, I'm new and a bit of a noob, especially with go, but want to help where I can as I use awpy a lot. Please tell me if I'm contributing incorrectly or saying something stupid - I don't mind and am here to learn! First thing I've come across: panic: invalid File-Type; expecting HL2DEMO in the first 8 bytes (ErrInvalidFileType)
goroutine 1 [running]:
main.checkError(...)
D:/<user>/Documents/GitProjects/awpy/awpy/parser/parse_demo.go:2788
main.main()
D:/<user>/Documents/GitProjects/awpy/awpy/parser/parse_demo.go:2636 +0x1d67
exit status 2
No file produced, error in calling Golang
[]
JSON path does not exist! Solution - need to update parse_demo.go imports to latest demoinfocs-golang version: import (
"encoding/json"
"errors"
"flag"
"fmt"
"log"
"math"
"os"
"strconv"
"strings"
dem "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs"
common "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/common"
events "github.com/markus-wa/demoinfocs-golang/v4/pkg/demoinfocs/events"
) Should I just stick this in a commit and push directly to branch? |
Hi @bk1n , thanks for your help. As you are not a maintainer i do not think that you can push to this branch here. This is something that @pnxenopoulos has to do. Cheers |
It seems that the actual update to the v4/cs2 parser has broken exactly one test. Specifically a pretty recently introduced one for a pov demo. And it does not seem to be a cleaning test as the number of rounds uncleaned is just 2. |
The other POV demo tests also seems to have failed. Which is interesting because it didnt do that locally for me. Maybe we can now add a CS2 demo to the tests and try to figure out what is going wrong with the POV demos. |
No description provided.