Skip to content

Add four-machine support to existing mod with live scores and recruitment guards - #1

Draft
15964704084li-blip wants to merge 2 commits into
MuNET-OSS:mainfrom
15964704084li-blip:draft/four-machine-client
Draft

15964704084li-blip wants to merge 2 commits into
MuNET-OSS:mainfrom
15964704084li-blip:draft/four-machine-client

Conversation

@15964704084li-blip

@15964704084li-blip 15964704084li-blip commented Dec 2, 2026 •

Copy link
Copy Markdown

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 existing mod/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.cs and FutariSocket.cs; additional feature modules live under mod/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 回归及退出重连等限制。

Preserve the reconstructed .13 prototype as a standalone build with MIT attribution, Chinese usage documentation, and 288 managed regression checks. Document incomplete four-real-machine validation, recruitment regressions awaiting field confirmation, and the known shutdown reconnect path.

namespace WorldLink;

public static class TomletShim

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么这个文件要被复制一份

Comment thread README.md Outdated

## Experimental four-machine client (draft)

An independently built four-machine, one-player-per-machine prototype is available

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我认为应该在原先 mod 的基础上改,不要增加一份新 mod

Reuse upstream TomletShim, shared protocol types, logging and extensions. Move tests outside the production project. Reuse unchanged score snapshots and cache label formatting; 289 managed checks pass. Native frame-time and four-real-game validation remain pending.
@15964704084li-blip 15964704084li-blip changed the title Prototype: four-machine client, live scores and recruitment guards Add four-machine support to existing mod with live scores and recruitment guards Dec 4, 2026

This branch was successfully deployed

1 active (outdated) deployment
github-pages — aaa6a906 Deployed Dec 2, 2026 by 15964704084li-blip via build_deploy_frontend #6
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