Sprite-Sheet-Tools

Tools which are useful for mod development.
YuokiTani
Smart Inserter
Smart Inserter
Posts: 1037
Joined: Thu May 08, 2014 7:57 pm
Contact:

Sprite-Sheet-Tools

Post by YuokiTani »

this programs can help you
Stitches - don't like big sprite-sheets but is easy to use and works online
if you can't save the sheet, use right mouse button and "picture save as"

edit (related to next post):
ImageMagick works also in Windows and you can create sheets with commandline-input like this:

Code: Select all

montage meg-va????.png -tile 4x4 -geometry 128x128+0+0 meg-sheet.png
for all Sheets from locomotives and cargo-wagons i used ImageMagick (64, 128 frames)

(Sprite Sheet Packer - Full Program - no problems with sheets bigger 2048x2048px)
Last edited by YuokiTani on Sat May 14, 2016 7:08 am, edited 2 times in total.
zangent
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue Jul 28, 2015 5:20 pm
Contact:

Re: Sprite-Sheet-Tools

Post by zangent »

I made a little NodeJS utility to make these spritesheets, although it requires Imagemagick & NodeJS (or IOJS), and it only runs on Linux and (probably) OSX
Spritesheet.js.zip

Edit: I should note that this will split the final spritesheets into separate files. I made it specifically for Factorio.
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Re: Sprite-Sheet-Tools

Post by YoloJoe »

Thanks, but the order is all messed up? I have named the files name1,name2,name3 etc, but both the Stitches website and the SpriteSheetPacker messes up the order.. It goes 1,10,11,12,13,14,15,16,17,18,19,2,20... why?
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Sprite-Sheet-Tools

Post by Arch666Angel »

make it 0001, 0002, 0003, 0004 and so on
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Re: Sprite-Sheet-Tools

Post by YoloJoe »

Ahhhh :evil: now the pic just returns error:

Code: Select all

 Sprite outside of "(location)" (at 1967, 136, size 1x1 of 1722x1781)
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Re: Sprite-Sheet-Tools

Post by YoloJoe »

What is "Image padding" and what does it need to be set to? I think I have it on 1 pixel :P
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Sprite-Sheet-Tools

Post by Arch666Angel »

Padding is the space the tool inserts between the images you put in, you should set it to 0
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Re: Sprite-Sheet-Tools

Post by YoloJoe »

The software is still putting the images in random order..? The 72 individual images are now called "0000,0001,0002,0003.....0031....0072"
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Sprite-Sheet-Tools

Post by Arch666Angel »

Hmm works fine this way for me. Btw if you are using 72 images, you cant use the compact method in stitches it will require you to have a squared number of frames (e.g. 4²=16, 5²=25, 6²=36,...).
So you have to first stitch 9 lines of 8 frame together or the other way around and then put the lines together. If you already do that I don't know where the error is. Just trying to help with what I experienced :D
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Re: Sprite-Sheet-Tools

Post by YoloJoe »

Ok, thanks. I just moved them around myself XD It took be about 2 hours, but its all good now :D XD
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Sprite-Sheet-Tools

Post by darkfrei »

Code: Select all

montage "_file00_*.png" -tile 8x8 -background rgba(0,0,0,0) -quality 100% _factorio8x8.png
This batch code for ImageMagick / montage make a nice result with alpha and shadows.

_file00_*.png is for _file00_0001.png, _file00_0002.png, _file00_0003.png
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Sprite-Sheet-Tools

Post by darkfrei »

Code: Select all

montage "Sprites/*.png" -tile 8x -geometry +0+0 -background rgba(0,0,0,0) -quality 100% Sprite-8x_.png
This input for montage.exe takes all pictures from folder Sprites and make one sheet with 8 columns without deformation and compression.

-geometry +0+0 is very important.

Code: Select all

convert -dispose 3 -delay 5 -loop 0 "spritesheet\*.png" -crop 238x230 +repage "sprites\sprite.gif"
This code makes animated gif from spritesheet. The folder must exist.

Code: Select all

convert -dispose 3 -delay 5 -loop 0 "spritesheet\*.png" -crop 238x230 +repage "sprites\sprite.png"
Sprites from spritesheet.


:arrow: :arrow: :arrow: :arrow: :arrow:
:!: See also: viewtopic.php?f=34&t=5336
viewtopic.php?f=34&t=5336&start=20
Post Reply

Return to “Development tools”