Thread: Random Dc [Elvarg Base]

Results 1 to 6 of 6
  1. #1 Random Dc [Elvarg Base] 
    Registered Member

    Join Date
    Aug 2012
    Posts
    2,367
    Thanks given
    228
    Thanks received
    402
    Rep Power
    218
    Hey guys most of you may know about krator, and if you dont it's been under development for the past year +. Afer some live testing we've come across a bug that I cannot fix. Random players seem to be dcing at random times... and sometimes they are in combat and cannot log back in on their account once their client is lost... It doesn't seem to be a server error... cause there are no errors outputted... If it is the server, then i think its the way the packets are being read in..


    As I said there is no error output to trace the issue... When i sysout incoming opcodes on the server I seem to receive all the correct ones but at times receive random ones. The client in readpacket i sysouted opcode and it seems like only 2 packets are constantly being sent from the server, which is the player updating and npc updating I believe. Any help would be appreciated... Serious bug...
    Reply With Quote  
     

  2. #2  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    949
    Thanks given
    46
    Thanks received
    149
    Rep Power
    363
    Regarding the lack of error output. Make sure all try catches print the stacktrace. Quite often is it just caught and ignored. I'd start your search by making sure you don't ignore any.
    My informative threads:
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member

    Join Date
    Aug 2012
    Posts
    2,367
    Thanks given
    228
    Thanks received
    402
    Rep Power
    218
    Quote Originally Posted by TheChosenOne View Post
    Regarding the lack of error output. Make sure all try catches print the stacktrace. Quite often is it just caught and ignored. I'd start your search by making sure you don't ignore any.
    Tbh I spent about 2 hours last night placing Sysouts for a lot of try catches even put in e.printstacktrace but i can't get any errors outputted... not sure where to look now.. i've check player session player channelhandler networkhandler... anything related to packets basically.

    Heres a gif of me getting random packets during chat. Apparently this is what happens at random times. probably due to them typing or even other packets causing it tbh. Not sure..



    some other random packets that get received before logging out..
    101,136
    Seems to change every time..
    Reply With Quote  
     

  5. #4  
    Registered Member
    TheChosenOne's Avatar
    Join Date
    Jan 2013
    Posts
    949
    Thanks given
    46
    Thanks received
    149
    Rep Power
    363
    You say you don't get any errors. But I see a "null" is printed out in your gif (above packet 61). So you are actually printing out something. You just don't know where it comes from.
    Have you verified your chatPacket (packet 4)? I'm guessing you're reading an incorrect length of chat data.
    The remainder or shortage of data being interpreted as false packets which mess up the rest (eventually causing an error, disconnecting the player).

    Code:
    int effects = packet.getByteS() & 0xFF;
    int colour = packet.getByteS() & 0xFF;
    int size = packet.getLength() - 2;
    byte[] chatMessage = new byte[size];
    packet.getReverseA(chatMessage, 0, size);
    EDIT: just realised this doesn't make all that much sense since the length of the packet is known when you're processing it.
    But still... could you verify the chatMessages get to your server complete?
    Last edited by TheChosenOne; 05-14-2019 at 12:47 AM. Reason: Realised I was wrong
    My informative threads:
    [Only registered and activated users can see links. ]
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  6. #5  
    Registered Thanker
    MrClassic's Avatar
    Join Date
    Oct 2008
    Age
    24
    Posts
    1,739
    Thanks given
    2,522
    Thanks received
    84
    Rep Power
    1575
    Are they disconnecting in heaps? like:

    Code:
    Player X has logged out
    Player X has logged out
    Player X has logged out
    Player X has logged out
    Player X has logged out
    Player X has logged out
    Player X has logged out
    or are all the players really logging out randomly?
    Spoiler for Get rid of cheaters/dupers:
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #6  
    Registered Member

    Join Date
    Aug 2012
    Posts
    2,367
    Thanks given
    228
    Thanks received
    402
    Rep Power
    218
    Thanks for the help we'll manage something
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Buy debug services [Elvarg random dc?]
    By Guruu in forum Buying
    Replies: 7
    Last Post: 08-07-2018, 09:36 PM
  2. PI based source: random dc's and lagg
    By SimpleScape in forum Help
    Replies: 4
    Last Post: 01-30-2011, 01:44 PM
  3. Fix: Get rid of T1/T2's (Random dc's)
    By iZAjz in forum Configuration
    Replies: 26
    Last Post: 06-24-2009, 01:53 PM
  4. 508 Random Dc
    By sudomuffin in forum Help
    Replies: 6
    Last Post: 06-01-2009, 12:59 AM
  5. Uh random dcs?
    By Le Stat in forum Help
    Replies: 2
    Last Post: 03-28-2009, 11:11 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •