Thread: Riotscape Username problem

Results 1 to 3 of 3
  1. #1 Riotscape Username problem 
    Registered Member
    Join Date
    Nov 2009
    Posts
    106
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Alright, so far i'm liking Riotscape, i've made my own adjustments, and small big fixes, but now i've found a problem with the username upon login this is the problem:

    A username below the length of 5 characters will not log you in, it will just say server's offline.

    And but when you login with a username length of 5, the last character in the username will become your name, wdf? Example:

    Say my username was "yo123" when I login my name with instantly be "3" instead of my whole disired username.

    Or if my username was "yo123hi12345" it will cut off the 4 characters at the start, so "yo123hi12345" would be "3hi12345".

    I hope there is a fix for this, or even if someone can help me with this.
    Reply With Quote  
     

  2. #2  
    Registered Member
    PSNB's Avatar
    Join Date
    Aug 2009
    Posts
    885
    Thanks given
    8
    Thanks received
    103
    Rep Power
    590
    It seems that the login process of the server reads an extra four bytes of data, or your client is sending four less bytes of data than it should be. So, you've got two choices.

    1. Figure out where those extra 4 bytes are being read in the server, and delete them.
    2. Add an extra 4 bytes of data to the stream before the username is sent.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2009
    Posts
    106
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Quote Originally Posted by PSNB View Post
    It seems that the login process of the server reads an extra four bytes of data, or your client is sending four less bytes of data than it should be. So, you've got two choices.

    1. Figure out where those extra 4 bytes are being read in the server, and delete them.
    2. Add an extra 4 bytes of data to the stream before the username is sent.
    This was the only byte i could find so far
    Code:
    s1Response.setBare(true).addBytes(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }).addByte((byte) 0).addLong(serverSessionKey);
    I've added 4 extra "0, 0, 0, 0," to the btye just like you said, and now i get "Your account has been disabled." when having a 1 letter username.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •