Chat says it's only available in a lobby while you're in one (late leave answer tears down the new lobby)
Maintainer thường phản hồi trong vòng 2 ngày
Một pull request liên quan đã được merge.
- #48 của @Jr-JoshS — đã merge
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- lua
- Lĩnh vực
- api, networking
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Lua
- Star
- 10
- Fork
- 8
- Merge trung bình
- 1 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 20
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Balatro-Multiplayer/BalatroMultiplayerAPI
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Balatro-Multiplayer/BalatroMultiplayerAPI#53 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Balatro-Multiplayer/BalatroMultiplayerAPI#14 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Balatro-Multiplayer/BalatroMultiplayerAPI#13 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
Balatro-Multiplayer/BalatroMultiplayerAPI#6 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của Balatro-Multiplayer/BalatroMultiplayerAPI
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100