diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad713425..586db122 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,15 +6,15 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 - name: setup go - uses: actions/setup-go@v2 + uses: actions/setup-go@v6 with: - go-version: 1.16.3 + go-version: 1.24.5 - name: cache replays - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: '**/replays' key: replays diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..addf7042 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +golang 1.24.5 diff --git a/field_decoder.go b/field_decoder.go index a4608a10..e2d15a5f 100644 --- a/field_decoder.go +++ b/field_decoder.go @@ -13,6 +13,7 @@ var fieldTypeFactories = map[string]fieldFactory{ "Vector": vectorFactory(3), "Vector2D": vectorFactory(2), "Vector4D": vectorFactory(4), + "VectorWS": vectorFactory(3), "uint64": unsigned64Factory, "QAngle": qangleFactory, "CHandle": unsignedFactory, diff --git a/manta_test.go b/manta_test.go index 03578b64..ded9ef99 100644 --- a/manta_test.go +++ b/manta_test.go @@ -11,6 +11,7 @@ import ( func BenchmarkMatch2159568145(b *testing.B) { testScenarios[2159568145].bench(b) } // Test client +func TestMatchNew8552595443(t *testing.T) { testScenarios[8552595443].test(t) } func TestMatchNew7116386145(t *testing.T) { testScenarios[7116386145].test(t) } func TestMatchNew7047839963(t *testing.T) { testScenarios[7047839963].test(t) } func TestMatchNew6841449576(t *testing.T) { testScenarios[6841449576].test(t) } @@ -79,6 +80,13 @@ type testScenario struct { } var testScenarios = map[int64]testScenario{ + 8552595443: { + matchId: "8552595443", + replayUrl: "https://s3-us-west-2.amazonaws.com/manta.dotabuff/8552595443.dem", + expectGameBuild: 6601, + expectEntityEvents: 4582723, + expectUnitOrderEvents: 81344, + }, 7116386145: { matchId: "7116386145", replayUrl: "https://s3-us-west-2.amazonaws.com/manta.dotabuff/7116386145.dem",