From da02d2ad9c16d3ec877a0c4d7147eeaa5864bd1f Mon Sep 17 00:00:00 2001 From: Jason Coene Date: Wed, 12 Nov 2025 15:41:43 -0600 Subject: [PATCH 1/2] add support for VectorWS type --- .github/workflows/ci.yml | 2 +- .tool-versions | 1 + field_decoder.go | 1 + manta_test.go | 8 ++++++++ 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .tool-versions diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad713425..18bf8af5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: - name: setup go uses: actions/setup-go@v2 with: - go-version: 1.16.3 + go-version: 1.24.5 - name: cache replays uses: actions/cache@v2 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", From e29b87daf8f33c4fc19329b3aa5596c0b91676fe Mon Sep 17 00:00:00 2001 From: Jason Coene Date: Wed, 12 Nov 2025 15:43:47 -0600 Subject: [PATCH 2/2] ci --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18bf8af5..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.24.5 - name: cache replays - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: '**/replays' key: replays