#177 Graphic.java readvalues
Packed Zac's #177 data into Elvarg, everything works fine except I'm missing the Graphic.java readvalues
My readvalues:
Code:
private void readValues(Buffer stream) {
while(true) {
int opcode = stream.readUnsignedByte();
if (opcode == 0)
return;
if (opcode == 1)
modelId = stream.readUShort();
else if (opcode == 2) {
animationId = stream.readUShort();
if (Animation.animations != null)
animationSequence = Animation.animations[animationId];
} else if (opcode == 4)
resizeXY = stream.readUShort();
else if (opcode == 5)
resizeZ = stream.readUShort();
else if (opcode == 6)
rotation = stream.readUShort();
else if (opcode == 7)
modelBrightness = stream.readUShort();
else if (opcode == 8)
modelShadow = stream.readUShort();
else if (opcode == 40) {
int j = stream.readUnsignedByte();
originalModelColours = new int[j];
modifiedModelColours = new int[j];
for (int k = 0; k < j; k++) {
originalModelColours[k] = stream.readUShort();
modifiedModelColours[k] = stream.readUShort();
}
} else if (opcode == 41) {
final int len = stream.readUnsignedByte();
textureToFind = new int[len];
textureToReplace = new int[len];
for(int i = 0; i < len; i++ ) {
textureToFind[i] = stream.readUShort();
textureToReplace[i] = stream.readUShort();
}
} else
System.out.println("Error unrecognised spotanim config code: " + opcode);
}
}
Getting unrecognised spotanim codes such as:
Doesn't appear that he provides the readvalues I require. I got all others he provided to work without issue. If someone could help me out with this I'd greatly appreciate it.