WIP: RynthChat: Network tab Join/Leave bar and Global sends #17
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthCore:chat/network-join"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A Join/Leave bar and Global sends for a server tab that declares a chat network (Dereth Network first).
Stacked on the pins PR (#16), which is stacked on #15. Review only the last five commits, from "Parse network on a chatTabs entry" on.
What it does
networkon achatTabsentry:{ "kind": "dereth", "command": "<word>" }.kindmust bedereth;commandis optional (defaultdn, the stock mod's), 1-32 of a-z0-9. A badnetworkis dropped and noted in the parse error; the entry is kept. Older engines ignore the key./<command>and keeps that one answer out of the scrollback. After that the mod's own status lines (on, already on, not on, off) are shown and followed. Only system-type lines count, so a player saying the same words is never a status. Login and logout reset it./<command> on. Once the mod confirms (15 s window), it turns on AC's own "Hear Chat" option for the tab's Global room (discovered, else the fallback). It records that only if the option was off before./<command> offand turns the room option off only if Join turned it on.AcCharacterOptions): calls the client's ownPlayerModule::SetOption/GetOption, the same call the Options panel checkbox makes. AC then updates its UI and sends SetSingleCharacterOption to the server itself, so client and server agree without a relog. It resolves by pattern only (never a fallback VA), requires the pattern to match exactly once, and checks the live object's vtable handler. Probe:/rc chatoption <general|trade|lfg|roleplay> [on|off].WM_RYNTHCORE_NETWORKmessage, at least 250 ms apart. Work older than 10 s is dropped./<command> global <text>; lines starting with/or@pass through. Off the network the line is not sent and the placeholder reads "Join the network to chat here".Known issues
HookResolver.Resolvereportspattern-uniquewithout scanning for a second match when the first match is the fallback VA;AcCharacterOptionscounts matches itself to work around it. Separate fix candidate.Tests
tools/ChatFilterTests: 1936/1936 checks pass. New:ChatNetworkclassify, rewrite and join-plan logic as pure functions, plus source pins (each with a mutation proof) for the unique-pattern check, rewrite after history inOnSend, the poll-path pump, the session resets, and module checks before every delegate call.tools/SectionsTests: 255/255 checks pass./rc chatoption roleplay on|offsets the option, and the server confirms "You have entered/left the Roleplay channel". Join worked after a reload. Leave and Network sends are not yet checked in game.🤖 Generated with Claude Code
"New tab: Network" on a server where the DreamWeave Network tab is hidden returned that hidden tab, so the player's new rule filled the server's tab. ChatServerTabs.ResolveNewTab now keeps "returns the existing one" for a visible tab only; a hidden match gets a free numbered name ("Network 2"). An unreadable settings file is logged once per run instead of on every 2 s retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.