Skip to content

Skip the start menu in multiplayer - #29

Merged
maxis27 merged 1 commit into
multiplayerfrom
claude/project-thread-ru39h5
Sep 27, 2026
Merged

maxis27 merged 1 commit into
multiplayerfrom
claude/project-thread-ru39h5

Conversation

@maxis27

@maxis27 maxis27 commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Requested by Mateusz · project thread

Before: with -host or -connect the game still opened the main menu and the player had to pick "New game". While the host sat in the menu, connected clients saw no NPCs, items or chests. A client always started its own default world, ignoring the one the host named in Welcome. "New game" and "Load" (menu and F9) worked during a session and replaced the world under the other players.

After: the host starts its world right away. A client keeps the menu only while connecting, then loads the host's world as soon as it is welcomed; if connecting fails the menu stays usable for singleplayer. During a session "New game" prints "New game is disabled in multiplayer" and loading prints "Loading is disabled in multiplayer" (saving was already off since MP-13). -save is ignored in multiplayer.

How: NetSession keeps the world name from Welcome and hands it out once via takeJoinedWorld(); MainWindow::tick starts that world after tickNetwork() and closes the menu. The MainWindow constructor starts the host's world instead of showing the menu. Gothic::load and the NEW_GAME menu action refuse in multiplayer. NetSessionTest checks that the client gets the host's world exactly once.

Built Gothic2Notr and ran all six net tests locally (passing). Not run with game data.

🤖 Generated with Claude Code

https://claude.ai/code/session_019dyusVFME4gJhJqqEh2dDn


Generated by Claude Code

The host starts its world right away; a client starts the world named in
the host's Welcome once it is welcomed (the menu stays while connecting or
if connecting fails). New game and loading a save are refused while in a
multiplayer session, since both would replace the session's world.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019dyusVFME4gJhJqqEh2dDn
@maxis27 maxis27 self-assigned this Sep 27, 2026
@maxis27
maxis27 merged commit 1fbca93 into multiplayer Sep 27, 2026
6 checks passed
@maxis27
maxis27 deleted the claude/project-thread-ru39h5 branch September 27, 2026 23:50
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