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
|
|

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.
Any ideas?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)

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

I'm not retarded. Already looked over the method and don't see anything obviously wrong.

What is line client.java:11385?

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; }
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
| « Cache archives still don't open | 317 or 377 map data? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |