feat(fastrez): private one-time login activation chat (#282)
Display 'OpenGenesisLINK FastRez 2.0 aktiviert' exactly once per standard grid login, only to the connecting avatar, after CAPS setup. Suppress on teleports, HG arrivals, inactive FastRez, and NPCs; CI regression and documentation included.
This commit is contained in:
1 parent
f2656ae153
commit
4ccc4868a1
3 files changed
+51
-1
No files matched your search
@@ -350,6 +350,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
private bool m_lastLandCollide;
|
||||
|
||||
private TeleportFlags m_teleportFlags;
|
||||
private int m_fastRezLoginNoticeSent;
|
||||
public TeleportFlags TeleportFlags
|
||||
{
|
||||
get { return m_teleportFlags; }
|
||||
@@ -4017,6 +4018,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
NeedInitialData = -1;
|
||||
|
||||
// Only a fresh grid login gets the one-time FastRez notice. Do not
|
||||
// repeat it on teleports, crossings, HG visits or child agents.
|
||||
bool sendFastRezLoginNotice = !IsNPC && !IsChildAgent &&
|
||||
m_scene.FastRezNearbyFirst && IsRealLogin(m_teleportFlags);
|
||||
|
||||
bool selfappearance = (flags & 4) != 0;
|
||||
|
||||
// this should enqueued on the client processing job to save threads
|
||||
@@ -4166,6 +4172,29 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_lastChildAgentUpdateGodLevel = GodController.ViwerUIGodLevel;
|
||||
m_childUpdatesBusy = false; // allow them
|
||||
}
|
||||
|
||||
// Direct-to-owner chat after the viewer has processed its CAPS
|
||||
// seeds and initial scene data. Never publish this to region chat.
|
||||
if (sendFastRezLoginNotice &&
|
||||
Interlocked.CompareExchange(ref m_fastRezLoginNoticeSent, 1, 0) == 0)
|
||||
{
|
||||
try
|
||||
{
|
||||
ControllingClient.SendChatMessage(
|
||||
"OpenGenesisLINK FastRez 2.0 aktiviert",
|
||||
(byte)ChatTypeEnum.Owner,
|
||||
AbsolutePosition,
|
||||
"OpenGenesisLINK System",
|
||||
UUID.Zero,
|
||||
UUID.Zero,
|
||||
(byte)ChatSourceType.Object,
|
||||
(byte)ChatAudibleLevel.Fully);
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
m_log.Debug("[FASTREZ]: Could not send private login notice.", error);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,19 @@ Stand: 23.10.2026 | PR #281 | separater Simulator-Patch, **nicht** Teil von PR #
|
||||
nicht für den gesonderten Distanz-Culling-Pfad.
|
||||
Der OpenSim-Standard bleibt `false`.
|
||||
|
||||
### Login-Chat (FastRez 2.0)
|
||||
Nach dem erfolgreichen normalen Grid-Login und nach Verarbeitung der Viewer-CAPS-Seeds
|
||||
sieht **nur der eingeloggte Avatar** genau einmal die lokale Meldung:
|
||||
|
||||
`OpenGenesisLINK FastRez 2.0 aktiviert`
|
||||
|
||||
Die Meldung wird ausschließlich bei aktiviertem `FastRezNearbyFirst` über
|
||||
`ChatTypeEnum.Owner` direkt an den Viewer geschickt. Keine Region-Broadcasts,
|
||||
keine Wiederholung bei Teleports oder Regionswechseln. Hypergrid-Ankünfte
|
||||
mit `ViaHGLogin` sind von dieser einmaligen Grid-Login-Meldung ausgeschlossen.
|
||||
Der Text ist eine Aktivierungsinformation, kein Versprechen über eine feste
|
||||
gemessene Beschleunigung.
|
||||
|
||||
Kein neuer Dienst, keine Datenbank, keine Assets-Migration, kein Redis,
|
||||
keine Änderungen an Hypergrid-Autorisierung oder Avatar-Bake-Daten.
|
||||
Der noch offene OGL AssetService PR #237 ist unabhängig und unverändert.
|
||||
|
||||
@@ -53,4 +53,12 @@ assert "Vector3.DistanceSquared(origin, grp.AbsolutePosition)" in presence
|
||||
assert "nearby.AddRange(distant);" in presence
|
||||
assert "if (cacheEmpty || !grp.IsViewerCachable)" in presence, "viewer-cache probe handling must survive"
|
||||
|
||||
print("OpenGenesisLINK FastRez (avatar and near-world) configuration: OK")
|
||||
# The login banner is a single local chat packet, never a region broadcast.
|
||||
# A real login and enabled FastRez must both be present; crossings/TPs stay silent.
|
||||
assert "OpenGenesisLINK FastRez 2.0 aktiviert" in presence
|
||||
assert "m_scene.FastRezNearbyFirst && IsRealLogin(m_teleportFlags)" in presence
|
||||
assert "Interlocked.CompareExchange(ref m_fastRezLoginNoticeSent, 1, 0) == 0" in presence
|
||||
assert "(byte)ChatTypeEnum.Owner" in presence
|
||||
assert "ControllingClient.SendChatMessage(" in presence
|
||||
|
||||
print("OpenGenesisLINK FastRez (avatar, near-world and private login chat) configuration: OK")
|
||||
Reference in new issue
Block a user