OpenXcom Forum

Modding => Tools => Topic started by: MKSheppard on January 17, 2016, 07:12:48 pm

Title: Combining lots of small pixel images into one spritesheet.
Post by: MKSheppard 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.
Title: Re: Combining lots of small pixel images into one spritesheet.
Post by: Dioxine on January 17, 2016, 08:00:03 pm
Better than that.

https://falkooxc.pythonanywhere.com/sprites2png
Title: Re: Combining lots of small pixel images into one spritesheet.
Post by: MKSheppard 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]
Title: Re: Combining lots of small pixel images into one spritesheet.
Post by: Solarius Scorch 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.
Title: Re: Combining lots of small pixel images into one spritesheet.
Post by: SophiaThe3rd 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
Title: Re: Combining lots of small pixel images into one spritesheet.
Post by: Solarius Scorch 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.
Title: Re: Combining lots of small pixel images into one spritesheet.
Post by: HelmetHair on August 26, 2016, 03:37:40 pm
OMG!

Fantastic!