Snapshot for release 2026.10.15.6 (internal 6fd9478)

This commit is contained in:
Tom Bohar 2026-10-15 23:44:38 -04:00
commit a57049d931
44 changed files with 12244 additions and 10674 deletions

View file

@ -3,9 +3,8 @@ using RynthCore.Engine;
namespace ReloadCapTests;
/// <summary>
/// The engine's side of the hot-reload cap (ReloadCapNotice.cs). After 4+ engine hot reloads in
/// one client, clients died with CoreCLR fatal error 0x80131506; the loader now refuses reloads
/// past engine.json MaxHotReloads and the engine tells the player.
/// The engine's side of the hot-reload cap (ReloadCapNotice.cs): the loader refuses reloads past
/// engine.json MaxHotReloads (default 20, a backstop) and the engine tells the player.
/// </summary>
internal static class Program
{
@ -40,7 +39,7 @@ internal static class Program
Check(ReloadCapNotice.ChatText(1) == "RynthCore: this client has hot reloaded 1 time; restart the client to pick up the new engine.",
$"1: {ReloadCapNotice.ChatText(1)}");
Check(ReloadCapNotice.ChatText(0).Contains("hot reloaded 0 times"), $"0 (MaxHotReloads 0): {ReloadCapNotice.ChatText(0)}");
Check(ReloadCapNotice.DefaultMaxHotReloads == 3, "the default cap is 3 (Loader.c DEFAULT_MAX_HOT_RELOADS)");
Check(ReloadCapNotice.DefaultMaxHotReloads == 20, "the default cap is 20 (Loader.c DEFAULT_MAX_HOT_RELOADS)");
}
private static void ToldOnceThenOnlyWhenAskedByHand()

View file

@ -3,7 +3,7 @@
<!--
Offline checks for the engine's side of the hot-reload cap (2026-10-11):
src\RynthCore.Engine\ReloadCapNotice.cs, compiled in. When the loader refuses a hot reload
(engine.json MaxHotReloads, default 3), the player hears about it in chat once, and again only
(engine.json MaxHotReloads, default 20), the player hears about it in chat once, and again only
when they asked for the reload by hand (RL, /rc rl) within the last 10 s; the chat line is the
plain sentence agreed for it. The loader's own rule (refuse once reloads >= cap, negative = no
cap; nothing staged on a refusal) is checked in tools\LoaderReloadCapTests (C).