WheelMUD icon indicating copy to clipboard operation
WheelMUD copied to clipboard

Can get multiple copies of player into the world

Open DavidRieman opened this issue 4 years ago • 2 comments

Logging in, quitting, and logging in immediately again can result in two versions of the player being loaded. We need the login system to search for matching players from the PlayerManager first before trying to load the player from the document DB.

Similarly for logging in to a new terminal while the player is already connected; the old terminal is disconnected but we end up with a second copy of the player Thing in the world.

@duaneking adds: "On login, check for prior session and attach to it if it exists?" Indeed, a viable approach.

DavidRieman avatar Dec 14 '20 07:12 DavidRieman

I can't reproduce either scenario. Can you clarify the steps/timing?

JeremyTHolland avatar Dec 14 '20 17:12 JeremyTHolland

Log in, "l" to look at room. Disconnect or quit. Reconnect. Log in with the same character. "L" again. You will see a copy of yourself in the room.

DavidRieman avatar Dec 14 '20 18:12 DavidRieman