Thread: Client crashing on login

Results 1 to 6 of 6
  1. #1 Client crashing on login 
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,823
    Thanks given
    362
    Thanks received
    447
    Rep Power
    965
    It seems to be happening mostly when I try to login with an already created account. New accounts login fine, just the 2nd time you login with them it crashes.

    Code:
    Exception in thread "Thread-4" java.lang.ArrayIndexOutOfBoundsException: 2492 (this num changes sometimes)
    	at client.setCameraLocation(client.java:11385)
    	at client.method146(client.java:14240)
    	at client.drawGameScreen(client.java:9974)
    	at client.processDrawing(client.java:10943)
    	at RSApplet.run(RSApplet.java:123)
    	at client.run(client.java:5936)
    	at java.lang.Thread.run(Unknown Source)
    Any ideas?
    Reply With Quote  
     

  2. #2  
    Member

    Join Date
    Nov 2008
    Age
    24
    Posts
    4,861
    Thanks given
    774
    Thanks received
    341
    Rep Power
    0
    at client.setCameraLocation(client.java:11385)

    probably something to do with setting the camera

    *classfile*:*line*

    go to client.java and go to line 11385 and change the camera location
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,823
    Thanks given
    362
    Thanks received
    447
    Rep Power
    965
    I'm not retarded. Already looked over the method and don't see anything obviously wrong.
    Reply With Quote  
     

  4. #4  
    Registered Member
    thim slug's Avatar
    Join Date
    Nov 2010
    Age
    25
    Posts
    4,142
    Thanks given
    1,079
    Thanks received
    1,137
    Discord
    View profile
    Rep Power
    5000
    What is line client.java:11385?
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Aug 2008
    Posts
    2,823
    Thanks given
    362
    Thanks received
    447
    Rep Power
    965
    Code:
    	   private int setCameraLocation() {//setCameraLocaton?
    			int j = 3;
    			if(yCameraCurve < 310)
    			{
    				int k = xCameraPos >> 7;
    				int l = yCameraPos >> 7;
    				int i1 = myPlayer.x >> 7;
    				int j1 = myPlayer.y >> 7;
    				if((byteGroundArray[plane][k][l] & 4) != 0) <- Line giving errors
    					j = plane;
    				int k1;
    				if(i1 > k)
    					k1 = i1 - k;
    				else
    					k1 = k - i1;
    				int l1;
    				if(j1 > l)
    					l1 = j1 - l;
    				else
    					l1 = l - j1;
    				if(k1 > l1)
    				{
    					int i2 = (l1 * 0x10000) / k1;
    					int k2 = 32768;
    					while(k != i1) 
    					{
    						if(k < i1)
    							k++;
    						else
    						if(k > i1)
    							k--;
    						if((byteGroundArray[plane][k][l] & 4) != 0)
    							j = plane;
    						k2 += i2;
    						if(k2 >= 0x10000)
    						{
    							k2 -= 0x10000;
    							if(l < j1)
    								l++;
    							else
    							if(l > j1)
    								l--;
    							if((byteGroundArray[plane][k][l] & 4) != 0)
    								j = plane;
    						}
    					}
    				} else
    				{
    					int j2 = (k1 * 0x10000) / l1;
    					int l2 = 32768;
    					while(l != j1) 
    					{
    						if(l < j1)
    							l++;
    						else
    						if(l > j1)
    							l--;
    						if((byteGroundArray[plane][k][l] & 4) != 0)
    							j = plane;
    						l2 += j2;
    						if(l2 >= 0x10000)
    						{
    							l2 -= 0x10000;
    							if(k < i1)
    								k++;
    							else
    							if(k > i1)
    								k--;
    							if((byteGroundArray[plane][k][l] & 4) != 0)
    								j = plane;
    						}
    					}
    				}
    			}
    			if((byteGroundArray[plane][myPlayer.x >> 7][myPlayer.y >> 7] & 4) != 0)
    				j = plane;
    			return j;
    	    }
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2012
    Posts
    205
    Thanks given
    10
    Thanks received
    17
    Rep Power
    30
    int k = xCameraPos >> 7;
    int l = yCameraPos >> 7;
    int i1 = myPlayer.x >> 7;
    int j1 = myPlayer.y >> 7;

    Make sure these variables are giving the right values, cause they are used for the array
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 04-19-2011, 03:33 PM
  2. Replies: 1
    Last Post: 07-09-2010, 08:13 PM
  3. [562][RS2HD]Client crashing on login...
    By i pwn u hard in forum Help
    Replies: 3
    Last Post: 05-27-2010, 04:42 AM
  4. [Z508] Client crash on login
    By mixutti in forum Help
    Replies: 3
    Last Post: 12-23-2009, 05:39 PM
  5. client crash on att help
    By kcinnay str in forum Help
    Replies: 1
    Last Post: 06-21-2009, 01:27 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
  •