Outgoing, the original's share_* frames byte for byte: subscribe with the player id on start and without it after every reconnect, vitals on change or every 3 s, position on change or every 10 s, the item heartbeat every 5 s, unsubscribe on stop. Debuff casts come from the host's peer network: the attempts and landings the bot announces, plus the player's own completed casts, so a hand-cast debuff is shared once it lands (a plugin cannot see outgoing packets, so hand-cast attempts are not). Ids stay signed ints, skill a double, duration_ms the spell's duration. Incoming, another computer's characters and casts go into the host's peer network (the new relay imports), where the bot reads them exactly as it reads characters on this computer: vitals and position for heals, landed debuffs for target choice. Peers not heard from for 15 s drop out; the original kept them forever. Logoff now runs features in reverse so the unsubscribe leaves before the socket closes, and stopping the socket flushes what was queued. Builds against a preview of the plugin API with the peer relay (0.1.19-mmpreview.1, packed from the relay commit); switch to the released package when it exists. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| src/OpenAC.MosswartMassacre | ||
| tests/OpenAC.MosswartMassacre.Tests | ||
| .gitattributes | ||
| .gitignore | ||
| Directory.Build.props | ||
| Directory.Packages.props | ||
| global.json | ||
| NuGet.Config | ||
| OpenAC.MosswartMassacre.slnx | ||
| README.md | ||
Mosswart Massacre for OpenAC
A private OpenAC port of the Mosswart Massacre DECAL plugin: it streams telemetry, vitals, chat, inventory, combat and character stats to the Mosswart Overlord backend, shares vitals and debuffs across machines, runs the commands typed into the Overlord chat box, keeps the flag tracker and syncs metas.
The backend contract is fixed. Every frame this plugin sends or accepts is
byte-for-byte what the DECAL plugin sent and accepted; the golden tests under
tests/ pin each one. Change a frame only together with the backend.
Building
The plugin contract comes from the OpenAC release of the version named in
Directory.Build.props (PluginApiPackageVersion). Put that release's
AcDream.Plugin.Abstractions.<version>.nupkg in packages-local/:
gh release download v0.1.18 -R eriknihlen/OpenAC -p "AcDream.Plugin.Abstractions.0.1.18.nupkg" -D packages-local
dotnet build OpenAC.MosswartMassacre.slnx
dotnet test OpenAC.MosswartMassacre.slnx
Installing
Copy src/OpenAC.MosswartMassacre/bin/<config>/net10.0/ (the dll, its
.deps.json, Newtonsoft.Json.dll, plugin.json and the markup) into
%LOCALAPPDATA%\acdream\plugins\openac.mosswartmassacre\.
First run
Streaming is off until you turn it on. The shared secret is never compiled in:
/mm ws secret <the backend's shared secret>
/mm ws enable
/mm help lists every command.