Skip to content

Suppress auto-popup of Dialog_NamePlayerGravship in MP#1

Closed
sviyh wants to merge 1 commit intomasterfrom
fix/suppress-gravship-naming-dialog
Closed

Suppress auto-popup of Dialog_NamePlayerGravship in MP#1
sviyh wants to merge 1 commit intomasterfrom
fix/suppress-gravship-naming-dialog

Conversation

@sviyh
Copy link
Copy Markdown
Owner

@sviyh sviyh commented Apr 11, 2026

Summary

  • Prefix on Building_GravEngine.UpdateSubstructureIfNeeded sets haveShownNameDialog = true in MP, preventing the auto-popup of Dialog_NamePlayerGravship during tick
  • Without this, both clients independently create the dialog and submit different names, causing a desync
  • Manual rename via inspect tab (IRenameable) is already synced generically by SyncMethods
  • Cached FieldRef to avoid per-call reflection overhead (this method runs from property getters hit many times per frame)

Test plan

  • Start MP game, build gravship with >90 substructure tiles
  • Verify naming dialog does NOT auto-popup
  • Verify manual rename via inspect tab works and syncs across clients
  • Verify no lag when grav engine is selected

🤖 Generated with Claude Code

Building_GravEngine.UpdateSubstructureIfNeeded creates this dialog
during tick when validSubstructure.Count > 90. In MP both clients
independently create and submit it, causing a desync. Set the
[Unsaved] haveShownNameDialog flag in a prefix so the auto-popup
condition is never met. Manual renaming via inspect tab (IRenameable)
is already synced generically by SyncMethods.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant