Originally Posted by
423 Million
Stop being a smart ass.
OT: Check the file Cache.java and in
Code:
public static void init() throws IOException {
STORE = new Store(Settings.CACHE_PATH);
}
Where it says for me Settings.Cache_path is where the location of your cache should be. Heres mine incase you need it:
Code:
public static final String CACHE_PATH = "data/cache/";
If thats correct, somethings wrong with eclipse or the cache your trying to use.
yeah my cache.java looks like this, so i don't really know..
Code:
package com.rs.cache;
import java.io.IOException;
import com.alex.io.OutputStream;
import com.alex.store.Store;
import com.alex.util.whirlpool.Whirlpool;
import com.rs.Settings;
import com.rs.utils.Utils;
public final class Cache {
public static Store STORE;
private Cache() {
}
public static void init() throws IOException {
STORE = new Store(Settings.CACHE_PATH);
}
public static final byte[] generateUkeysFile() {
OutputStream stream = new OutputStream();
stream.writeByte(STORE.getIndexes().length);
for (int index = 0; index < STORE.getIndexes().length; index++) {
if (STORE.getIndexes()[index] == null) {
stream.writeInt(0);
stream.writeInt(0);
stream.writeBytes(new byte[64]);
continue;
}
stream.writeInt(STORE.getIndexes()[index].getCRC());
stream.writeInt(STORE.getIndexes()[index].getTable().getRevision());
stream.writeBytes(STORE.getIndexes()[index].getWhirlpool());
}
byte[] archive = new byte[stream.getOffset()];
stream.setOffset(0);
stream.getBytes(archive, 0, archive.length);
OutputStream hashStream = new OutputStream(65);
hashStream.writeByte(0);
hashStream.writeBytes(Whirlpool.getHash(archive, 0, archive.length));
byte[] hash = new byte[hashStream.getOffset()];
hashStream.setOffset(0);
hashStream.getBytes(hash, 0, hash.length);
hash = Utils.cryptRSA(hash, Settings.GRAB_SERVER_PRIVATE_EXPONENT,
Settings.GRAB_SERVER_MODULUS);
stream.writeBytes(hash);
archive = new byte[stream.getOffset()];
stream.setOffset(0);
stream.getBytes(archive, 0, archive.length);
return archive;
}
}