Hello, idk if I have missed something or not but fresh eyes is always helpful when trying to work out something.
it seams to be an issue with or without the cache installed manually.
Spoiler for issue:Code:java.lang.NumberFormatException "For input string "<!DOCTYPE html> <html class="maestro" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <script nonce="PgFfjO0UC+WycQRkdW2">""
java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
java.base/java.lang.Double.parseDouble(Double.java:549)
com.uthina.client.UpdateCache.getNewestVersion(UpdateCache.java:38)
com.uthina.client.UpdateCache.run(UpdateCache:69)
com.uthina.client.Client.startUp(Client.java:12623)
com.uthina.client.RSApplet.run(RSApplet.java146)
com.uthina.client.Client.run(Client.java:9261)
java.base/java.lang.Thread.run(Thread.java:835)
All the links in the java file are correct and linked to a dropbox account.
Line 38 - Update Cache - ** = line
Spoiler for Line 38:Code:public double getNewestVersion(){
try {
URL tmp = new URL(VERSION_URL);
BufferedReader br = new BufferedReader(new InputStreamReader(tmp.openStream()));
return Double.parseDouble(br.readLine());**
} catch (Exception e) {
handleException(e);
return -1;
}
}
Line 69 - Update Cache - ** = line
Spoiler for Line 69:Code:public void run() {
drawLoadingText(0, "Checking Versions");
try{
double newest = getNewestVersion();**
if(newest > this.getCurrentVersion()){
int n = JOptionPane.showConfirmDialog(
null,
"There is an update to version " + newest + "\n" +
"Would you like to update?",
"Current version: "+ getCurrentVersion(),
JOptionPane.YES_NO_OPTION);
if(n == 0){
updateClient();
drawLoadingText(0, "Cache has been updated, please restart the client!");
alert("Cache has been updated, please restart the client!");
OutputStream out = new FileOutputStream(VERSION_FILE);
out.write(String.valueOf(newest).getBytes());;
System.exit(0);
}else{
alert(" Your client may not load correct " +
getCurrentVersion());
//System.exit(0);
}
}
}catch(Exception e){
handleException(e);
}
}
Line 12623 - Client
Spoiler for Line 12623:Code:new UpdateCache(this).run();
Line 146 - RSApplet - ** = line
Spoiler for Line 146:Code:public void run() {
getGameComponent().addMouseListener(this);
getGameComponent().addMouseMotionListener(this);
getGameComponent().addKeyListener(this);
getGameComponent().addFocusListener(this);
getGameComponent().addMouseWheelListener(this);
if (mainFrame != null) {
mainFrame.addWindowListener(this);
}
colorStart = startTime = 0L;
startUp();**
int i = 0;
int j = 256;
int k = 1;
int l = 0;
int i1 = 0;
for (int j1 = 0; j1 < 10; j1++) {
aLongArray7[j1] = System.currentTimeMillis();
}
long l1 = System.currentTimeMillis();
do {
if (anInt4 < 0) {
break;
}
if (anInt4 > 0) {
anInt4--;
if (anInt4 == 0) {
exit();
return;
}
}
int k1 = j;
int i2 = k;
j = 300;
k = 1;
long l2 = System.currentTimeMillis();
if (aLongArray7[i] == 0L) {
j = k1;
k = i2;
} else if (l2 > aLongArray7[i]) {
j = (int) ((long) (2560 * delayTime) / (l2 - aLongArray7[i]));
}
if (j < 25) {
j = 25;
}
if (j > 256) {
j = 256;
k = (int) ((long) delayTime - (l2 - aLongArray7[i]) / 10L);
}
if (k > delayTime) {
k = delayTime;
}
aLongArray7[i] = l2;
i = (i + 1) % 10;
if (k > 1) {
for (int j2 = 0; j2 < 10; j2++) {
if (aLongArray7[j2] != 0L) {
aLongArray7[j2] += k;
}
}
}
if (k < minDelay) {
k = minDelay;
}
try {
Thread.sleep(k);
} catch (InterruptedException interruptedexception) {
i1++;
}
for (; l < 256; l += j) {
clickMode3 = clickMode1;
saveClickX = clickX;
saveClickY = clickY;
aLong29 = clickTime;
clickMode1 = 0;
processGameLoop();
readIndex = writeIndex;
}
l &= 0xff;
if (delayTime > 0) {
fps = (1000 * j) / (delayTime * 256);
}
processDrawing();
if (shouldDebug) {
System.out.println((new StringBuilder()).append("ntime:")
.append(l2).toString());
for (int k2 = 0; k2 < 10; k2++) {
int i3 = ((i - k2 - 1) + 20) % 10;
System.out.println((new StringBuilder()).append("otim")
.append(i3).append(":").append(aLongArray7[i3])
.toString());
}
System.out.println((new StringBuilder()).append("fps:")
.append(fps).append(" ratio:").append(j)
.append(" count:").append(l).toString());
System.out.println((new StringBuilder()).append("del:")
.append(k).append(" deltime:").append(delayTime)
.append(" mindel:").append(minDelay).toString());
System.out.println((new StringBuilder()).append("intex:")
.append(i1).append(" opos:").append(i).toString());
shouldDebug = false;
i1 = 0;
}
} while (true);
if (anInt4 == -1) {
exit();
}
}
Line 9261 - Client - ** = Line
Spoiler for Line 9261:Code:public void run() {
super.run();**
}
