Space game context-lost overlay reuses the load-failure copy #1059

Closed
opened 2026-08-13 05:56:56 +00:00 by spikerj · 1 comment
Owner

When the WebGL context is lost after the space game has already started (contextLost() true, issue #191 recovery), the overlay still interpolates games.spaceGame.errorTitle / errorBody — "Space Game Loading Failed" / "Unable to load the 3D space game. Please refresh the page."

That copy is written for the @defer @error arm (bundle failed to load). A GPU reset mid-session is not a load failure; the player already had a running scene. The overlay should use dedicated recovery strings (e.g. context lost / refresh to restore) so Refresh is not framed as retrying a failed download.

Repro: stub renderer+scene, set contextLost, render the Complete defer arm — .space-game-context-lost contains the load-failure title.

Seen in projects/spikersoft/src/app/_components/_games/space-game/space-game.component.html.

When the WebGL context is lost after the space game has already started (`contextLost()` true, issue #191 recovery), the overlay still interpolates `games.spaceGame.errorTitle` / `errorBody` — "Space Game Loading Failed" / "Unable to load the 3D space game. Please refresh the page." That copy is written for the `@defer` `@error` arm (bundle failed to load). A GPU reset mid-session is not a load failure; the player already had a running scene. The overlay should use dedicated recovery strings (e.g. context lost / refresh to restore) so Refresh is not framed as retrying a failed download. Repro: stub renderer+scene, set `contextLost`, render the Complete defer arm — `.space-game-context-lost` contains the load-failure title. Seen in `projects/spikersoft/src/app/_components/_games/space-game/space-game.component.html`.
Author
Owner

Resolved in spikersoft-angular PR #819 (merged to master). Space-game context-lost overlay uses its own copy, not the load-failure string. Closing.

Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). Space-game context-lost overlay uses its own copy, not the load-failure string. Closing.
Sign in to join this conversation.