Updating my Cache Data to 160
It was previously 156, Elvarg Client
java.lang.ArrayIndexOutOfBoundsException: 63646
Error: loaderror Unpacking config 86
at com.runescape.io.Buffer.readUShort(Buffer.java:149 )
at com.runescape.cache.def.ObjectDefinition.init(Obje ctDefinition.java:249)
at com.runescape.Client.startUp(Client.java:10306)
at com.runescape.GameApplet.run(GameApplet.java:128)
at com.runescape.Client.run(Client.java:7045)
at java.lang.Thread.run(Unknown Source)
Is the error I get
ObjectDef.init code
Code:
public static void init(FileArchive streamLoader) throws IOException {
stream = new Buffer(streamLoader.readFile("loc.dat"));
Buffer stream = new Buffer(streamLoader.readFile("loc.idx"));
TOTAL_OBJECTS = stream.readUShort();
streamIndices = new int[TOTAL_OBJECTS];
int offset = 2;
for (int index = 0; index < TOTAL_OBJECTS; index++) {
streamIndices[index] = offset;
offset += stream.readUShort();
}
cache = new ObjectDefinition[20];
for (int index = 0; index < 20; index++)
cache[index] = new ObjectDefinition();
System.out.println("Loaded: " + TOTAL_OBJECTS + " objects");
}