Jump to content
Returning Members: Password Reset Required ×

Issue with New User Rollback on Server Restart


carniato

Recommended Posts

Hey everyone,

I’m having a problem with my server. When I restart it, new users experience rollback issues. Do you have any idea how I can solve this?

Here’s what I’ve observed from my tests:

  1. The error occurs with “new” accounts; they are not disconnected correctly.
  2. “Older” accounts are saved without any problems.
  3. New accounts remain linked until a login attempt is made on the client side, which forces a logout.
  4. If I restart the server, it doesn’t save the progress of these new accounts that have difficulty logging out.

Details:

  • In the first image, a PM account logs out easily, and all its progress is saved.
  • In the second image, a new account does not log out and does not save anything. If I force it to log in again, even though it is already logged in, it gives two errors and then logs out.
  • The problem with the second image is that if I restart the server, its progress will not be saved.

I believe the issue is that the UID is not being set for new clients, leaving it as 0. I’ve been struggling with this code for days.

An observation: if I set the character to level 130 via VIP, the disconnection issue stops, and it saves correctly according to the logs I’ve checked.

Any help would be greatly appreciated!

123123.png

Link to comment
Share on other sites

If you're going to copy and paste your questions from other forums, then can you at least select "Paste without formatting"? I'm not fixing this one...

It's hard for us to debug a private project we have no access to. If it is the UID, then yeah, I'd imagine a lot of the server would be unhappy with that. /shrug

Link to comment
Share on other sites

On 09/09/2024 at 03:06, Spirited said:

Se você vai copiar e colar suas perguntas de outros fóruns, então você pode ao menos selecionar "Colar sem formatação"? Não vou consertar isso...

É difícil para nós depurar um projeto privado ao qual não temos acesso. Se for o UID, então sim, imagino que boa parte do servidor ficaria infeliz com isso. /shrug

I am Brazilian and I am using a translator, I thought it would be easier to understand.

Finally, after days, I managed to find the problem. It was a check to see if the player had VIP6 status, and only then did it proceed to the saving part.

Link to comment
Share on other sites

8 hours ago, carniato said:

I am Brazilian and I am using a translator, I thought it would be easier to understand.

Finally, after days, I managed to find the problem. It was a check to see if the player had VIP6 status, and only then did it proceed to the saving part.

Ah, sorry then. You can still paste without formatting before posting. 😐 
Glad you found the issue.
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...