aliens

Author Topic: Combining lots of small pixel images into one spritesheet.  (Read 2598 times)

Offline MKSheppard

  • Colonel
  • ****
  • Posts: 247
    • View Profile
Combining lots of small pixel images into one spritesheet.
« on: January 17, 2016, 07:12:48 pm »
I found a SD card that I had thought lost forever; and on it was a lot of old OpenXCOM mod stuff I was doing -- converting really old (as in Original XCOM) mods to OXCOM from PCK format; and they're in a lot of little files, e.g.

sectoid000.bmp
to
sectoid267.bmp

for an old XCOM WW2 mod that replaced the sectoid with a German soldier.

Is there a python script to crunch all these into a OXCOM compliant spritesheet?

Thanks in advance.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5266
  • punk not dead
    • View Profile
    • Nocturnal Productions

Offline MKSheppard

  • Colonel
  • ****
  • Posts: 247
    • View Profile
Re: Combining lots of small pixel images into one spritesheet.
« Reply #2 on: January 18, 2016, 11:04:35 pm »
So hmmm, 16 Columns is what's used for unit sprites; and I think 8 columns for HANDOBs....

[mostly ignore this, making a personal note to myself]

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 9190
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Combining lots of small pixel images into one spritesheet.
« Reply #3 on: January 19, 2016, 12:28:15 am »
So hmmm, 16 Columns is what's used for unit sprites; and I think 8 columns for HANDOBs....

[mostly ignore this, making a personal note to myself]

Not really, you can set 8 columns fort units if you want. It doesn't matter, you only need to reflect the file's dimensions in the ruleset.

Offline SophiaThe3rd

  • Sergeant
  • **
  • Posts: 23
  • For Love of the Frog
    • View Profile
Re: Combining lots of small pixel images into one spritesheet.
« Reply #4 on: August 26, 2016, 05:27:15 am »
the attached link returns as server error. is this utility still available? any other recommended methods?
assembling handObs in MTpaint is straight forward enough, but this is a much larger bite to chew.
 :-[


edit: https://falkooxc2.pythonanywhere.com/spritecomb
« Last Edit: August 26, 2016, 05:36:38 am by SophiaThe3rd »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 9190
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Combining lots of small pixel images into one spritesheet.
« Reply #5 on: August 26, 2016, 10:40:35 am »
This one works:
https://falkooxc.pythonanywhere.com/sprites2png

Just pack your images in a .zip and upload.

Offline HelmetHair

  • Colonel
  • ****
  • Posts: 350
  • He who laughs last thinks fastest.
    • View Profile
Re: Combining lots of small pixel images into one spritesheet.
« Reply #6 on: August 26, 2016, 03:37:40 pm »
OMG!

Fantastic!