Add four-machine support to existing mod with live scores and recruitment guards
Summary
Adds an experimental four-machine, one-player-per-machine mode to the existing mod/ client, including player/packet mapping, live achievements and ranks, preparation cards (difficulty/readiness/history/icon), and recruitment guards. Each machine enters on 1P and all participants need the same plugin version and compatible resources.
Changes following review
- Removed the separate
mod-fourplayer/source tree and integrated into the existingmod/WorldLink.csproj. - Reused upstream
TomletShim.cs,FutariTypes.cs(messages and logger),FutariExt.cs, build identity and Cake build. There is no duplicate configuration parser or second plugin project. - Updated existing
Core.cs,WorldLink/FutariPatch.cs,FutariClient.csandFutariSocket.cs; additional feature modules live undermod/WorldLink/. - Kept managed regression tests outside the production project, under
tests/mod/. - Reduced live-score overhead: reusable sampling objects, unchanged snapshot reuse, cached label formatting, and avoiding unchanged renderer sorting assignments. Data changes still update every frame. Font atlas invalidation remains active.
Chinese usage/build/troubleshooting documentation is in mod/README.md. See integration status for the review map.
Validation
- Local SDK-free Roslyn 4.12.0 build of the production sources succeeded against privately supplied game references.
- 289 checks across seven managed suites passed, including 10,000 unchanged live-score publications retaining the same snapshot. They do not execute native Unity rendering.
- Earlier field tests used one real game plus three lightweight protocol clients, confirming join/start, scores, result completion and distinct ranks. Four real game clients remain unverified.
- The original Cake/SDK build was retained but not run locally. No measured FPS improvement is claimed; gameplay frame-time comparison is still required.
Draft limitations
The original prototype was reconstructed from a user-supplied WorldLink DLL before being ported into this upstream branch. Upstream history and MIT attribution are preserved. No game assemblies/assets, account/card files or live logs are committed.
This remains pinned to the tested SDEZ 1.70 assembly (MVID 24f6a64f-2eeb-42d4-b6f9-ae17d637d569), Unity 2018.4.7f1 and MelonLoader 0.6.4. Reported white-screen/Freedom issues still need affected-game regression testing. The shutdown reconnect issue remains. Optional-mode configuration, Unity/AquaMai embedding, local test-control inclusion and four-real-machine compatibility require further review.
Please keep this in draft pending integration review and field validation.
已按审查意见移除重复插件目录,改在原 mod/ 工程整合,并复用原配置解析及共享类型。另减少实时成绩栏的重复分配、格式化与排序属性写入。289 项托管检查通过;尚未测量实机帧率提升,仍保留四台真实游戏、白屏/Freedom 回归及退出重连等限制。