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!