* feat(g1): authenticated spatial llListen relay across simulator processes * feat(g1): authenticated spatial llListen relay across simulator processes * docs(g1): deployment, security and acceptance for cross-region llListen relay
3.4 KiB
OpenGenesisLINK Generation 1 — Cross-Region Script Chat
The ogl.crossregionchat.dll addin extends spatial llListen across region boundaries. It is deployed to both the main 42-region simulator and EventSim, which run as distinct .NET processes on the same host.
Behaviour
llWhisper,llSayandllShoutare delivered to scripts in adjacent regions within their configured metric chat ranges (defaults 10, 20 and 100 metres).- Works for avatar and object speakers on public, positive and negative chat channels.
- Script-listener channel, name, ID, message and distance filtering remain implemented by
IWorldCommin the receiving region. - The stock chat module already forwards avatar chat within a single simulator; the addin supplements object chat locally and both kinds of chat across simulator processes.
llRegionSay, region broadcasts, direct messages and debug-channel traffic remain confined to their original semantics.- Remote relay packets never re-trigger a chat broadcast, preventing loops and duplicate echo.
- It does not translate script events. The separate opt-in
OglUniversalTranslatortranslates eligible avatar-to-viewer chat and IMs.
Configuration
Place ogl.crossregionchat.dll in both simulator bin folders. Configure each simulator's OpenSim.ini:
[OglCrossRegionChat]
Enabled = true
NodeId = "Simulator001"
ListenPort = 9971
PeerPort = 9972
Use the reverse port mapping and NodeId = "EventSim001" in the other process. Both endpoints bind only to 127.0.0.1 and must share a 32-byte random key, supplied as a 64-character hexadecimal OGL_CHAT_BRIDGE_KEY environment variable. Never store the key in Git, an INI file, or logs. Use a root-only environment file for each startup wrapper. No public firewall ports are required.
Packets are authenticated with HMAC-SHA256, accepted only with a 15-second freshness window, and de-duplicated by message ID. The channel and speaker fields are not forwarded to viewers; delivery goes directly to receiving IWorldComm. The relay supports processes on the same host only.
Translation on all 42 regions
Build addons/OglUniversalTranslator/ogl.universaltranslator.csproj against the running simulator's assemblies. Install ogl.universaltranslator.dll into the main simulator, set [OglUniversalTranslator] Enabled = true, configure its distinct NodeId = Simulator001 and central URL, and load the pre-provisioned OGL_TRANSLATOR_NODE_TOKEN securely at startup. Set [Chat] enabled = false only while the replacement OglTranslatedChatModule is available and enabled. The central translator requires opt-in from both participants.
Acceptance checks
- Confirm both simulator processes boot without ABI errors and the logs show
[OGL CROSS CHAT] Relay ready. - Confirm normal avatar chat and
!translate statuswork in both simulators. - Test an avatar near the boundary speaking on a private channel to a
llListenprim in the neighbouring region; repeat for an object speaker. - Test different positive/negative channels, distance limits, and boundaries aligned in X/Y, including corners.
- Confirm
llRegionSaystays within one region, no duplicate script events occur, and events continue working after a teleport. - Verify the same tests between separate simulator processes where regions are physically adjacent.
Do not infer a successful in-world listen event from a successful DLL build or UDP port check alone.