joaorb64 / joaorb64/TournamentStreamHelper

Stage Striking Layout No Longer Updates

Open
#910 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
139
Forks
59
Avg merge
2d 9h
Merged PRs (30d)
6

Description

When using layout/stage_strike/index.html or layout/stage_strike/index_autohide.html the stage striking doesn't update, and TSH has this error:

[2025-10-21 21:52:50] - ERROR - StartGGDataProvider.py:_GetMatchTasks:421 | Traceback (most recent call last):
  File "src\TournamentDataProvider\StartGGDataProvider.py", line 419, in _GetMatchTasks
  File "src\TournamentDataProvider\StartGGDataProvider.py", line 865, in ParseMatchDataOldApi
  File "src\TSHGameAssetManager.py", line 1485, in GetStageFromStartGGId
AttributeError: 'TSHGameAssetManager' object has no attribute 'stages'

On index.html, in the console:

TypeError: Cannot read properties of undefined (reading 'path')
    at index.js:103:28
    at Array.forEach (<anonymous>)
    at Update (index.js:102:19)
    at HTMLDocument.UpdateWrapper (globals.js:29:9)
    at HandleTSHStateUpdateMessage (globals.js:843:12)
    at a.<anonymous> (globals.js:141:9)
    at L.emit (index.mjs:136:20)
    at a.value (socket.js:494:20)
    at a.value (socket.js:481:18)
    at a.value (socket.js:451:22)
TypeError: Cannot read properties of undefined (reading 'currGame')
    at Update (index.js:96:62)
    at HTMLDocument.UpdateWrapper (globals.js:29:9)
    at HandleTSHStateUpdateMessage (globals.js:843:12)
    at a.<anonymous> (globals.js:141:9)
    at L.emit (index.mjs:136:20)
    at a.value (socket.js:494:20)
    at a.value (socket.js:481:18)
    at a.value (socket.js:451:22)
    at L.emit (index.mjs:136:20)
    at manager.js:207:18

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with layout/stage_strike/index.html, layout/stage_strike/index_autohide.html, and index.js lines 96-103, then trace the state update data used by Update. Check src/TournamentDataProvider/StartGGDataProvider.py lines 419 and 865 and src/TSHGameAssetManager.py line 1485 to determine why stages and game data are undefined. Done means both layouts update stage striking without the reported console or TSH errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, python
Domain
backend, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.