Thread: Fixing scrolling interactions for OSRSPK client

Results 1 to 5 of 5
  1. #1 Fixing scrolling interactions for OSRSPK client 
    Registered Member
    Join Date
    Apr 2017
    Posts
    303
    Thanks given
    34
    Thanks received
    60
    Rep Power
    65
    So when you scroll with your mosue wheel to zoom in and out it'll work. but when you go to hit the zoom option buttons and try to zoom with wheel again you'll get this thrown at you everytime you try to zoom.
    Code:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    	at com.runescape.GameApplet.handleInterfaceScrolling(GameApplet.java:347)
    	at com.runescape.GameApplet.mouseWheelMoved(GameApplet.java:272)
    	at java.awt.Component.processMouseWheelEvent(Unknown Source)
    	at java.awt.Component.processEvent(Unknown Source)
    	at java.awt.Container.processEvent(Unknown Source)
    	at java.awt.Window.processEvent(Unknown Source)
    	at java.awt.Component.dispatchEventImpl(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Window.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(Unknown Source)
    	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    	at java.awt.EventQueue.access$500(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.awt.EventQueue$3.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    	at java.awt.EventQueue$4.run(Unknown Source)
    	at java.awt.EventQueue$4.run(Unknown Source)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    	at java.awt.EventQueue.dispatchEvent(Unknown Source)
    	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    	at java.awt.EventDispatchThread.run(Unknown Source)
    In your GameApplet class find method handleInterfaceScrolling below this line, add the following.
    Code:
    for (int index = 0; index < tab.children.length; index++) {
    Code:
    if (Widget.interfaceCache[tab.children[index]] == null) {
    					return;
    				}
    Result
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    What's a sundial in the shade?

    Lumiere's Avatar
    Join Date
    May 2013
    Age
    22
    Posts
    531
    Thanks given
    215
    Thanks received
    95
    Rep Power
    113
    Beautiful
    Loving these releases, thanks again!

    Spoiler for Revy is perfect:
    Reply With Quote  
     

  4. #3  
    Registered Member Hyped's Avatar
    Join Date
    Dec 2016
    Posts
    172
    Thanks given
    21
    Thanks received
    7
    Rep Power
    4
    Got this error

    Spoiler for Error:
    Code:
    java.io.IOException: Negative seek offset
    	at java.io.RandomAccessFile.seek(Unknown Source)
    	at com.runescape.cache.FileStore.seek(FileStore.java:233)
    	at com.runescape.cache.FileStore.decompress(FileStore.java:44)
    	at com.runescape.net.requester.ResourceProvider.loadMandatory(ResourceProvider.java:543)
    	at com.runescape.net.requester.ResourceProvider.run(ResourceProvider.java:357)
    	at java.lang.Thread.run(Unknown Source)
    java.lang.ArrayIndexOutOfBoundsException: -1
    	at com.runescape.net.requester.ResourceProvider.requestMandatory(ResourceProvider.java:513)
    	at com.runescape.net.requester.ResourceProvider.run(ResourceProvider.java:358)
    	at java.lang.Thread.run(Unknown Source)


    Spoiler for code:
    Code:
    			for (int index = 0; index < tab.children.length; index++) {
    				
    				if (Widget.interfaceCache[tab.children[index]] == null) {
    					return;
    				}
    				
    				if (Widget.interfaceCache[tab.children[index]].scrollMax > 0) {
    					childID = index;
    					positionX = tab.childX[index];
    					positionY = tab.childY[index];
    					width = Widget.interfaceCache[tab.children[index]].width;
    					height = Widget.interfaceCache[tab.children[index]].height;
    					break;
    				}
    			}
    learning, learning, learning, learning
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Banned
    Join Date
    Apr 2016
    Posts
    150
    Thanks given
    51
    Thanks received
    3
    Rep Power
    0
    Quote Originally Posted by VenomRS View Post
    In your GameApplet class find method handleInterfaceScrolling below this line, add the following.
    Code:
    for (int index = 0; index < tab.children.length; index++) {
    Code:
    if (Widget.interfaceCache[tab.children[index]] == null) {
    					return;
    				}
    Can u please explain where exactly I put those or can u simple share the full method with the fix? Thx.
    Reply With Quote  
     

  7. #5  
    Registered Member
    Join Date
    Dec 2011
    Posts
    246
    Thanks given
    16
    Thanks received
    3
    Rep Power
    16
    Quote Originally Posted by Gkua View Post
    Can u please explain where exactly I put those or can u simple share the full method with the fix? Thx.
    He tells you the class and under what line? Just look for that class in your client and search for the line ?


    Sent from my iPhone using Tapatalk
    Just a noob wanting to learn
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Fixing invisible doors from osrspk client
    By VenomRS in forum Snippets
    Replies: 8
    Last Post: 07-18-2017, 06:06 PM
  2. Replies: 1
    Last Post: 04-05-2013, 06:46 PM
  3. Crown Fix/Add on for Bluurrs client
    By Tyler in forum Tutorials
    Replies: 34
    Last Post: 07-10-2009, 10:12 PM
  4. 100% fix to "error_game_js5io" for hd client
    By brandonb21 in forum Tutorials
    Replies: 23
    Last Post: 12-30-2008, 04:26 AM
  5. Fix for 481 Client (Part 1)
    By Wolf in forum Downloads
    Replies: 32
    Last Post: 02-27-2008, 03:22 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •