From 516ad2bdf29675ed972d592bae192523164c7cdd Mon Sep 17 00:00:00 2001 From: Tom Bohar Date: Thu, 15 Oct 2026 20:32:34 -0400 Subject: [PATCH] Snapshot for release 2026.10.15.2 (internal 9094d68) --- installer/Publish-Update.ps1 | 19 +- .../AccountProfileDialog.axaml | 5 +- .../AccountProfileDialog.axaml.cs | 69 ++- .../FirstLoginDialog.axaml | 44 ++ .../FirstLoginDialog.axaml.cs | 122 +++++ .../MainWindow.axaml.cs | 219 +++++++- .../RynthCore.App.Avalonia.csproj | 10 +- .../AcClientLaunchSettingsService.cs | 17 +- src/RynthCore.App/AcLaunchArgumentBuilder.cs | 50 +- src/RynthCore.App/FirstLoginRules.cs | 98 ++++ src/RynthCore.App/LaunchAccountProfile.cs | 18 + src/RynthCore.App/UserPrefsSwapRecovery.cs | 87 +++ .../Compatibility/AcMainThreadQueue.cs | 30 +- .../Compatibility/ChatCallbackHooks.cs | 7 +- .../Compatibility/ClientHelperHooks.cs | 3 + .../Compatibility/ConfirmationResponder.cs | 203 +++++++ .../Compatibility/DatFileShareHooks.cs | 215 ++++---- src/RynthCore.Engine/Compatibility/IltInfo.cs | 53 +- .../Compatibility/RynthCoreChatCommands.cs | 228 +++++++- .../Compatibility/ServerInfo.cs | 49 +- .../Compatibility/SmartBoxHooks.cs | 10 + src/RynthCore.Engine/EngineLifecycle.cs | 3 + src/RynthCore.Engine/EntryPoint.cs | 54 +- src/RynthCore.Engine/Hooking/MinHook.cs | 15 +- .../ImGui/EngineFrameController.cs | 4 + src/RynthCore.Engine/ImGui/ImGuiBar.cs | 20 +- src/RynthCore.Engine/ImGui/ImGuiFontTest.cs | 4 +- src/RynthCore.Engine/ImGui/ImGuiPanelHost.cs | 150 ++++- .../ImGui/MonsterHud/MonsterHudSettingsUi.cs | 4 +- .../ImGui/MonsterHud/PlayerPlate.cs | 2 +- .../ImGui/Panels/BountiesFace.cs | 4 +- .../ImGui/Panels/CharactersFace.cs | 10 +- src/RynthCore.Engine/ImGui/Panels/ChatFace.cs | 4 +- .../ImGui/Panels/ChatFiltersFace.cs | 8 +- .../ImGui/Panels/DamageDetailFace.cs | 34 +- .../ImGui/Panels/DamageFace.cs | 36 +- .../ImGui/Panels/DashboardDrawers.cs | 4 +- .../ImGui/Panels/DungeonMapFace.cs | 2 +- .../ImGui/Panels/HotkeysSettingsUi.cs | 16 +- .../ImGui/Panels/InventoryFace.AttrFilter.cs | 6 +- .../ImGui/Panels/InventoryFace.Classic.cs | 8 +- .../ImGui/Panels/InventoryFace.MultiSelect.cs | 6 +- .../ImGui/Panels/InventoryFace.cs | 6 +- .../ImGui/Panels/ItemCountFace.cs | 4 +- .../ImGui/Panels/ItemsFace.cs | 2 +- .../ImGui/Panels/LootAddDialog.cs | 12 +- .../ImGui/Panels/LootEditorFace.cs | 28 +- src/RynthCore.Engine/ImGui/Panels/LuaFace.cs | 18 +- .../ImGui/Panels/MetaFace.Editor.cs | 14 +- .../ImGui/Panels/MetaFace.List.cs | 24 +- .../ImGui/Panels/MetaFace.Schedule.cs | 16 +- src/RynthCore.Engine/ImGui/Panels/MetaFace.cs | 8 +- .../ImGui/Panels/MiniRemoteFace.Sections.cs | 511 ++++++++++++++++++ .../ImGui/Panels/MiniRemoteFace.cs | 102 +++- src/RynthCore.Engine/ImGui/Panels/NavFace.cs | 6 +- src/RynthCore.Engine/ImGui/Panels/P1Faces.cs | 6 +- .../ImGui/Panels/QuickSettingsDrawer.cs | 4 +- .../ImGui/Panels/RadarFace.cs | 6 +- .../ImGui/Panels/RangesSlideOut.cs | 12 +- .../ImGui/Panels/ReportFace.cs | 2 +- .../ImGui/Panels/RynthAiFace.Drawers.cs | 14 +- .../ImGui/Panels/RynthAiFace.cs | 124 +++-- .../ImGui/Panels/RynthNavArrowFace.cs | 12 +- .../ImGui/Panels/RynthNavFace.cs | 34 +- .../ImGui/Panels/SenseFace.cs | 2 +- .../ImGui/Panels/ServerPickSettingsUi.cs | 126 +++++ .../ImGui/Panels/SettingsFace.cs | 2 +- .../ImGui/Panels/SettingsRows.cs | 11 +- .../ImGui/Panels/SkillsFace.Progression.cs | 10 +- .../ImGui/Panels/SkillsFace.cs | 18 +- .../ImGui/Panels/VisionFace.cs | 4 +- .../ImGui/Panels/WorldMapFace.cs | 2 +- .../ImGui/Panels/WorldMapView.cs | 4 +- src/RynthCore.Engine/ImGui/RynthCoreShell.cs | 84 +-- src/RynthCore.Engine/ImGui/SafeImGui.cs | 44 ++ src/RynthCore.Engine/Net/AelrynthVaultWire.cs | 26 +- src/RynthCore.Engine/Net/ChatOrigin.cs | 54 ++ .../Plugins/EngineSettings.cs | 54 +- src/RynthCore.Engine/Plugins/LoadedPlugin.cs | 8 + .../Plugins/PluginContract.cs | 31 ++ .../Plugins/PluginContractVersion.cs | 6 +- src/RynthCore.Engine/Plugins/PluginLoader.cs | 1 + .../Plugins/PluginManager.ServerPlugins.cs | 153 ++++++ src/RynthCore.Engine/Plugins/PluginManager.cs | 274 +++++++--- .../Plugins/PluginManifestGate.cs | 70 ++- src/RynthCore.Engine/RynthLog.cs | 11 + src/RynthCore.Engine/UI/Data/SettingsData.cs | 15 +- .../UI/ScriptWindows/ScriptWindowRegistry.cs | 32 ++ .../UI/Sections/NotLoadedServers.cs | 63 +++ .../UI/Sections/SectionCatalog.cs | 226 ++++++++ .../UI/Sections/SectionManifest.cs | 253 +++++++++ .../UI/Sections/SectionRegistry.cs | 277 ++++++++++ .../UI/Sections/ServerForce.cs | 134 +++++ .../UI/Sections/ServerForceStore.cs | 160 ++++++ .../UI/Sections/ServerSelection.cs | 131 +++++ .../UI/Sections/ServerSelectionStore.cs | 53 ++ .../UI/Sections/ServerStateJson.cs | 89 +++ src/RynthCore.Engine/UI/ServerMenus.cs | 340 +++++++----- src/RynthCore.Injector/LaunchCommand.cs | 7 + .../Manifest/RynthPluginManifest.cs | 126 +++++ src/RynthCore.PluginSdk/RynthCoreApiNative.cs | 5 + src/RynthCore.PluginSdk/RynthCoreHost.cs | 94 ++++ .../build/RynthCore.PluginSdk.targets | 50 +- src/RynthCore.StatusAgent/AgentConfig.cs | 5 +- .../LocalStatusServer.cs | 69 ++- src/RynthCore.StatusAgent/Program.cs | 13 + .../RynthCore.StatusAgent.csproj | 3 +- src/RynthCore.StatusAgent/ServeGuard.cs | 155 ++++++ .../EngineSettingsTests.csproj | 3 + tools/EngineSettingsTests/Program.cs | 30 + .../LauncherSettingsTests.csproj | 2 + tools/LauncherSettingsTests/Program.cs | 131 ++++- .../LauncherUpdateTests.csproj | 1 + tools/NetMessageTests/NetMessageTests.csproj | 1 + tools/NetMessageTests/VaultWireTests.cs | 12 + tools/PluginManifestTests/Program.cs | 147 ++++- tools/SectionsTests/Program.cs | 452 ++++++++++++++++ tools/SectionsTests/SectionsTests.csproj | 36 ++ tools/StatusAgentTests/Program.cs | 48 ++ .../StatusAgentTests/StatusAgentTests.csproj | 1 + tools/check_imgui_calls.py | 217 +++++++- 121 files changed, 6498 insertions(+), 793 deletions(-) create mode 100644 src/RynthCore.App.Avalonia/FirstLoginDialog.axaml create mode 100644 src/RynthCore.App.Avalonia/FirstLoginDialog.axaml.cs create mode 100644 src/RynthCore.App/FirstLoginRules.cs create mode 100644 src/RynthCore.App/UserPrefsSwapRecovery.cs create mode 100644 src/RynthCore.Engine/Compatibility/ConfirmationResponder.cs create mode 100644 src/RynthCore.Engine/ImGui/Panels/MiniRemoteFace.Sections.cs create mode 100644 src/RynthCore.Engine/ImGui/Panels/ServerPickSettingsUi.cs create mode 100644 src/RynthCore.Engine/ImGui/SafeImGui.cs create mode 100644 src/RynthCore.Engine/Net/ChatOrigin.cs create mode 100644 src/RynthCore.Engine/Plugins/PluginManager.ServerPlugins.cs create mode 100644 src/RynthCore.Engine/UI/Sections/NotLoadedServers.cs create mode 100644 src/RynthCore.Engine/UI/Sections/SectionCatalog.cs create mode 100644 src/RynthCore.Engine/UI/Sections/SectionManifest.cs create mode 100644 src/RynthCore.Engine/UI/Sections/SectionRegistry.cs create mode 100644 src/RynthCore.Engine/UI/Sections/ServerForce.cs create mode 100644 src/RynthCore.Engine/UI/Sections/ServerForceStore.cs create mode 100644 src/RynthCore.Engine/UI/Sections/ServerSelection.cs create mode 100644 src/RynthCore.Engine/UI/Sections/ServerSelectionStore.cs create mode 100644 src/RynthCore.Engine/UI/Sections/ServerStateJson.cs create mode 100644 src/RynthCore.StatusAgent/ServeGuard.cs create mode 100644 tools/SectionsTests/Program.cs create mode 100644 tools/SectionsTests/SectionsTests.csproj diff --git a/installer/Publish-Update.ps1 b/installer/Publish-Update.ps1 index 90a463d..4c37329 100644 --- a/installer/Publish-Update.ps1 +++ b/installer/Publish-Update.ps1 @@ -149,6 +149,19 @@ foreach ($name in $suitePlugins) { Copy-Item "$rel\build\$name\RynthCore.Plugin.$name.dll" "$rel\plugins\" } +# Server plugins (Plugins\Shared\ServerPack; SilentKelpie's): one per game server, each loaded by the +# engine only for its own server. They go in the feed only, so the launcher offers each one under +# Available plugins for the player to install; not in RynthSuite-Plugins.zip or the installer. +$serverPlugins = "RynthAChard", "RynthAelrynth", "RynthColdeve", "RynthConquest", "RynthDerptide", "RynthDreamWeave", "RynthEversong", + "RynthFrostACE", "RynthFrostcull", "RynthLeafDawn", "RynthLeafdawning", "RynthPortalStorm", "RynthReefcull", "RynthSundering", "RynthThistlecrown" +foreach ($name in $serverPlugins) { + Step "Building $name (server plugin, feed only)" + $proj = Join-Path $RynthSuiteRoot "Plugins\RynthCore.Plugin.$name\RynthCore.Plugin.$name.csproj" + dotnet publish $proj -c Release "-p:Version=$Version" "-p:PublishDir=$rel\build\$name\" -v q -nologo + if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed for $name" } + Copy-Item "$rel\build\$name\RynthCore.Plugin.$name.dll" "$rel\plugins\" +} + Step "Packing RynthSuite-Plugins.zip" $zipRoot = "$rel\build\zip" foreach ($name in $suitePlugins) { @@ -338,9 +351,11 @@ $plugins = foreach ($dll in Get-ChildItem "$rel\plugins\*.dll" | Sort-Object Nam size = $dll.Length sha256 = Sha256 $dll.FullName } - if ($pluginDescriptions[$pluginName]) { $entry.description = $pluginDescriptions[$pluginName] } - else { Write-Warning "No description for $pluginName - the launcher shows its own (or none). Add one to `$pluginDescriptions." } $pm = Get-RynthPluginManifest $dll.FullName + # The table first; a server plugin's own manifest description otherwise (its csproj's RynthPluginDescription). + if ($pluginDescriptions[$pluginName]) { $entry.description = $pluginDescriptions[$pluginName] } + elseif ($pm -and $pm.description) { $entry.description = [string]$pm.description } + else { Write-Warning "No description for $pluginName - the launcher shows its own (or none). Add one to `$pluginDescriptions." } if ($pm) { if ($pm.name -ne $pluginName) { throw "$($dll.Name): its manifest says '$($pm.name)', the feed would say '$pluginName'." } if ($pm.version -and $pm.version -ne $Version) { throw "$($dll.Name): its manifest is version $($pm.version), not $Version (stale build?)." } diff --git a/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml b/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml index f81b037..90798db 100644 --- a/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml +++ b/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml @@ -2,7 +2,7 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="RynthCore.App.Avalonia.AccountProfileDialog" Width="600" - Height="620" + Height="720" CanResize="False" WindowStartupLocation="CenterOwner" Title="Account Profile" @@ -24,6 +24,9 @@ + + + diff --git a/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml.cs b/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml.cs index 8ec66c6..3a99a11 100644 --- a/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml.cs +++ b/src/RynthCore.App.Avalonia/AccountProfileDialog.axaml.cs @@ -12,11 +12,21 @@ internal partial class AccountProfileDialog : Window { private readonly LaunchAccountProfile _profile; private readonly List _servers; + private readonly Func> _knownCharactersFor; - public AccountProfileDialog(LaunchAccountProfile profile, List servers) + private List _knownCharacters = []; + // Set once the player picks in "Log in as"; until then the saved choice is kept as it is + // (an empty one means "the only character, else character select"). + private bool _loginAsChanged; + private bool _loadingLoginAs; + + /// (account name, server name) -> the characters known for it. + public AccountProfileDialog(LaunchAccountProfile profile, List servers, + Func> knownCharactersFor) { _profile = profile; _servers = servers; + _knownCharactersFor = knownCharactersFor; InitializeComponent(); ServerComboBox.ItemsSource = _servers.Select(s => s.DisplayName).ToList(); @@ -30,15 +40,52 @@ internal partial class AccountProfileDialog : Window PasswordHintText.Text = profile.PasswordNeedsReentry ? "Password needs re-entering: the saved one can't be read on this Windows user (settings copied from another user or PC?). Type it again to launch this account." : !profile.HasSavedPassword - ? "No password is saved for this profile yet." + ? "No password is saved for this profile yet. The game client won't start without one; you'll be asked for it on the first launch." : "A password is saved for this profile, encrypted for this Windows user. It stays hidden unless you replace or clear it."; + ServerComboBox.SelectionChanged += (_, _) => RefreshLoginAs(); + AccountBox.TextChanged += (_, _) => RefreshLoginAs(); + LoginAsBox.SelectionChanged += (_, _) => + { + if (!_loadingLoginAs) + _loginAsChanged = true; + }; + RefreshLoginAs(); + SaveButton.Click += (_, _) => SaveAndClose(); CancelButton.Click += (_, _) => Close(false); BrowseUserPrefsButton.Click += async (_, _) => await BrowseUserPrefsAsync(); SnapshotUserPrefsButton.Click += (_, _) => SnapshotLiveUserPrefs(); } + /// Lists the characters known for the account on the chosen server in "Log in as". + private void RefreshLoginAs() + { + string accountName = AccountBox.Text?.Trim() ?? string.Empty; + string serverName = ServerComboBox.SelectedIndex >= 0 ? _servers[ServerComboBox.SelectedIndex].Name : string.Empty; + _knownCharacters = accountName.Length > 0 ? _knownCharactersFor(accountName, serverName) : []; + + string? current = _loginAsChanged ? LoginAsBox.SelectedItem as string : null; + List choices = FirstLoginRules.LoginChoices(_knownCharacters, _profile.CharacterName); + + _loadingLoginAs = true; + try + { + LoginAsBox.ItemsSource = choices; + LoginAsBox.SelectedItem = current != null && choices.Contains(current) ? current + : choices.Contains(_profile.CharacterName) ? _profile.CharacterName + : FirstLoginRules.StopAtCharacterSelect; + } + finally + { + _loadingLoginAs = false; + } + + LoginAsHintText.Text = _knownCharacters.Count == 0 + ? "No characters are known for this account on this server yet. Launch it: the client stops at character select, where you can create characters, and RynthCore picks them up there." + : $"{_knownCharacters.Count} character(s) on this account. Pick the one that logs in automatically, or stop at character select. The launch list's dropdown changes this too."; + } + private async System.Threading.Tasks.Task BrowseUserPrefsAsync() { var topLevel = GetTopLevel(this); @@ -112,10 +159,24 @@ internal partial class AccountProfileDialog : Window return; } - if (ServerComboBox.SelectedIndex >= 0) - _profile.ServerId = _servers[ServerComboBox.SelectedIndex].Id; + LaunchServerProfile? server = ServerComboBox.SelectedIndex >= 0 ? _servers[ServerComboBox.SelectedIndex] : null; + if (server == null && _servers.Count > 0) + { + ValidationText.Text = "Pick the server this account is for."; + return; + } + if (AcLaunchArgumentBuilder.AccountNameProblem(AccountBox.Text, server?.Emulator ?? AcEmulatorKind.Ace) is string nameProblem) + { + ValidationText.Text = nameProblem; + return; + } + + if (server != null) + _profile.ServerId = server.Id; _profile.AccountName = AccountBox.Text.Trim(); + if (_loginAsChanged) + _profile.CharacterName = FirstLoginRules.CharacterNameFor(LoginAsBox.SelectedItem as string, _knownCharacters); if (ClearPasswordCheckBox.IsChecked == true) { _profile.ClearPassword(); diff --git a/src/RynthCore.App.Avalonia/FirstLoginDialog.axaml b/src/RynthCore.App.Avalonia/FirstLoginDialog.axaml new file mode 100644 index 0000000..7ae22cf --- /dev/null +++ b/src/RynthCore.App.Avalonia/FirstLoginDialog.axaml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +