Code:
Error unrecognised seq config code: 109
Error unrecognised seq config code: 197
Error unrecognised seq config code: 25
Error unrecognised seq config code: 81
Error unrecognised seq config code: 46
java.lang.ArrayIndexOutOfBoundsException: 760839
Error: loaderror Unpacking config 86
at Stream.readUnsignedWord(Stream.java:137)
at Animation.readValues(Animation.java:56)
at Animation.unpackConfig(Animation.java:12)
at Client.startUp(Client.java:8717)
at RSApplet.run(RSApplet.java:113)
at Client.run(Client.java:5593)
at java.lang.Thread.run(Unknown Source)
It keeps crashing everytime i load the client.
Here is the code from stream
Code:
public int readUnsignedWord() {
currentOffset += 2;
return ((buffer[currentOffset - 2] & 0xff) << 8) + (buffer[currentOffset - 1] & 0xff);
}
Here is the runValues from Animation.java
Code:
private void readValues(Stream stream) {
do {
int i = stream.readUnsignedByte();
if(i == 0)
break;
if (i == 1) {
frameCount = stream.readUnsignedWord();
frameIDs = new int[frameCount];
frameIDs2 = new int[frameCount];
delays = new int[frameCount];
for (int j = 0; j < frameCount; j++) {
frameIDs[j] = stream.readUnsignedWord();
frameIDs2[j] = -1;
}
for (int j = 0; j < frameCount; j++)
delays[j] = stream.readUnsignedByte();
} else if (i == 2)
loopDelay = stream.readUnsignedWord();
else if (i == 3) {
int k = stream.readUnsignedByte();
animationFlowControl = new int[k + 1];
for (int l = 0; l < k; l++)
animationFlowControl[l] = stream.readUnsignedByte();
animationFlowControl[k] = 9999999;
} else if (i == 4)
oneSquareAnimation = true;
else if (i == 5)
forcedPriority = stream.readUnsignedByte();
else if (i == 6)
leftHandItem = stream.readUnsignedWord();
else if (i == 7)
rightHandItem = stream.readUnsignedWord();
else if (i == 8)
frameStep = stream.readUnsignedByte();
else if (i == 9)
resetWhenWalk = stream.readUnsignedByte();
else if (i == 10)
priority = stream.readUnsignedByte();
else if (i == 11)
delayType = stream.readUnsignedByte();
else
System.out.println("Error unrecognised seq config code: " + i);
} while(true);
if (frameCount == 0) {
frameCount = 1;
frameIDs = new int[1];
frameIDs[0] = -1;
frameIDs2 = new int[1];
frameIDs2[0] = -1;
delays = new int[1];
delays[0] = -1;
}
if (resetWhenWalk == -1)
if (animationFlowControl != null)
resetWhenWalk = 2;
else
resetWhenWalk = 0;
if (priority == -1) {
if (animationFlowControl != null) {
priority = 2;
return;
}
priority = 0;
}
}