Thread: Pest Control Working, but the logging.

Results 1 to 6 of 6
  1. #1 Pest Control Working, but the logging. 
    Registered Member
    Join Date
    Jan 2008
    Posts
    194
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Ok I have compiled and no errors, It works perfect for me. But sometimes people will lag, and when they login they should go back to the boat but instead it lags the whole server, then nobody can move and it says already connected when people try to login. I have already tried to remove the Pc and Pcgame from the login delay and it still doesn't work. I have One Connection per IP on my Server, that could be the problem. I don't want to take it out tho.

    Pest Control with full Portals:
    Pest Control

    One Connection Per IP:
    One Connection
    Reply With Quote  
     

  2. #2  
    Previously Hyperion


    Join Date
    Jan 2009
    Posts
    1,254
    Thanks given
    3
    Thanks received
    18
    Rep Power
    138
    Code:
    	if (inPcGame() == true)
    	{
    	teleportToX = 2657;
    	teleportToY = 2639;
    	logout();
    	savefile = true;
    	}
    	if (inPcBoat() == true)
    	{
    	teleportToX = 2657;
    	teleportToY = 2639;
    	PlayerHandler.playersInPc -= 1;
    	logout();
    	savefile = true;
    	}
    did you add this from the pc tut? If so should work fine. I recommend using some other pc though as the one you used isnt to great
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2008
    Posts
    194
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Well ok I will try it but i like this one better.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Auruo's Avatar
    Join Date
    Mar 2008
    Age
    32
    Posts
    750
    Thanks given
    21
    Thanks received
    15
    Rep Power
    499
    Quote Originally Posted by Daniel View Post
    It has been brought to my attention that if a character logs in with an incorrect username/password or there is too many players in the world the connection woundn't be removed.
    The fix is simple, however due to the variety in the programs login method it will make it harder to do.

    Anywhere isn't your run() that has
    Code:
    disconnected = true;
    				return;
    change it to:
    Code:
    list.remove(connectedFrom);
    disconnected = true;
    				return;
    unless it has the shutdownerror method in it.


    Next, anywhere that has returnCode = and it doesn't equal to 2, you must put
    Code:
     list.remove(connectedFrom);
    below it.
    Maybe this?
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Jun 2007
    Posts
    2,237
    Thanks given
    267
    Thanks received
    411
    Rep Power
    1283
    Did you add
    Code:
    list.remove(connectedFrom);
    in your logout and destruct method? If not you need it there.

    And your case 9154 should look like this
    Code:
    if (inPcGame())	{
    	teleportToX = 2657;
    	teleportToY = 2639;
    	logout();
    	savefile = true;
    } else {
    	teleportToX = 2657;
    	teleportToY = 2639;
    	PlayerHandler.playersInPc -= 1;
    	logout();
    	savefile = true;
    }
    Don't worry, Be happy.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jan 2008
    Posts
    194
    Thanks given
    1
    Thanks received
    0
    Rep Power
    1
    Ok I will try that out, I hope it works. Rep+ to yall that helped.
    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
  •