modules — multiplayer 2/2: sharing v2 — expressed through the mode grammar - #8463
Closed
keithharvey wants to merge 2 commits into
Closed
modules — multiplayer 2/2: sharing v2 — expressed through the mode grammar#8463keithharvey wants to merge 2 commits into
keithharvey wants to merge 2 commits into
Conversation
Contributor
Integration Test Results19 tests +4 7 ✅ ±0 15s ⏱️ ±0s For more details on these failures, see this check. Results for commit e3bd7f9. ± Comparison against base commit 077df5f. ♻️ This comment has been updated with latest results. |
This was referenced Jul 26, 2026
The main chunk sat at exactly 200 locals — Lua's LUAI_MAXVARS — so the next local anywhere in it fails the load. The state table already existed with every field; the aliases unpacked 30 of them straight back into locals. Drop the alias block and reference state.* directly: 734 sites, 200 -> 170 locals. Token-for-token identical to the original once the aliases are folded in, so behavior is unchanged.
… gadgets, tech, the tab
Collaborator
Author
|
Superseded by the twelve-stage stack starting at #8473: the same work re-cut by domain with foundations first, one commit per PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sharing, re-expressed on the module stack (base:
modes— review this diff only). Feature tracking: #8412 (QA history, required Chobby/engine/teiserver PRs, design links). Supersedes #8408 and the 7-PR sharing chain (#8125–#8095).One squash, deliberately: the original commit tail replayed onto the mode grammar and de-noised (~44% of insertions and ~82% of deletions were stylua reformat of files master doesn't format; removed by token-level splice, gated on lexer token-stream equality).
modules/sharing/owns its lib, economy boundary, policies, gadgets, widgets, policy views, specs, and types; the sharing modes (Disabled,Enabled,Easy Tax,Tech Core,Customize) are mode-grammar chains over sharing's own nouns and serializers. Spec discovery is generic (modules/*/spec), and the mode-infrastructure export widget lives inmodules/modes.Where the diff goes (13,181+ / 2,578−)
modules/sharing— lib, economy, policies, modes, typesmodules/sharing/spec,luaui/Tests/sharing, spec buildersmodules/sharing/gadgetsFeature code without the test suite: 9,561+.
The carried-file column is mostly two things.
gui_chatis the 200-local ceiling fix — the main chunk sat at exactlyLUAI_MAXVARS, so sharing's additions could not load — and it is commit 1 of 2 here, separable and also open standalone against master as #8467; when that lands this PR rebases and the ~530-line mechanical diff leaves entirely. Sharing's own chat footprint is 172+/108−.gui_advplayerslist(376+/598−, net −222) is them_*block extracted intogui_advplayerslist_modules.lua(+212).Formatting noise was measured, not assumed: hunk-level token comparison (normalizing whitespace, quote style, trailing commas,
['x']↔x) across every modified Lua file leaves under ~100 lines of pure reformat; the 42 files relocated intomodules/sharing/are line-for-line identical to their originals; and running stylua over the new module files would add ~1,000 lines, so nothing here is formatter inflation.Audit trail with per-file noise numbers and flagged follow-ups:
bar-design-docs/sharing_tab/sharing_squash_audit.md. Specs: 397/0.