Thanks for sharing, now gonna check it out!
edit:
packed everything but i think my readvalues are probably still wrong.
do you know what these are unrenamed?
Code:
retextureToFind[index] = buffer.readUShort();
retextureToReplace[index] = buffer.readUShort();
my spotanim readvalues currently which i'd say match yours other than what i ask about above:
Code:
public void readValues(Stream stream) {
do {
int i = stream.readUnsignedByte();
if (i == 0)
return;
if (i == 1)
anInt405 = stream.readUnsignedShort();
else if (i == 2) {
anInt406 = stream.readUnsignedShort();
if (Animation.anims != null)
aAnimation_407 = Animation.anims[anInt406];
} else if (i == 4)
anInt410 = stream.readUnsignedShort();
else if (i == 5)
anInt411 = stream.readUnsignedShort();
else if (i == 6)
anInt412 = stream.readUnsignedShort();
else if (i == 7)
anInt413 = stream.readUnsignedShort();
else if (i == 8)
anInt414 = stream.readUnsignedShort();
else if (i == 40) {
int j = stream.readUnsignedByte();
for (int k = 0; k < j; k++) {
anIntArray408[k] = stream.readUnsignedShort();
anIntArray409[k] = stream.readUnsignedShort();
}//
} else if (i == 41) {
int j = stream.readUnsignedByte();
for (int k = 0; k < j; ++k) {
anIntArray408[k] = stream.readUnsignedShort();
anIntArray409[k] = stream.readUnsignedShort();
}//
} else
System.out.println("Error unrecognised spotanim config code: "
+ i);
} while (true);
}
animation.java readvalues:
Code:
private void readValues(Stream stream) {
int i;
while ((i = stream.readUnsignedByte()) != 0){
if (i == 1) {
anInt352 = stream.readUnsignedShort();
anIntArray353 = new int[anInt352];
anIntArray354 = new int[anInt352];
anIntArray355 = new int[anInt352];
for (int j = 0; j < anInt352; j++) {
anIntArray353[j] = stream.readDWord();
anIntArray354[j] = -1;
}
for (int j = 0; j < anInt352; j++)
anIntArray355[j] = stream.readUnsignedByte();
} else if (i == 2)
anInt356 = stream.readUnsignedShort();
else if (i == 3) {
int k = stream.readUnsignedByte();
anIntArray357 = new int[k + 1];
for (int l = 0; l < k; l++)
anIntArray357[l] = stream.readUnsignedByte();
anIntArray357[k] = 9999999;
} else if (i == 4)
aBoolean358 = true;
else if (i == 5)
anInt359 = stream.readUnsignedByte();
else if (i == 6)
anInt360 = stream.readUnsignedShort();
else if (i == 7)
anInt361 = stream.readUnsignedShort();
else if (i == 8)
anInt362 = stream.readUnsignedByte();
else if (i == 9)
anInt363 = stream.readUnsignedByte();
else if (i == 10)
anInt364 = stream.readUnsignedByte();
else if (i == 11)
anInt365 = stream.readUnsignedByte();
else if (i == 12)
stream.readDWord();
else
System.out.println("Error unrecognised seq config code: " + i);
}