From 7f46ebc215fa1b405e75d87b904f12dface8563d Mon Sep 17 00:00:00 2001 From: Moonbase Date: Wed, 7 Oct 2026 13:32:03 -0700 Subject: [PATCH] Fix Timing Issues With Lottso! Deluxe Results Sending Log All Outbound Game Server Messages --- Core/Player.cs | 3 +++ Core/Rooms/GameRooms/Lottso2Room.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Core/Player.cs b/Core/Player.cs index 40f47fc..3d8845e 100644 --- a/Core/Player.cs +++ b/Core/Player.cs @@ -25,6 +25,9 @@ namespace NotPogo.Core var msg = new Dictionary(); foreach(var (k, v) in fields) msg[k] = v; await SendAsync(msg); + + msg.TryGetValue("msg.op", out var op); + Console.WriteLine($"[GameServer] [plid {Id}] <- {op} {string.Join(" ", msg.Where(kv => kv.Key != "msg.op").Select(kv => $"{kv.Key}='{kv.Value}'"))}"); } public async Task SendAsync(Dictionary msg) diff --git a/Core/Rooms/GameRooms/Lottso2Room.cs b/Core/Rooms/GameRooms/Lottso2Room.cs index d139094..d08d566 100644 --- a/Core/Rooms/GameRooms/Lottso2Room.cs +++ b/Core/Rooms/GameRooms/Lottso2Room.cs @@ -24,6 +24,9 @@ msg.TryGetValue("gm.won", out var won); bool isJackpot = won == "true"; + // Lottso Deluxe is weird and takes a sec to want to take in results + await Task.Delay(TimeSpan.FromSeconds(8)); + // send ext.rslt await player.SendAsync( ("msg.op", "ext.rslt"),