• Log in or sign up for an account here: https://www.sythe.org/login

A loader - Two problems

Coron

Forum Addict
Banned
Joined
Aug 9, 2009
Sythe Gold
0
Messages
287
Location
Denmark
A loader - Two problems
I'm currently playing around with loading RS and reflection. So far it's going well, I can reflect information like camera pitch and yaw. But I have two problems that I need help with.

runescape.jar contains all the files I need, loader.jar does not. How can I reflect information like the camera pitch from loader.jar?

Also, how can I paint on the client?

Thanks, I hope I made my problems clear :P
 
A loader - Two problems
You have to obtain the classloader instance responsible for loading the classes in runescape.jar. Calling the getClassLoader of the canvas class should accomplish this.

Ex:
Code:
applet.getComponent(0).getClass().getClassLoader()

As for painting on the canvas, you can do this by overriding the getGraphics() method of the parent class to the applet's canvas (either xboot java.awt.Canvas with your own overridden method or use a bytecode editing library to change the superclass of the canvas subclass in the client to your own custom class that paints onto the canvas's graphics).
 
A loader - Two problems
It's the other way around. Just decompile the loader and see what it does (it won't decompile perfectly, but you should get some idea what it does).
 
A loader - Two problems
You have to obtain the classloader instance responsible for loading the classes in runescape.jar. Calling the getClassLoader of the canvas class should accomplish this.

Ex:
Code:
applet.getComponent(0).getClass().getClassLoader()

As for painting on the canvas, you can do this by overriding the getGraphics() method of the parent class to the applet's canvas (either xboot java.awt.Canvas with your own overridden method or use a bytecode editing library to change the superclass of the canvas subclass in the client to your own custom class that paints onto the canvas's graphics).

Thanks Jimmy!
 
Runescape Gamblingrunescape gambling
Back
Top