Chat says it's only available in a lobby while you're in one (late leave answer tears down the new lobby)
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- lua
- Domaine
- api, networking
Piste de recherche
The bug is in the teardown run by lobby:leave() when the lobby_leave RPC callback arrives late. Start with the callback and the cleanup functions it calls: L.cleanup, MPAPI.chat.cleanup(), nakama_lobby.forget() and on_lobby_disconnected(). Done means a late leave answer no longer affects a lobby the player has since joined, which you can check by delaying the callback and confirming chat, match updates and the lobby page still work. Open PR #48 already targets this, so coordinate with its author before starting.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Reported in #bugs-and-issues: "I am in a game and it shows this" — [MultiplayerAPI] Chat is only available while in a lobby.
Why: lobby:leave() tears the lobby down in the lobby_leave RPC's callback. If that answer comes after the player is already in another lobby (left and quickly created, joined or got matched into a new one), the old lobby's L.cleanup runs against the new one:
MPAPI.chat.cleanup()switches chat off, so typing in the new lobby shows the message above.nakama_lobby.forget()drops the new lobby's match, so it stops getting lobby updates (its host never sees the next player join).on_lobby_disconnected()sends the player back to the mod menu while they are still in the new lobby.
To reproduce: delay the lobby_leave callback by ~3s (a slow answer), leave a lobby and create a new one right away. Once the late answer lands: chat is off, the host doesn't see a player who joins, and the lobby page is replaced by the mod menu.
Reproduced with two clients on a local server.
- Langage dominant
- Lua
- Étoiles
- 9
- Forks
- 4
- Merge moyen
- 19 h 50 min
- PR mergées (30 j)
- 11
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Balatro-Multiplayer/BalatroMultiplayerAPI
-
Replay skips booster packs opened with the shop OPEN buttonPeut-être pris @Jr-JoshS l’a pris il y a 2 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Balatro-Multiplayer/BalatroMultiplayerAPI#49 ·
Les mainteneurs répondent en général sous 1 jour
-
Lobby screen stays drawn behind the run after the game startsPeut-être pris @Jr-JoshS l’a pris il y a 3 jours. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 20/100
Balatro-Multiplayer/BalatroMultiplayerAPI#44 ·
Les mainteneurs répondent en général sous 1 jour
-
Match History doesn't show the rating change per matchPeut-être pris @Jr-JoshS l’a pris il y a 3 jours. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 30/100
Balatro-Multiplayer/BalatroMultiplayerAPI#42 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Balatro-Multiplayer/BalatroMultiplayerAPI#14 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Balatro-Multiplayer/BalatroMultiplayerAPI#13 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de Balatro-Multiplayer/BalatroMultiplayerAPI
Issues similaires
-
examples/dnsdoctor: cleanup.sh stops at the first missing piece of a setup.sh that did not finishOuverteseverity: low
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
luainkernel/lunatik#2263 ·
Les mainteneurs répondent en général sous 1 jour
-
Nmap
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
Renaming a folder corrupts History and Collections paths (prefix match without a "/" boundary)Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
koreader/koreader#16351 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100