Fix rejoin opponent GUID + CDN skybox null/logging
- GameReadyResponse: add OpponentDisplayName? (populated only on AlreadyStarted) - GameReadyHandler: inject SorIdentityDbContext; fetch opponent display name when session is already Active so rejoining clients get the name immediately - Game.gd: on AlreadyStarted ack, read opponentDisplayName and set Game.opponent_name before calling _fetch_state() — fixes opponent showing as GUID on rejoin - game_screen.gd: replace typed-Dictionary null assignment with safe Variant check to avoid silent GDScript coercion when no skybox is configured; strip query-string from URL before extension check (_fetch_skybox); add print logging throughout CDN skybox flow to surface download/decode failures Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -190,8 +190,10 @@ public sealed record RejectRuleSuggestionRequest(Guid LobbyId);
|
||||
|
||||
// ── Responses ─────────────────────────────────────────────────────────────────
|
||||
|
||||
public sealed record GameReadyResponse(Guid SessionId, string Status);
|
||||
// Status: "WaitingForOpponent" | "AlreadyStarted" | "Started"
|
||||
public sealed record GameReadyResponse(
|
||||
Guid SessionId,
|
||||
string Status, // "WaitingForOpponent" | "AlreadyStarted" | "Started"
|
||||
string? OpponentDisplayName = null); // populated only when Status == "AlreadyStarted"
|
||||
|
||||
public sealed record GameGetStateResponse(GameStateDto State);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user