Guys, i'm currently trying to add new data to my 718/901 test server, but my textures are buggy
See:
What i got | What was supposed to be
i tried the code above from Valkyr Source:
Code:
transport_index(rs3Cache, 53, rs2Cache, 9);
Code:
private static void transport_index(Store source_cache, int source_id, Store target_cache, int target_id)
throws IOException {
System.out.println(
"Attempting to transport index from source id of " + source_id + " and target id of " + target_id);
Index source_index = source_cache.getIndexes()[source_id];
if (target_cache.getIndexes().length <= target_id) {
if (target_cache.getIndexes().length != target_id) {
throw new IllegalStateException(
"The cache has more than one gap between the source_index and the target_index!");
}
target_cache.addIndex(source_index.getTable().isNamed(), source_index.getTable().usesWhirpool(),
Constants.GZIP_COMPRESSION);
System.out.println("\t ^ Index was created!");
}
Index target_index = target_cache.getIndexes()[target_id];
int num_groups = source_index.getLastArchiveId() - 1;
System.out.println("\t ^ Attempting to pack " + num_groups + " group(s)..");
double last = 0.0D;
for (int group_id = 0; group_id < num_groups; group_id++) {
if (source_index.archiveExists(group_id)) {
target_index.putArchive(source_id, group_id, source_cache, false, true);
double percentage = (double) group_id / (double) num_groups * 100D;
if (group_id == num_groups - 1 || percentage - last >= 1.0D) {
System.out.println("\t ^ Percentage Completed: " + format.format(percentage) + "%");
last = percentage;
}
}
}
System.out.println("\t ^ Rewriting table..");
target_index.rewriteTable();
System.out.println("\t ^ Finished!");
System.out.println();
}
And i've tried using the [Only registered and activated users can see links. ]
But i got the same thing.
If anyone could help, appreciate so much!