Sprite Sheet

Place to get help with not working mods / modding interface.
User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

Sprite Sheet

Post by DiegoPro77 »

I've 26 frames/images for do an animation for an entity: how can i merge them in a single frame?
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Sprite Sheet

Post by darkfrei »

DiegoPro77 wrote:I've 26 frames/images for do an animation for an entity: how can i merge them in a single frame?
viewtopic.php?f=34&t=5336&start=20#p335708
Put your images to the /Input/, start the script 4x8.
User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

Re: Sprite Sheet

Post by DiegoPro77 »

It tells me that it can hurt my pc… :?
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Sprite Sheet

Post by darkfrei »

DiegoPro77 wrote:It tells me that it can hurt my pc… :?
You can also download the last verson of ImageMagick here: http://www.imagemagick.org/script/download.php#windows
I think that portable version (now: ImageMagick-7.0.7-37-portable-Q16-x64.zip) is the best solution, so you can use only the part of this program.
Then use some easy .bat file:

Code: Select all

montage "Input/*.png" -geometry +0+0 -tile4x8 -background rgba(0,0,0,0) -quality 100% spritesheet_4x8.png
User avatar
DiegoPro77
Fast Inserter
Fast Inserter
Posts: 172
Joined: Tue Feb 20, 2018 1:40 pm
Contact:

Re: Sprite Sheet

Post by DiegoPro77 »

Ok, but now i've another problem: the game recognize the sprite sheet, but as a single photo, and it tells me this...
Attachments
Immagine.png
Immagine.png (22.91 KiB) Viewed 1818 times
Aka Playmaker. My mods: https://mods.factorio.com/user/77playmaker -|- My Discord Server: https://discord.gg/6NGYQdX
"One day you'll live this word behind, so live a life you will remember."
Expanding your game experience since 2018.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Sprite Sheet

Post by darkfrei »

DiegoPro77 wrote:Ok, but now i've another problem: the game recognize the sprite sheet, but as a single photo, and it tells me this...
Is your image higher than 2048 or wider than 2048? This script will crop so much as possible white (alpha?) space about your images:

Code: Select all

magick "Input/*.png" -background none ^
   ( -clone 0--1 -layers merge ^
   -set option:cropper "%%[@]" +delete ) ^
   -crop %%[cropper] +repage ^
   MIFF:- | magick montage MIFF:- -background none ^
   -tile 4x8 -geometry +0+0 Output\best_spritesheet_4x8.png
Please attach your sprites or dimensions of them.
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Sprite Sheet

Post by Arch666Angel »

Post Reply

Return to “Modding help”