Thread: RS2 Cache Image format unclear

Results 1 to 3 of 3
  1. #1 RS2 Cache Image format unclear 
    Registered Member
    Join Date
    Apr 2016
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I've been attempting recently to change a prayer icon in the 317 cache. If I just take the image (same resolution PNG as the old one) and replace it with tom's suite, the client will always freeze on "Loading interfaces". However, if I fiddle in GIMP to make the image "Web optimized", it will lose some color depth, but will now work with the client. Could anyone explain what kind of format or what kind of requirements must a sprite meet in order to work with the client?

    I am using a 2006memorys client.

    Thanks in advance.
    Reply With Quote  
     

  2. #2  
    Donator
    clrlslwi's Avatar
    Join Date
    Mar 2016
    Posts
    201
    Thanks given
    32
    Thanks received
    108
    Rep Power
    102
    The typically used image format is something like this..

    Code:
    int[] colorPool = new int[256];
    int[] pixels = ...
    int width = ...
    int height = ...
    
    public int getPixelColor(int x, int y) {
        return colorPool[pixels[x + (y * width)]];
    }
    If it wasn't obvious enough, you're overflowing the color pool. I don't believe the mainstream cache tools check for overflowing, so they fuck everything up instead of warning you.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    4
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by clrlslwi View Post
    The typically used image format is something like this..

    Code:
    int[] colorPool = new int[256];
    int[] pixels = ...
    int width = ...
    int height = ...
    
    public int getPixelColor(int x, int y) {
        return colorPool[pixels[x + (y * width)]];
    }
    So it basically only supports 256-color images? Thanks, that's all I needed to know
    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. [400++] RS2 Cache Editor
    By Lazaro in forum Downloads
    Replies: 81
    Last Post: 12-07-2013, 03:41 AM
  2. Replies: 2
    Last Post: 02-22-2012, 05:27 PM
  3. RS2 Cache Section
    By Defcon in forum Suggestions
    Replies: 1
    Last Post: 08-09-2011, 06:47 AM
  4. RS 317 cache file format
    By Benjamin in forum Help
    Replies: 7
    Last Post: 11-11-2010, 08:21 AM
  5. RS2 Cache - NEW
    By Zixt in forum Downloads
    Replies: 6
    Last Post: 10-25-2007, 11:42 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
  •