Skip to content

docs: warn that Open77.chat sends nothing under opx_infinity - #22

Merged
dop42 merged 1 commit into
opx77-framework:mainfrom
OriginalLeeDunn:docs/chat-from-another-resource
Oct 28, 2026
Merged

dop42 merged 1 commit into
opx77-framework:mainfrom
OriginalLeeDunn:docs/chat-from-another-resource

Conversation

@OriginalLeeDunn

@OriginalLeeDunn OriginalLeeDunn commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds a short From another resource section to the chat module page: a warning that the platform's Open77.chat.send / broadcast deliver nothing on an opx_infinity server, and a pointer to the creator exports SendChat / BroadcastChat and the SERVER.EXPORTS.WRITERS allowlist they need.

Why

I ran into this while writing a small server resource (welcome line and /rules for my server): following the platform docs I was about to use Open77.chat, then found it can't reach the box here. Read in the code:

  • opx_infinity replaces open77_chat and asks the operator to drop it from resources.load: modules/chat/server/main.lua (warnAboutDuplicates) and the KEYS note in config/chat.lua.
  • The platform chat docs say Open77.chat.* hands the line to the chat authority and that the calls still return true when no authority is running.

So a creator following the platform docs would lose every line with no error. The fix is already in the framework (SendChat / BroadcastChat); this page just has to say so where a creator looks for chat.

Checks run

  • node scripts/check-content.mjs: 288 pages, 0 problems
  • npm run types:check: green
  • npm run build: fails on my machine on main as well (@tailwindcss/oxide native binding missing, npm optional-dependency bug), unrelated to this change; CI will build it
  • npm run check:api: 933 failures on unmodified main too (modules without a page, e.g. bar, business, camera); same count with this change

Verified in game?

  • No for the warning itself: I did not call Open77.chat.* in game; it is read from the code and the platform docs above.
  • Yes for the recommended path. Server build 2.31.13+op77.75, opx_infinity 0.2.0: a resource listed in SERVER.EXPORTS.WRITERS calling exports.opx_infinity:SendChat put its lines in the box (/rules reply seen in game).

…reators to SendChat/BroadcastChat

The chat module replaces open77_chat and asks the operator to drop it from
resources.load (opx_infinity modules/chat/server/main.lua warnAboutDuplicates,
config/chat.lua KEYS note). The platform documents that Open77.chat.send and
broadcast still return true when no chat authority is running, so a resource
using them loses every line silently. The new section names the creator
exports and the SERVER.EXPORTS.WRITERS allowlist they need.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dop42
dop42 merged commit 13dc3c2 into opx77-framework:main Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants