You didn't add the config files then and the indexes.
|
Hello i just packed the latest data but i still can't figure out how to fix the readvalues.. I did used Patricks readvalues & graphic values he released but it doesnt fix the issue...
Will be amazing if someone help me out thanks!
Late merry christmas to everyone!
Animation.java readvalues...
SpotAnim.java readvalues...Code:private void readValues(Stream buffer) { int opcode; while ((opcode = buffer.readUnsignedByte()) != 0) { if (opcode == 1) { length = buffer.readSignedWord(); primary = new int[length]; secondary = new int[length]; duration = new int[length]; for (int i = 0; i < length; i++) { primary[i] = buffer.readDWord(); secondary[i] = -1; } for (int i = 0; i < length; i++) { duration[i] = buffer.readUnsignedByte(); } } else if (opcode == 2) { padding = buffer.readSignedWord(); } else if (opcode == 3) { int length = buffer.readUnsignedByte(); interleaveOrder = new int[length + 1]; for (int i = 0; i < length; i++) { interleaveOrder[i] = buffer.readUnsignedByte(); } interleaveOrder[length] = 9999999; } else if (opcode == 4) { allowsRotation = true; } else if (opcode == 5) { priority = buffer.readUnsignedByte(); } else if (opcode == 6) { shield = buffer.readSignedWord(); } else if (opcode == 7) { weapon = buffer.readSignedWord(); } else if (opcode == 8) { resetCycle = buffer.readUnsignedByte(); } else if (opcode == 9) { runFlag = buffer.readUnsignedByte(); } else if (opcode == 10) { priority = buffer.readUnsignedByte(); } else if (opcode == 11) { type = buffer.readUnsignedByte(); } else if (opcode == 12) { buffer.readDWord(); } else { System.out.println("Error unrecognised seq config code: " + opcode); } } if (length == 0) { length = 1; primary = new int[1]; primary[0] = -1; secondary = new int[1]; secondary[0] = -1; duration = new int[1]; duration[0] = -1; } if (runFlag == -1) if (interleaveOrder != null) runFlag = 2; else runFlag = 0; if (priority == -1) { if (interleaveOrder != null) { priority = 2; return; } priority = 0; } }
Code:public void readValues(Stream buffer) { while (true) { int opcode = buffer.readUnsignedByte(); if (opcode == 0) { return; } else if (opcode == 1) { anInt405 = buffer.readUnsignedWord(); } else if (opcode == 2) { anInt406 = buffer.readUnsignedWord(); if (Animation.anims != null) { aAnimation_407 = Animation.anims[anInt406]; } } else if (opcode == 4) { anInt410 = buffer.readUnsignedWord(); } else if (opcode == 5) { anInt411 = buffer.readUnsignedWord(); } else if (opcode == 6) { anInt412 = buffer.readUnsignedWord(); } else if (opcode == 7) { anInt413 = buffer.readUnsignedWord(); } else if (opcode == 8) { anInt414 = buffer.readUnsignedWord(); } else if (opcode == 40) { int length = buffer.readUnsignedByte(); for (int index = 0; index < length; index++) { anIntArray408[index] = buffer.readUnsignedWord(); anIntArray409[index] = buffer.readUnsignedWord(); } } else if (opcode == 41) { int length = buffer.readUnsignedByte(); for (int index = 0; index < length; ++index) { retextureToFind[index] = buffer.readUnsignedWord(); retextureToReplace[index] = buffer.readUnsignedWord(); } } else System.out.println("Error graphics opcode: " + opcode); } }
You didn't add the config files then and the indexes.
these are my readvalues. idk if they're any diff but compare them to yours and use repack pat's data release. it should work fine, as they did for me.
for seq.dat:
for spotanim.dat:Code:private void readValues(Stream stream) { int i; while ((i = stream.readUnsignedByte()) != 0) { if (i == 1) { anInt352 = stream.readUnsignedWord(); 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.readUnsignedWord(); 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.readUnsignedWord(); else if (i == 7) anInt361 = stream.readUnsignedWord(); 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); } if (anInt352 == 0) { anInt352 = 1; anIntArray353 = new int[1]; anIntArray353[0] = -1; anIntArray354 = new int[1]; anIntArray354[0] = -1; anIntArray355 = new int[1]; anIntArray355[0] = -1; } if (anInt363 == -1) if (anIntArray357 != null) anInt363 = 2; else anInt363 = 0; if (anInt364 == -1) { if (anIntArray357 != null) { anInt364 = 2; return; } anInt364 = 0; } }
Code:private void readValues(Stream stream) { while(true) { int i = stream.readUnsignedByte(); if (i == 0) { return; } if (i == 1) { modelId = stream.readUnsignedWord(); } else if (i == 2) { anInt406 = stream.readUnsignedWord(); if (AnimationDefinition.anims != null) { aAnimation_407 = AnimationDefinition.anims[anInt406]; } } else if (i == 4) { anInt410 = stream.readUnsignedWord(); } else if (i == 5) { anInt411 = stream.readUnsignedWord(); } else if (i == 6) { anInt412 = stream.readUnsignedWord(); } else if (i == 7) { anInt413 = stream.readUnsignedWord(); } else if (i == 8) { anInt414 = stream.readUnsignedWord(); } else if (i == 40) { int j = stream.readUnsignedByte(); for (int k = 0; k < j; k++) { anIntArray408[k] = stream.readUnsignedWord(); anIntArray409[k] = stream.readUnsignedWord(); } } else { System.out.println("Error unrecognised spotanim config code: " + i); } } }
you sure you're packing them correctly? if you're using tom's suite; load cache > edit jagex archieves > config.jag > locate seq and spotanim > replace > locate pat's files > ok > repack. then, you need to repack the .gz animation files using the repack method in your client.
Always been packing all data by myself i know how to do it used this release but the anim is still fucked up if you will have time to take a look it will be awesome because im confused :// thanks for trying to help
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |