Thread: z508 Crashing

Results 1 to 4 of 4
  1. #1 z508 Crashing 
    Registered Member

    Join Date
    Jun 2009
    Posts
    72
    Thanks given
    0
    Thanks received
    5
    Rep Power
    204
    Can anybody help me with this error?

    Code:
    Exception in thread "Thread-0" java.lang.NullPointerException
            at net.com.codeusa.model.Player.appendDeath(Player.java:2299)
            at net.com.codeusa.model.Player.process(Player.java:1904)
            at net.com.codeusa.Engine.run(Engine.java:188)
            at java.lang.Thread.run(Thread.java:619)
    I can't figure out what's crashing the server..
    Reply With Quote  
     

  2. #2  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    Player.java line
    2299
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Aug 2008
    Age
    31
    Posts
    774
    Thanks given
    97
    Thanks received
    131
    Rep Power
    328
    Then crash occured because the "appendDeath()" method was called by the Player.process() method.

    Look inside Player.appendDeath() method @ line 2299, see what could cause the error

    Or C/P here
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Jun 2009
    Posts
    72
    Thanks given
    0
    Thanks received
    5
    Rep Power
    204
    I've tried already. Line 2299 is blank..

    Code:
    	}
    
    	public String lastKilled = "";
    Line 2299 is in between that.

    Here's the appenDeath() method if you can help with that.

    Code:
    	public void appendDeath() {
    		if (deathDelay == 0 && isDead) {
    			Player opp = Server.engine.players[hitIndex];
    					dropStuff(opp.username);
    			try {
    				getActionSender().sendMessage(opp, getKillMessage(username));
    				if (receivesPVPDrop(this, opp)) {
    					opp.kills++;
    					opp.totalKills++;
    
    					DC++;
    					opp.KC++;
    				}
    
    				if (Server.socketListener.getAddress(socket.socket).equals(opp.lastKilled)) {
    					Engine.fileManager.appendData("characters/logs/flagged.txt", opp.username);
    				}
    				opp.lastKilled = Server.socketListener.getAddress(socket.socket);
    				Engine.fileManager.appendData("characters/logs/kills/"+opp.username+".txt", username);
    			} catch (Exception e) {
    			}
    
    			for (int i = 0; i < skillLvl.length; i++) {
    				skillLvl[i] = getLevelForXP(i);
    				getActionSender().setSkillLvl(this, i);
    			}
    			for (int i = 0; i < 1000; i++) {
    				requestAnim(playerWeapon.getStandEmote(equipment[3]), 0);
    			}
    	if(bountyArea()) {
    
    				Engine.bountyhunter.leaveBounty(this);
                                    getActionSender().removeShownInterface(this);
    			initialAttack = false;
    			isSkulled = false;
    			headIconSkull = -1;
    			skullVanishDelay = 0;
    }
    			if (opp != null) {
    				opp.attacking = null;
    				opp.attackedBy = null;
    				opp.oppIndex = 0;
    				opp.hitIndex = 0;
    				opp.resetAttack();
    				opp.requestFaceTo(65535);
    			}
    			attacking = null;
    			attackedBy = null;
    			oppIndex = 0;
    			hitIndex = 0;
    			resetAttack();
    
    			if (isPVP()) setCoords(3168, 3480, 0); else setCoords(3168, 3480, 0);
    			getActionSender().sendMessage(this, "Ha! Only noob's die!");
    
    			deathDelay = -1;
    			isDead = false;
    
    			magicGraphicDelay = -1;
    			magicDamageDelay = -1;
    
    			initialAttack = false;
    			isSkulled = false;
    			headIconSkull = -1;
    			skullVanishDelay = 0;
    
    			isPoisoned = false;
    			poisonHitCount = 0;
    			poisonDelay = 0;
    
    			specAmount = 1000;
    			getActionSender().setConfig2(this, 300, 1000);
    
    			resetPrayer();
    
    			getActionSender().removeOverlay(this);
    
    			appearanceUpdateReq = true;
    			updateReq = true;
    		}
    	}
    Thanks for the help guys.
    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
  •