ClassicUO / classicuo-web

MIT License
15 stars 4 forks source link

🐛 [BUG] - User Profile getting overwritten if attempting to log in before last char has finished logging out. #142

Open SquareBovine opened 1 month ago

SquareBovine commented 1 month ago

Discord Username

ZozmaLS

Description

I noticed when I attempted to log in with "Char A" too quickly and "Char B" was still logged in, I got the ClassicUO message "Char A profile has been loaded" but then got the UO message about another character still being logged in. So, I wait a few seconds and login successfully but notice all my spells and skills are "Char B" but oddly enough it retained all of the hotkeys I had set for "Char A". I had this happen once before but wasn't sure what caused it, so today when it happened, I knew what caused it.

Reproduction steps

1. Go to 'logout any character (other than a gargoyle, they seem to insta-log for some reason) provided you have a profile made for that specific character'
2. Attempt to login another char as quickly as possible (provided this character also has a profile already saved also) 
3. If the first character wasn't logged out yet you should see ClassicUO message (mine appears in top right corner) saying profile o second character loaded but also you'll get the message from UO saying you can't login because another character is already logged in.
4. Retry login with second character and you'll notice it loads the profile matching this characters name but all the spells and skills will actually be the first characters profile.

Screenshots

![DESCRIPTION](LINK.png)

Logs or Error messages

No response

Browsers

No response

OS

No response

rodsulli commented 1 month ago

can confirm had this happen to me. An easier way to recreate is get flagged for combat or log off not in a safe place and then try to log into second character.

SquareBovine commented 1 month ago

I found reloading a state from a previous session fixed the issue but was annoying the first couple times it happened. I went through and pulled all the spell icons and redid my whole layout.