Compare commits

..

2 Commits

Author SHA1 Message Date
8dbca2d3ca Merge branch 'master' of https://git.alanmoon.net/Moonbase/NotPogo 2026-10-12 22:15:20 -07:00
ed397373c1 More Brand Changing
Remove Unwanted Logging
2026-10-12 22:15:15 -07:00
3 changed files with 12 additions and 5 deletions

View File

@ -25,7 +25,7 @@
bool isJackpot = won == "true"; bool isJackpot = won == "true";
// Lottso Deluxe is weird and takes a sec to want to take in results // 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 // send ext.rslt
await player.SendAsync( await player.SendAsync(

View File

@ -11,6 +11,7 @@
public bool Live { get; set; } = true; public bool Live { get; set; } = true;
public IGameRoom Game { get; } public IGameRoom Game { get; }
public static ILogger Log { get; private set; } public static ILogger Log { get; private set; }
public static readonly string[] GlobalOPCodes = ["logn", "ping"];
readonly List<Player> _players = new(); readonly List<Player> _players = new();
readonly object _lock = new(); readonly object _lock = new();
@ -84,7 +85,15 @@
("chnl", "serv"), ("chnl", "serv"),
("scrn", ""), ("scrn", ""),
("type", "stnd"), ("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) foreach (var other in others)
@ -143,7 +152,7 @@
return; 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); Log.LogInformation("[Room {Key}] Unhandled OP '{OP}' From {ScreenName}", Key, op, player.ScreenName);
} }

View File

@ -96,7 +96,6 @@ public static class FlashGateway
foreach (var msg in request.Messages) foreach (var msg in request.Messages)
{ {
var args = msg.Body as List<object?> ?? new List<object?>(); var args = msg.Body as List<object?> ?? new List<object?>();
log.LogInformation("AMF call {Target}({Args}) -> {Response}", msg.Target, string.Join(", ", args), msg.Response);
try try
{ {
if (!Handlers.TryGetValue(msg.Target, out var handler)) if (!Handlers.TryGetValue(msg.Target, out var handler))
@ -105,7 +104,6 @@ public static class FlashGateway
} }
catch (Exception ex) catch (Exception ex)
{ {
log.LogWarning(ex, "AMF call {Target} failed", msg.Target);
// mx.remoting turns this into a Fault; "description" becomes faultstring // mx.remoting turns this into a Fault; "description" becomes faultstring
reply.Messages.Add(new AmfMessage(msg.Response + "/onStatus", "null", new reply.Messages.Add(new AmfMessage(msg.Response + "/onStatus", "null", new
{ {