Originally Posted by
Nova Genesis
That's why you should consider open sourcing it allow others to aid you.
Edit: I tried to pack it, but my knowledge is limited. Couldn't get it working.
I mean there's the chance that they're not compatible with your server, or perhaps your XTEAS are different, but that would only affect 625.
To get the data from the files:
Code:
FileInputStream stream = new FileInputStream(file);
ArrayList<Byte> dataList = new ArrayList<Byte>();
int value = 0;
while((value = stream.read()) != -1) {
dataList.add((byte) value);
}
stream.close();
byte[] data = new byte[dataList.size()];
for(int i = 0; i < dataList.size(); i++) {
data[i] = dataList.get(i).byteValue();
}
And I don't know which cache library you're using, but:
for 625:
Code:
int[] keys = new int[] {733680141, -1440926564, 447905675, 1806603117}; //if your keys are different for your revision then find them (region 12342)
Cache.STORE.getIndexes()[5].putFile(625, 0, 2, data, keys, true, true, -1153234610, -1);
Cache.STORE.getIndexes()[5].encryptArchive(625, keys);
and for 624/2491:
Code:
Cache.STORE.getIndexes()[5].putFile(624, 0, data);
Cache.STORE.getIndexes()[5].putFile(2491, 0, data);