openmultiplayer / open.mp

Open Multiplayer, a multiplayer mod fully backwards compatible with SA-MP
https://open.mp
Mozilla Public License 2.0
425 stars 79 forks source link

[BUG]: gmx / reconnect from class selection #588

Open BeckzyBoi opened 1 year ago

BeckzyBoi commented 1 year ago

RCON gmx , or any "successful" reconnection, for players who are at class selection, causes them to to get stuck at the Verona Beach connecting screen before reaching OnPlayerRequestClass (which isn't ever called as a result). At this point the players' only option is to quit the game and rejoin.

To reproduce:

  1. Enter class selection
  2. Call RCON gmx , or briefly disconnect your internet until the server tries to reconnect you.
  3. Wait til you're reconnected and voila!

open.mp server version:

build10 , but this has always happened at class selection since the SA-MP logo was removed and the 3 buttons (left, right, spawn) were added. Maybe even before that?

OS:

Windows 11 at present. Happens on all.

Contact:

beckzy #5936

It's an old SA-MP bug that can possibly be fixed in the omp server. My apologies if I've submitted this in the wrong place.

AmyrAhmady commented 1 year ago

This can not be fixed without client, because client is not signaling anything about this behavior to server and we can't possibly know it's happening

EDIT: Talked to beckzy, maybe we can add a temporary solution into Fixes component for now.

BeckzyBoi commented 1 year ago

SpawnPlayer inside OnPlayerDisconnect seems to resolve this without any noticable problems, although I understand that that is through the gamemode, and not the server code, and that applying the same fix through the server might not be as straight-forward?

Thanks.