Skip to content
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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

demoinfocs v4 for CS2 support #293

wants to merge 6 commits into from

Conversation

pnxenopoulos
Copy link
Owner

No description provided.

@JanEricNitschke
Copy link
Collaborator

Do we require a higher golang version with this or does 1.18 still work?

@pnxenopoulos
Copy link
Owner Author

Do we require a higher golang version with this or does 1.18 still work?

You're right. Demoinfocs docs say This library requires at least go 1.21 to run

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
Copy link
Contributor

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

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=
Copy link
Contributor

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

@bk1n
Copy link

bk1n commented Sep 22, 2023

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?

@JanEricNitschke
Copy link
Collaborator

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
Jan-Eric

@JanEricNitschke
Copy link
Collaborator

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.

@JanEricNitschke
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants