Files
opengenesislinkserver/addons/OglCrossRegionChat/README.md
T
OpenGenesis (EULA) 714af691f3 feat(g1): authenticated cross-region llListen bridge
* 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
2026-11-22 17:11:29 +01:00

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, llSay and llShout are 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 IWorldComm in 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 OglUniversalTranslator translates 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

  1. Confirm both simulator processes boot without ABI errors and the logs show [OGL CROSS CHAT] Relay ready.
  2. Confirm normal avatar chat and !translate status work in both simulators.
  3. Test an avatar near the boundary speaking on a private channel to a llListen prim in the neighbouring region; repeat for an object speaker.
  4. Test different positive/negative channels, distance limits, and boundaries aligned in X/Y, including corners.
  5. Confirm llRegionSay stays within one region, no duplicate script events occur, and events continue working after a teleport.
  6. 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.