Native Sprite Packer (Packs sprites into #317-377 format)

CrazyPanda

Ex Rune-Scaper
 
Jun 2, 2008
3,532
273
0
Better Sprite Packer (version 2)

What is better sprite packer?
Better sprite packer (BSP) is a program designed to pack sprites into RuneScape's 2006 file system. Revision #317

Features
  • Follows 317-377 sprite format
  • No needed libraries
  • No needed classes
  • Supports GIF, PNG
  • Exports to PNG-8
  • Exports meta information into a file called Meta.json in the root of your sprites directory
  • Includes jfxrt (some jre's don't contain the javafx libs especially pre 1.8)
    Compatiable with Linux and Windows 10 (I don't have a mac so I can't say it works on there. If you have a mac and this program works for you let me know)

Versions
  • 1.0 - 1.44: Compatible with Galkon's format
  • 1.45 - 1.49: New experimental formats.
  • 2.0 + Designed to work with RuneScape's file system.

Use GIMP or Photoshop to reduce image colors
Gl1KLHd.png


MTeObVB.png


Meta format
Code:
{
  "mod_icons": [
    {
      "id": 0,
      "offsetX": 0,
      "offsetY": 1,
      "resizeWidth": 13,
      "resizeHeight": 13,
      "format": 1
    },
    {
      "id": 1,
      "offsetX": 0,
      "offsetY": 1,
      "resizeWidth": 13,
      "resizeHeight": 13,
      "format": 1
    }
  ],
  "number_button": [
    {
      "id": 0,
      "offsetX": 0,
      "offsetY": 0,
      "resizeWidth": 64,
      "resizeHeight": 64,
      "format": 0
    }
  ]
}

Notes
  • A single image archive can only contain 256 colors (255 if rgb 0 is not present which indicates transparency)
  • To reduce image colors you can use either Photoshop or GIMP image -> mode -> indexed then change max number of colors or use web palette
  • Transparency is set in the client, not BSP. (In a #317 rgb 0 aka black is used for transparency)

Issues
  • if the program isn't working for you, feel free to submit an issue request here.

Media
ccimVaW.png


Spoiler for More Media:


Automatically generates new image archives if any archives have more than 256 colors. Placeholders take the place of the sprites moved out of the archive to preserve order.

Before
k8R5WM5.png


After
PhBGYEq.png
D88HI7x.png

 
Last edited:
This is awesome thank you! Used your last bsp a lot - will certainly help test this soon.

You may have fixed this in this revision (though I suspect this is an issue caused by the compression side of things instead) but I do sometimes experience an issue when packing 'white' sprites. Example, side-by-side comparison (packed left, original right):

RqGGdLr.png
 
This is awesome thank you! Used your last bsp a lot - will certainly help test this soon.

You may have fixed this in this revision (though I suspect this is an issue caused by the compression side of things instead) but I do sometimes experience an issue when packing 'white' sprites. Example, side-by-side comparison (packed left, original right):

RqGGdLr.png

yeah it could be. did you try it on the gzip version to see if it was the xz compression doing that?

Awesome tool dude! Thanks alot.

thanks man
 
yeah it could be. did you try it on the gzip version to see if it was the xz compression doing that?



thanks man

Nah I packed those sprites after I altered the sprite loading. Think I still have bsp 1.44 lying around so I'll check it out at some point.
 
Nah I packed those sprites after I altered the sprite loading. Think I still have bsp 1.44 lying around so I'll check it out at some point.

Kk

Tested the program with textures and it works perfectly. You can pack and unpack textures as well. I posted on the main thread how to pack them properly. To get your textures and unpack them it's the same way you get the media archive but with the texture archive instead.

oSm4NZN.png


2f9yEsd.png


cVGKwzR.png
 
Good work on this and all of your other releases [user]nshusa[/user]!

I'll look at/run this and see if I can help. I'll let you know. :hurr:
 
I had to do a quick doubletake but I was right, I'll be damned, that's thunar (xfce is <3)! What theme do you have for thunar? It looks great.
 
So sorry for the Grave dig...Does anyone have this still ? I have his new tool but does not support mass dumping / importing like this does and I no longer have it
 

Users who are viewing this thread (total: 1, members: 0, guests: 1)