Fix Timing Issues With Lottso! Deluxe Results Sending

Log All Outbound Game Server Messages
This commit is contained in:
Alan Moon 2026-10-07 13:32:03 -07:00
parent b5c9f3dd08
commit 7f46ebc215
2 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,9 @@ namespace NotPogo.Core
var msg = new Dictionary<string, string>(); var msg = new Dictionary<string, string>();
foreach(var (k, v) in fields) msg[k] = v; foreach(var (k, v) in fields) msg[k] = v;
await SendAsync(msg); 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<string, string> msg) public async Task SendAsync(Dictionary<string, string> msg)

View File

@ -24,6 +24,9 @@
msg.TryGetValue("gm.won", out var won); msg.TryGetValue("gm.won", out var won);
bool isJackpot = won == "true"; 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 // send ext.rslt
await player.SendAsync( await player.SendAsync(
("msg.op", "ext.rslt"), ("msg.op", "ext.rslt"),