Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
Liberated Pixel Cup

LPC sprite sheet mass converter tool

bzt
Saturday, April 30, 2022 - 11:12
bzt's picture

Hi,

As promised, here's a simple, dependency-free, multi-platform tool to mass convert LPC sprite sheets. It should compile on any POSIX-compliant system just as-is (Linux, MacOS, BSDs, Minix, etc.), but I've provided pre-built binaries for Linux and Windows as well (both weights no more than 300 kilobytes).

https://gitlab.com/bztsrc/lpcsheet (downloadable executables in the repo)

This tool has no hardwired sheet definitions in it, it is fully configurable with a CSV file. That file contains rows, one for each frame, which should look like:
"width,height,srcx,srcy,dstx,dsty", simple as that.

There are two example CSV files in the repo:

  • identity.csv - simple identity mapping of frames (to be used as a skeleton for your custom conversion)
  • merge.csv - the same, but this one expects all source animations in separate files, and merges those into a single sprite sheet.
  • ...hopefully soon more CSVs

You can write these comma separated values with any text editor (or you can also use Excel or gnumeric if that's your thing), but I've also created a

web helper to generate these CSVs (runs in your browser, tested with Firefox).

Using the web interface you can record multiple frame conversions and save those as a CSV, which in turn can be used with the lpcsheet tool on any already existing LPC assets.

TODO

  • Because no full LPC guidelines exists yet, the web helper uses a grid image. It will be replaced as soon as a guide is available.
  • For the same reason, I couldn't upload current LPC sheet to new LPC sheet conversion CSVs yet, just that two examples, but I'll as soon as possible.

Cheers,
bzt

  • Log in or register to post comments