Thread: How to cache repack? - had to dump sprites to get them.

Results 1 to 4 of 4
  1. #1 How to cache repack? - had to dump sprites to get them. 
    Registered Member
    Join Date
    Mar 2013
    Posts
    195
    Thanks given
    7
    Thanks received
    11
    Rep Power
    38
    How do i repack the sprites I had to dump?

    Code:
    public void repackCacheIndex(int cacheIndex) {
    		System.out.println("Started repacking index " + cacheIndex + ".");
    		int indexLength = new File(indexLocation(cacheIndex, -1)).listFiles().length;
    		File[] file = new File(indexLocation(cacheIndex, -1)).listFiles();
    		try {
    			for (int index = 0; index < indexLength; index++) {
    				int fileIndex = Integer.parseInt(getFileNameWithoutExtension(file[index].toString()));
    				byte[] data = fileToByteArray(cacheIndex, fileIndex);
    				if (data != null && data.length > 0) {
    					cacheIndices[cacheIndex].put(data.length, data, fileIndex);
    					System.out.println("Repacked " + fileIndex + ".");
    				} else {
    					System.out.println("Unable to locate index " + fileIndex + ".");
    				}
    			}
    		} catch (Exception e) {
    			System.out.println("Error packing cache index " + cacheIndex + ".");
    		}
    		System.out.println("Finished repacking " + cacheIndex + ".");
    	}
    how do i make it repack them? - I had to dump them to open them with cache suite, but they didn't appear in the suite, so i've changed them in photoshop and now i have no idea how to repack them, base; Ruse, 317.
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    26
    Posts
    4,101
    Thanks given
    266
    Thanks received
    521
    Discord
    View profile
    Rep Power
    685
    If you want to pack sprites into the cache you will have to use tom's cache suite.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Mar 2013
    Posts
    195
    Thanks given
    7
    Thanks received
    11
    Rep Power
    38
    Quote Originally Posted by Nighel View Post
    If you want to pack sprites into the cache you will have to use tom's cache suite.

    I had to dump to get them, and when i try repack them, they'res no old ones to replace or an place to save them.
    Skype: IIIXSMUDGERXIII help please
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    May 2017
    Posts
    84
    Thanks given
    0
    Thanks received
    18
    Rep Power
    36
    Use better sprite packer.
    Reply With Quote  
     


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. Replies: 5
    Last Post: 01-10-2018, 08:08 PM
  2. Replies: 1
    Last Post: 01-28-2017, 08:08 PM
  3. Replies: 11
    Last Post: 06-19-2011, 04:25 PM
  4. Replies: 17
    Last Post: 07-24-2009, 06:13 AM
  5. Replies: 1
    Last Post: 06-25-2009, 09:37 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •