Skip to content

Send game version with slave despawn payload#1960

Merged
Robosturm merged 1 commit into
Robosturm:masterfrom
TheMasterCreed:send-game-version-with-slave-despawn
May 5, 2026
Merged

Send game version with slave despawn payload#1960
Robosturm merged 1 commit into
Robosturm:masterfrom
TheMasterCreed:send-game-version-with-slave-despawn

Conversation

@TheMasterCreed
Copy link
Copy Markdown
Contributor

GameMenue::doDespawnSlave and Multiplayermenu::doSaveLobbyState constructed the SLAVEINFODESPAWNING JSON manually and never inserted versionMajor / versionMinor / versionRevision / versionSufix. MainServer::onSlaveInfoDespawning called NetworkGameData::fromJson on the message, which read those missing keys as 0 and the empty string, so each suspended-slave entry in m_runningSlaves and m_runningLobbies got stamped 0.0.0- as its game version. When a player tried to rejoin from the My Games view, LobbyMenu::checkGameVersion compared 0.0.0- against GameVersion() (the live binary) and refused the join with "Game has a different version. Game version: 0.0.0-".

Insert the four version keys at both call sites, mirroring NetworkGameData:: toJson, so suspended games carry their actual version through the despawn / relaunch round trip.

GameMenue::doDespawnSlave and Multiplayermenu::doSaveLobbyState constructed the
SLAVEINFODESPAWNING JSON manually and never inserted versionMajor / versionMinor
/ versionRevision / versionSufix. MainServer::onSlaveInfoDespawning called
NetworkGameData::fromJson on the message, which read those missing keys as 0
and the empty string, so each suspended-slave entry in m_runningSlaves and
m_runningLobbies got stamped 0.0.0- as its game version. When a player tried
to rejoin from the My Games view, LobbyMenu::checkGameVersion compared 0.0.0-
against GameVersion() (the live binary) and refused the join with "Game has a
different version. Game version: 0.0.0-".

Insert the four version keys at both call sites, mirroring NetworkGameData::
toJson, so suspended games carry their actual version through the despawn /
relaunch round trip.
@Robosturm Robosturm merged commit bb8b7ef into Robosturm:master May 5, 2026
2 checks passed
@TheMasterCreed TheMasterCreed deleted the send-game-version-with-slave-despawn branch May 6, 2026 19:11
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