From ed397373c1958ed9ec5ed423e7ae4509443630f9 Mon Sep 17 00:00:00 2001 From: Moonbase Date: Mon, 12 Oct 2026 22:15:15 -0700 Subject: [PATCH] More Brand Changing Remove Unwanted Logging --- Core/Rooms/GameRooms/Lottso2Room.cs | 2 +- Core/Rooms/Room.cs | 13 +++++++++++-- FlashGateway.cs | 2 -- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Core/Rooms/GameRooms/Lottso2Room.cs b/Core/Rooms/GameRooms/Lottso2Room.cs index 5c593ed..eca55ff 100644 --- a/Core/Rooms/GameRooms/Lottso2Room.cs +++ b/Core/Rooms/GameRooms/Lottso2Room.cs @@ -25,7 +25,7 @@ bool isJackpot = won == "true"; // Lottso Deluxe is weird and takes a sec to want to take in results - await Task.Delay(TimeSpan.FromSeconds(8)); + await Task.Delay(TimeSpan.FromSeconds(1)); // send ext.rslt await player.SendAsync( diff --git a/Core/Rooms/Room.cs b/Core/Rooms/Room.cs index 9bd1c4a..95854ba 100644 --- a/Core/Rooms/Room.cs +++ b/Core/Rooms/Room.cs @@ -11,6 +11,7 @@ public bool Live { get; set; } = true; public IGameRoom Game { get; } public static ILogger Log { get; private set; } + public static readonly string[] GlobalOPCodes = ["logn", "ping"]; readonly List _players = new(); readonly object _lock = new(); @@ -84,7 +85,15 @@ ("chnl", "serv"), ("scrn", ""), ("type", "stnd"), - ("text", "NotPogo Is Alpha Software! Some Things May Not Function Correctly.") + ("text", "Welcome to Rebound! The best place for games, fun, and friends!") + ); + + await player.SendAsync( + ("msg.op", "say"), + ("chnl", "serv"), + ("scrn", ""), + ("type", "stnd"), + ("text", "Rebound Is Alpha Software. Some Server Side Functions May Not Work As Expected Or At All.") ); foreach (var other in others) @@ -143,7 +152,7 @@ return; } - if (!await Game.OnMessageAsync(this, player, op, msg) && Game is not ChatOnlyRoom) + if (!await Game.OnMessageAsync(this, player, op, msg) && Game is not ChatOnlyRoom && !GlobalOPCodes.Contains(op)) Log.LogInformation("[Room {Key}] Unhandled OP '{OP}' From {ScreenName}", Key, op, player.ScreenName); } diff --git a/FlashGateway.cs b/FlashGateway.cs index b91520b..c10e5c1 100644 --- a/FlashGateway.cs +++ b/FlashGateway.cs @@ -96,7 +96,6 @@ public static class FlashGateway foreach (var msg in request.Messages) { var args = msg.Body as List ?? new List(); - log.LogInformation("AMF call {Target}({Args}) -> {Response}", msg.Target, string.Join(", ", args), msg.Response); try { if (!Handlers.TryGetValue(msg.Target, out var handler)) @@ -105,7 +104,6 @@ public static class FlashGateway } catch (Exception ex) { - log.LogWarning(ex, "AMF call {Target} failed", msg.Target); // mx.remoting turns this into a Fault; "description" becomes faultstring reply.Messages.Add(new AmfMessage(msg.Response + "/onStatus", "null", new {