Thread: Getting deregistered right after login

Results 1 to 7 of 7
  1. #1 Getting deregistered right after login 
    Registered Member
    Join Date
    May 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I am using 2006Redone as a base and whenever I login i immediately get logged out.

    This is the only thing i could find that has the word DEREGISTERED in it so i figured I'd post it here
    Code:
    Misc.println("[DEREGISTERED]: " + playerName + "");
    		HostList.getHostList().remove(session);
    		CycleEventHandler.getSingleton().stopEvents(this);
    		disconnected = true;
    		session.close();
    		session = null;
    		inStream = null;
    		outStream = null;
    		isActive = false;
    		buffer = null;
    		super.destruct();
    		PlayerSave.saveGame(this);
    This error comes up in the client : Error: T2 - 97,208,126 - 2,0,0 - 59,-116, (not sure if thats making it log me out or what)

    any help is appreciated
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    wrong packet size probably
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    May 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Professor Oak View Post
    wrong packet size probably
    i really don't know what to do with the advice you gave me would i need to change the 0 in here? that probably isn't right lol I'm hopeless

    Code:
    public synchronized void remove(IoSession session) {
    		if (session.getAttribute("inList") != Boolean.TRUE) {
    			return;
    		}
    		String addr = ((InetSocketAddress) session.getRemoteAddress())
    				.getAddress().getHostAddress();
    		Integer amt = connections.get(addr);
    		if (amt == null) {
    			return;
    		}
    		amt -= 1;
    		if (amt <= 0) {
    			connections.remove(addr);
    		} else {
    			connections.put(addr, amt);
    		}
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Dec 2014
    Posts
    369
    Thanks given
    77
    Thanks received
    112
    Rep Power
    164
    Quote Originally Posted by Delwon View Post
    i really don't know what to do with the advice you gave me would i need to change the 0 in here? that probably isn't right lol I'm hopeless

    Code:
    public synchronized void remove(IoSession session) {
    		if (session.getAttribute("inList") != Boolean.TRUE) {
    			return;
    		}
    		String addr = ((InetSocketAddress) session.getRemoteAddress())
    				.getAddress().getHostAddress();
    		Integer amt = connections.get(addr);
    		if (amt == null) {
    			return;
    		}
    		amt -= 1;
    		if (amt <= 0) {
    			connections.remove(addr);
    		} else {
    			connections.put(addr, amt);
    		}
    No, check the packet you send on logout, the problem is probably within it.
    Attached image
    Reply With Quote  
     

  5. #5  
    Extreme Donator


    Join Date
    Oct 2010
    Posts
    2,853
    Thanks given
    1,213
    Thanks received
    1,622
    Rep Power
    5000
    Check which packets are being sent from the server and make sure client is reading them properly
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    May 2016
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by xfukecx View Post
    No, check the packet you send on logout, the problem is probably within it.
    Quote Originally Posted by Professor Oak View Post
    Check which packets are being sent from the server and make sure client is reading them properly
    Error: T2 - 97,208,126 - 2,0,0 - 59,-116

    so the packet thats being sent on logout would be packet 97? I'm pretty new to this also how would i know where to go after i found which packet
    Reply With Quote  
     

  7. #7  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Delwon View Post
    Error: T2 - 97,208,126 - 2,0,0 - 59,-116

    so the packet thats being sent on logout would be packet 97? I'm pretty new to this also how would i know where to go after i found which packet
    Could be something wrong with the login interface.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    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

Similar Threads

  1. Replies: 2
    Last Post: 07-10-2014, 06:09 AM
  2. Replies: 6
    Last Post: 05-21-2012, 10:39 PM
  3. Replies: 1
    Last Post: 05-03-2009, 02:49 AM
  4. Help nobody can get it right!
    By Courtney in forum Help
    Replies: 7
    Last Post: 05-01-2009, 01:24 PM
  5. Help nobody can get it right!
    By Courtney in forum Help
    Replies: 0
    Last Post: 04-27-2009, 12:52 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
  •