Just dump them using the client
|
So im using a 317 and id like to dump few items from other cashes possibly -317 caches to grab some item models mainly for the looks on inventory and equipped however i dont find any tool to help me do so..
Just dump them using the client
bump
bump
Code:RandomAccessFile cacheData = new RandomAccessFile("./cache/main_file_cache.dat", "r"); RandomAccessFile[] cacheIndex = new RandomAccessFile[cacheAmount]; for (int i = 0; i < cacheAmount; i++) { cacheIndex[i] = new RandomAccessFile("./cache/main_file_cache.idx" + i, "r"); } Decompressor[] archives = new Decompressor[cacheAmount]; for (int i = 0; i < cacheAmount; i++) { archives[i] = new Decompressor(cacheData, cacheIndex[i], i + 1); } for(int i = 0; i < archives.length; i++) { for(int index = 0; index < archives[i].getFileCount(); index++) { byte[] buff = archives[i].decompress(index); if(buff != null && buff.length > 0) { try { Files.write(Paths.get("./dump/" + i + "/" + index + ".dat"), buff); } catch (IOException e) { e.printStackTrace(); } } } }
Missing an import for Files and Paths.
cacheAmount is the amount of indices you have int cacheAmount = 5; ? put
in Decompressor class.Code:public long getFileCount() { try { if (indexFile != null) { return (indexFile.length() / 6); } } catch (Exception e) { e.printStackTrace(); } return -1; }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |