Skip to content

Prototype: four-machine client, live scores and recruitment guards - #1

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

15964704084li-blip wants to merge 1 commit 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

Proposal

This draft shares an experimental four-machine client: one player enters on 1P on each of four PCs, with synchronized start, live achievements and independent result ranks. It also adds preparation cards (difficulty, readiness, chart history and local icon resources) and guards for recruitment-related failures.

The current prototype is placed in mod-fourplayer/ as a standalone build. The existing mod/, server, frontend and workflows are unchanged. I would appreciate feedback on the integration direction before turning this into smaller, merge-ready changes.

Source and scope

This implementation was developed from a reconstructed source snapshot of a user-supplied WorldLink DLL, then added on top of upstream fdce68e. It is not yet an in-place port onto the current upstream client, and retains duplicated legacy client code. MIT attribution is preserved. No game assemblies, assets, card files, live logs or private machine configuration are included.

  • Isolated four-machine room/wire marker, packet capacities and player/result mapping; all participants must use this version and enter on 1P only.
  • Two-row live score HUD and preparation information, including optional chart history transmitted with player metadata.
  • Main-thread recruitment updates, expiry/disposal guards, staged song selections, song/chart validation and Freedom/Course recruitment isolation.
  • Chinese installation/configuration/troubleshooting documentation, standalone build/package scripts and managed regression suites.

See mod-fourplayer/docs/UPSTREAM_REVIEW.md in the source branch for a file-by-file review map and integration limitations.

Validation

  • Rebuilt .13 from this branch with Roslyn 4.12.0 against locally supplied references; SHA-256: CDD47C95F394B4B5D0770B98437B1F8A99B153CD55ADF89691DA2A51D2D38A1D.
  • All 288 checks across seven managed regression suites passed. These include recruitment, lobby handling, protocol/transport, hook installation, score model and preparation metadata. Test-only fixtures preserve the managed IL; these tests do not execute Unity-native rendering.
  • Earlier .12 field testing used one real game and three lightweight protocol clients, confirming join/start, score exchange, normal result completion and distinct 1st–4th ranks. Four real game clients have not been validated.

Why this remains a draft

  • Pinned to one SDEZ 1.70 game assembly (MVID 24f6a64f-2eeb-42d4-b6f9-ae17d637d569), Unity 2018.4.7f1 and MelonLoader 0.6.4.
  • .13 recruitment guards have automated coverage, but the reported white-screen/Freedom failures still need regression confirmation on affected real games and complete exception stacks.
  • A known shutdown reconnect path remains: interval finalizers can reconnect after stopping, and ConnectAsync can still create a thread during teardown.
  • Shared code, optional-mode configuration, upstream Unity integration, the disabled-by-default local test-control bridge and CI integration need maintainer review. Existing upstream CI does not validate this separate build target.

Please keep this as a draft for discussion. I am happy to split generally useful crash guards from four-machine protocol/UI work and port agreed changes into mod/ after feedback.


中文说明:这是四台电脑、每台仅 1P 的实验版本草稿,含实时成绩、准备页及招募防护。已通过 288 项自动检查,实机验证范围为一台游戏加三个轻量客户端;尚未完成四台真实游戏验证,白屏/Freedom 回归和退出重连问题仍待处理。当前独立放置于 mod-fourplayer/,希望先讨论整合方向,再拆分为适合合并的修改。

View guided diff

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

## 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

This branch was successfully deployed

1 active 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