Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
A loader - Two problems
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 09-01-2011, 04:02 PM
Forum Addict
 
Join Date: Aug 2009
Location: Denmark
Posts: 287
Default 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
Reply With Quote
  #2  
Old 09-02-2011, 01:58 AM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: 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).
Reply With Quote
  #3  
Old 09-02-2011, 03:40 AM
itsboom's Avatar
Forum Addict
 
Join Date: May 2010
Posts: 290
Default Re: A loader - Two problems

does runescape.jar instantiate loader.jar?

Last edited by itsboom : 09-02-2011 at 03:42 AM.
Reply With Quote
  #4  
Old 09-02-2011, 07:48 AM
Jimmy's Avatar
Leecher
Ex-Moderator $5 USD Donor
 
Join Date: Jun 2008
Location: Southern California
Posts: 2,359
Default Re: 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).

Last edited by Jimmy : 09-02-2011 at 07:48 AM.
Reply With Quote
  #5  
Old 09-02-2011, 04:23 PM
Forum Addict
 
Join Date: Aug 2009
Location: Denmark
Posts: 287
Default Re: A loader - Two problems

Quote:
Originally Posted by Jimmy View Post
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!
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 02:23 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1