Thread: EMERGENCY! {Need help}

Results 1 to 9 of 9
  1. #1 EMERGENCY! {Need help} 
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    I don't know how this is happening, it just randomly appear to happen...


    Exception in thread "Thread-3" java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(Unk nown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at client.getOrbValues(client.java:11308)
    at client.createOrbs(client.java:11266)
    at client.drawOrbs(client.java:11259)
    at client.drawMinimap(client.java:11455)
    at client.drawGameScreen(client.java:9361)
    at client.processDrawing(client.java:10539)
    at RSApplet.run(RSApplet.java:188)
    at client.run(client.java:5425)
    at java.lang.Thread.run(Unknown Source)


    On client.java, heres the method:
    Code:
    	private int[] getOrbValues(int type, Sprite orbSprite) {
    		int[] values = new int[2];
    		int offsetX = 0, offsetY = 0;
    		switch(type) {
    			case 0://Health
    				values[0] = Integer.parseInt(RSInterface.interfaceCache[4016].message);
    				values[1] = Integer.parseInt(RSInterface.interfaceCache[4017].message.replaceAll("%", ""));
    				offsetX = 9;
    				offsetY = 10;
    				break;
    
    			case 1://Prayer
    				values[0] = Integer.parseInt(RSInterface.interfaceCache[4012].message);
    				values[1] = Integer.parseInt(RSInterface.interfaceCache[4013].message.replaceAll("%", ""));
    				offsetX = 7;
    				offsetY = 7;
    				break;
    				
    			case 2://Energy
    				values[0] = Integer.parseInt(RSInterface.interfaceCache[149].message.replaceAll("%", ""));
     				values[1] = 100;
    				offsetX = 10;
    				offsetY = 8;
    				break;
    			case 3://Summoning
    				values[0] = Integer.parseInt(RSInterface.interfaceCache[19178].message);; // 29800 
    				values[1] = Integer.parseInt(RSInterface.interfaceCache[19179].message);; //29801
    				offsetX = 7;
    				offsetY = 7;
    				break;
    			
    			default:
    				return null;
    		}
    		try {
    			if(offsetX > 0 && offsetY > 0) {
    				orbSprite.configXDrawOffset(offsetX);
    				orbSprite.configYDrawOffset(offsetY);
    			}
    		} catch(NullPointerException ex) {
    			
    		}
    		return values;
    	}


    NOTE: Its none to do with Cache, I checked everything possible and its nothing to do there.
    NOTE: I never touched this actual method NOR messed with it.
    I doubt it has something to do with client.java has I putted an old backup and still had this error.
    NOTE: This also has nothing to do with RSInterface.java has I used an old backup for this
    Btw for those who will say 'why don't you just use your fucking "old" backup - its cause I don't have a full backup, just for these both classes, luckly.'

    I just hopeless about this, 100 hours of works will go for free? i don't feel like :\
    PS i'm very mad, so sorry for any cursing and so..

    If you need any more things about this please tell me, I need this fast about 1 hour - 2 hours from once this theard is released.
    I'll rep you +++ and thank you, it'd be a pleasure of any to donate for this contribution!
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Nov 2013
    Posts
    85
    Thanks given
    4
    Thanks received
    0
    Rep Power
    8
    this happened to my source once, it literally happens randomly sometimes so that is why i always backup my server&client everday after coding... if you dont have a backup you are pretty much screwed...
    Reply With Quote  
     

  3. #3  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    ewh fuck this.
    So what, nothing to do? do you atleast know where it comes from? what makes it happen? I've got some old backup but its like 2 days old and meh i've done alot alot of things yesterday including a few client patches.
    I don't feel like msising them, ohwell, I still have those files..
    Not sure what to do...
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2013
    Posts
    85
    Thanks given
    4
    Thanks received
    0
    Rep Power
    8
    Quote Originally Posted by DharokZ View Post
    ewh fuck this.
    So what, nothing to do? do you atleast know where it comes from? what makes it happen? I've got some old backup but its like 2 days old and meh i've done alot alot of things yesterday including a few client patches.
    I don't feel like msising them, ohwell, I still have those files..
    Not sure what to do...
    I suggest you just use the backup now, because i doubt you can fix the error bro. Sorry
    Reply With Quote  
     

  5. #5  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    Quote Originally Posted by xsaeedx View Post
    I suggest you just use the backup now, because i doubt you can fix the error bro. Sorry
    I think, not sure, just think i'm close to figure out I mean, its none to do with client!
    Its something server side and luckly I know what I have done lately on the source (no backupz :Z)
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2013
    Posts
    85
    Thanks given
    4
    Thanks received
    0
    Rep Power
    8
    Quote Originally Posted by DharokZ View Post
    I think, not sure, just think i'm close to figure out I mean, its none to do with client!
    Its something server side and luckly I know what I have done lately on the source (no backupz :Z)
    If you think you can figure it out, give it a try.. but dont waste too long on it because in the time u wasted u could have coded all that stuff onto the backup.. Goodluck man.
    Reply With Quote  
     

  7. #7  
    Registered Member
    _Ali's Avatar
    Join Date
    Apr 2014
    Posts
    382
    Thanks given
    67
    Thanks received
    147
    Rep Power
    252
    Pm me skype, i'll fix this over tv.
    Reply With Quote  
     

  8. #8  
    Banned
    Join Date
    Nov 2008
    Posts
    197
    Thanks given
    3
    Thanks received
    58
    Rep Power
    0
    error is on line "11308" comment that line out, or look at it and see the problem
    Reply With Quote  
     

  9. #9  
    Banned
    Join Date
    Nov 2008
    Posts
    197
    Thanks given
    3
    Thanks received
    58
    Rep Power
    0
    And by the way, it is telling you that it is most likely not all numbers "Integer.parseInt(RSInterface.interfaceCache[149].message.replaceAll("%", ""))"

    Code:
    Integer.parseInt(
    ^ ^ Code means that it is trying to change the String/text into a number, but if they if there happens to be something that is a letter or a space, it will give you that error.

    try to debug it by using
    Code:
    System.out.println(RSInterface.interfaceCache[149].message+"");

    also notice under Summoning,
    Code:
    				values[0] = Integer.parseInt(RSInterface.interfaceCache[19178].message);; // 29800 
    				values[1] = Integer.parseInt(RSInterface.interfaceCache[19179].message);; //29801
    Remove the double ';;' to just one ';'
    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. [pi] {$} emergency! Need immediate help!
    By Crispytoast in forum Help
    Replies: 5
    Last Post: 03-14-2011, 08:48 AM
  2. Need help
    By Saint in forum General
    Replies: 4
    Last Post: 05-20-2007, 02:03 AM
  3. Need help again
    By Zane in forum Showcase
    Replies: 4
    Last Post: 04-02-2007, 09:11 PM
  4. Need help choosing sig
    By Zane in forum Showcase
    Replies: 7
    Last Post: 04-02-2007, 03:14 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •