Thread: Nulled player.

Results 1 to 10 of 10
  1. #1 Nulled player. 
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    Ok so i got the error which causes my nulling sometimes. Im guessing i just need to make it disconnect nulled players so this doesnt happen? Not really to sure. Major rep to anyone who helps me fix.

    Code:
    java.net.SocketException: Connection reset
            at java.net.SocketInputStream.read(SocketInputStream.java:168)
            at client.fillInStream(client.java:7749)
            at client.run(client.java:15572)
            at java.lang.Thread.run(Thread.java:619)
    [client-14-null]: Error is in client.java
    clientHandler: client null disconnected (69.2.207.8)
    java.lang.NullPointerException
            at client.logout(client.java:9011)
            at PlayerHandler.saveGame(PlayerHandler.java:379)
            at PlayerHandler.removePlayer(PlayerHandler.java:371)
            at PlayerHandler.process(PlayerHandler.java:284)
            at server$1.execute(server.java:58)
            at EventContainer.execute(EventContainer.java:70)
            at EventManager.run(EventManager.java:80)
            at java.lang.Thread.run(Thread.java:619)
    Exception encountered while parsing incoming packets from Junzio.
    java.lang.NullPointerException
            at client.createNewTileObject(client.java:6788)
            at client.makeGlobalObject(client.java:3282)
            at client.NewObjects(client.java:3288)
            at client.parseIncomingPackets(client.java:10575)
            at client.packetProcess(client.java:15119)
            at PlayerHandler.process(PlayerHandler.java:271)
            at server$1.execute(server.java:58)
            at EventContainer.execute(EventContainer.java:70)
            at EventManager.run(EventManager.java:80)
            at java.lang.Thread.run(Thread.java:619)
    clientHandler: client Junzio disconnected (gprs-prointernet-ff526a00-204.dhcp.in
    et.fi)
    Connection from gprs-prointernet-ff526a00-204.dhcp.inet.fi:3361
    [client-3-Junzio]: Loading Process Completed  [Regular player, lag: 0 ms]
    null
    null
    null
    null

    Any other info you need just ask.
    Thanks heaps
    Message me for a DETAILED security scan of your website.
    Reply With Quote  
     

  2. #2  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Go into client.java and in your run() method add

    if ((playerName == null) || (playerName.length() == 0)) {
    //playerName = "player" + playerId;
    disconnected = true;
    }
    If you read it, it tells you it, disconnects nulled players.

    To fix the

    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream. java:168)
    at client.fillInStream(client.java:7749)
    at client.run(client.java:15572)
    at java.lang.Thread.run(Thread.java:619)
    You add a Catch

    To stop nulling on server which i did and worked add.

    Also add this in process, Client.java
    Code:
    		if (playerName == null) {
    			for (int i = 0; i < 1000000000; i++) {
    				System.out.println("Null blocked");
    			}
    			disconnected = true;
    			server.shutdownServer = true;
    		}
    in process


    Add that in process as Kelvin said public boolean process
    Attached image
    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    this has NOTHING to do with player nulls. nullpointerexeption happens when you attempt to read an int/boolean e.c.t from a null object. like this line is right under one of the null errors,
    Code:
    at client.createNewTileObject(client.java:6788)
    so just jump to that line,add something like "if(handler.players[playerId] != null) {"

    EDIT: what the FUCK is this?
    Code:
    		if (playerName == null) {
    			for (int i = 0; i < 1000000000; i++) {
    				System.out.println("Null blocked");
    			}
    			disconnected = true;
    			server.shutdownServer = true;
    		}
    1, that i < 1000000000 will crash the player.
    2, disconnected = true; does nothing to a null class
    3, server.shutdownServer = true; will fix the null problem. to bad the server wont be online anymore.
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    Code:
    		if (playerName == null) {
    			for (int i = 0; i < 1000000000; i++) {
    				System.out.println("Null blocked");
    			}
    			disconnected = true;
    			server.shutdownServer = true;
    		}
    That just spammed "nulled blocked" but i added your other code and bloods idea too. If they actually stop it ill rep you both.
    Message me for a DETAILED security scan of your website.
    Reply With Quote  
     

  5. #5  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Blood This actually works, the shutdownserver, yes your server will go back online i have tested it.

    when people nulled me through Allgofree, or anthing else i used this and it stopped it.

    Quote out the System.out if you don't need it

    System.out.println("Null blocked");
    Just Trying to help.

    EDIT: what the FUCK is this?
    Code:

    if (playerName == null) {
    for (int i = 0; i < 1000000000; i++) {
    System.out.println("Null blocked");
    }
    disconnected = true;
    server.shutdownServer = true;
    }
    Ask Kelvin he made it.
    Attached image
    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    Quote Originally Posted by Freesunfury View Post
    Blood This actually works, the shutdownserver, yes your server will go back online i have tested it.

    when people nulled me through Allgofree, or anthing else i used this and it stopped it.

    Quote out the System.out if you don't need it



    Just Trying to help.



    Ask Kelvin he made it.
    I am talking about this notorious Delta "anti-leech" nulling. I thoguht it was fixed until two days ago, and when i tried fixing i just fail now.

    ---------- Post added at 02:10 PM ---------- Previous post was at 02:07 PM ----------

    The error before it always points to the logout method. Hmm.
    Message me for a DETAILED security scan of your website.
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    so you want it to shut off the server every time someone logs off? rofl. try removing thread per client.
    Reply With Quote  
     

  8. #8  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    33
    Posts
    6,017
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Quote Originally Posted by swiftymcfeat View Post
    I am talking about this notorious Delta "anti-leech" nulling. I thoguht it was fixed until two days ago, and when i tried fixing i just fail now.

    ---------- Post added at 02:10 PM ---------- Previous post was at 02:07 PM ----------

    The error before it always points to the logout method. Hmm.
    Do you have a vps?

    You need a fast internet connection to effeciently run delta (unless you remove the thread per client like he said) Otherwise it will null out 20-30 minutes.

    Before i fixed it it use to happen to me every time the cycle shit went over like 60%, which is caused MOSTLY by slow internet connection and/or low memory on your computer.


    Edit - Btw Start looking in server.java
    Reply With Quote  
     

  9. #9  
    Banned

    Join Date
    Jul 2008
    Age
    28
    Posts
    5,827
    Thanks given
    1,301
    Thanks received
    197
    Rep Power
    0
    thread per client has nothing to do with the amount of data sent and received.
    Reply With Quote  
     

  10. #10  
    Registered Member

    Join Date
    Mar 2008
    Age
    32
    Posts
    749
    Thanks given
    18
    Thanks received
    31
    Rep Power
    130
    Still looking for help...will rep
    Message me for a DETAILED security scan of your website.
    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
  •