I'm working on a simple fan client as a side project while I afk on oldschool runescape, but I'm havin a weird error when I call client.init() and I dont know anything about rsps or rs clients so I'm not sure how to fix it... I am not using reflection or injection, I'm just trying to load the client in a jframe and override the canvas basically.
Here is the error on the eclipse console
Exception in thread "main" eg
at cc.s(cc.java:59)
at bt.ak(bt.java:276)
at client.init(client.java:590)
at com.loader.Loader.<init>(Loader.java:145)
at com.loader.Loader.main(Loader.java:279)
Code:
jlabel.setText("Fetching RuneScape parameters..");
try {
loadParameters(new URL("http://oldschool" + Constants.WORLD + ".runescape.com/"));
} catch (MalformedURLException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
} finally {
new JarUpdater(jlabel, gamePackUrl);
}
jlabel.setText("Initializing RuneScape Engine");
try {
//URLClassLoader loader = new URLClassLoader(new URL[] { gamePackUrl });
URLClassLoader loader = new URLClassLoader(new URL[] { Constants.GAMEPACK_LOCAL.toURI().toURL() });
applet = (Applet) loader.loadClass(mainClass).newInstance();
applet.setStub(this);
this.add(applet);
applet.init(); // ERROR HAPPENS HERE
applet.start();
} catch (InstantiationException e) {
e.printStackTrace();
System.exit(1);
} catch (IllegalAccessException e) {
e.printStackTrace();
System.exit(1);
} catch (ClassNotFoundException e) {
e.printStackTrace();
System.exit(1);
} catch (MalformedURLException e) {
e.printStackTrace();
} finally {
box.setVisible(false);
}
this.revalidate();
//this.requestFocus();
this.setVisible(true);
}
Maybe I can download the latest OSRS deob and try to find out what the problem is? Someone help please, even if you just point me in the right direction