Thread: dumping and importing item models

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 dumping and importing item models 
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,922
    Thanks given
    555
    Thanks received
    295
    Rep Power
    905
    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..
    Attached image
    Attached image
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    May 2016
    Age
    55
    Posts
    1,137
    Thanks given
    565
    Thanks received
    600
    Rep Power
    0
    Just dump them using the client
    Reply With Quote  
     

  3. #3  
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,922
    Thanks given
    555
    Thanks received
    295
    Rep Power
    905
    Quote Originally Posted by Bodih View Post
    Just dump them using the client
    how?
    Attached image
    Attached image
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    May 2016
    Age
    55
    Posts
    1,137
    Thanks given
    565
    Thanks received
    600
    Rep Power
    0
    Quote Originally Posted by Mr Dream View Post
    how?
    in the startup method write code to dump the models. This can also be done other places like creating a command to dump, etc.
    Reply With Quote  
     

  5. #5  
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,922
    Thanks given
    555
    Thanks received
    295
    Rep Power
    905
    bump

    bump
    Attached image
    Attached image
    Reply With Quote  
     

  6. #6  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    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();
                            }
                        }
                    }
                }
    Reply With Quote  
     

  7. #7  
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,922
    Thanks given
    555
    Thanks received
    295
    Rep Power
    905
    Quote Originally Posted by Spooky View Post
    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();
                            }
                        }
                    }
                }
    ty but
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  8. #8  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by Mr Dream View Post
    ty but
    Attached image
    Missing an import for Files and Paths.

    cacheAmount is the amount of indices you have int cacheAmount = 5; ? put

    Code:
        public long getFileCount() {
            try {
                if (indexFile != null) {
                    return (indexFile.length() / 6);
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            return -1;
        }
    in Decompressor class.
    Reply With Quote  
     

  9. #9  
    Officially Running

    Mr Dream's Avatar
    Join Date
    Dec 2013
    Posts
    1,922
    Thanks given
    555
    Thanks received
    295
    Rep Power
    905
    Quote Originally Posted by Spooky View Post
    Missing an import for Files and Paths.

    cacheAmount is the amount of indices you have int cacheAmount = 5; ? put

    Code:
        public long getFileCount() {
            try {
                if (indexFile != null) {
                    return (indexFile.length() / 6);
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
            return -1;
        }
    in Decompressor class.
    hmm this one left i guess
    Attached image
    Attached image
    Attached image
    Reply With Quote  
     

  10. #10  
    Respected Member


    Join Date
    Jan 2009
    Posts
    5,743
    Thanks given
    1,162
    Thanks received
    3,603
    Rep Power
    5000
    Quote Originally Posted by Mr Dream View Post
    hmm this one left i guess
    Attached image
    Missing import
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 525 cache model dump and item cfg dump
    By King Man002 in forum Requests
    Replies: 0
    Last Post: 08-10-2013, 11:47 PM
  2. 602 Gzipped item model dump
    By Pyruss in forum Requests
    Replies: 0
    Last Post: 12-18-2010, 12:52 AM
  3. 602 item model dump.
    By wannabecoder :) in forum Requests
    Replies: 0
    Last Post: 12-17-2010, 11:28 PM
  4. 602 item model dump?
    By Rev3rt in forum Requests
    Replies: 4
    Last Post: 11-15-2010, 09:54 AM
  5. Replies: 8
    Last Post: 03-25-2010, 07:16 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •