Author Topic: sprite tools  (Read 41956 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: sprite tools
« Reply #15 on: June 28, 2014, 05:50:35 am »
Falko, I made a sprite sheet which now I cannot open in Photoshop. O_o

This is the first time I can't open any picture in a Photoshop. No idea what's going on.

Screen provided in the attachment.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: sprite tools
« Reply #16 on: June 28, 2014, 10:20:32 am »
if you attach the originalk zip/resulting file i can take a look

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: sprite tools
« Reply #17 on: June 28, 2014, 02:21:29 pm »
if you attach the originalk zip/resulting file i can take a look

Sure, here it is.

It should be noted that the resulting file works perfectly well in the game and image browser, I just can't edit it with Photoshop (and I really need to, half the reason I made one sprite sheet was that I wanted to remove one particular colour from the sprite, since at one point it started being transparent).

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: sprite tools
« Reply #18 on: June 28, 2014, 02:31:39 pm »
the reptoiod zip is empty
the file can be opened with paint.net
but not with aseprite
i could load it with python and save it that resulting file is readable in aseprite
hm can you upload a zipfile with files?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11730
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: sprite tools
« Reply #19 on: June 28, 2014, 02:37:50 pm »
Sorry, I have no idea what happened to that zip. Attaching it again, it is fine.

EDIT: Still can't open your version of the file... This is intriguing.

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: sprite tools
« Reply #20 on: June 28, 2014, 03:46:50 pm »
I can open Falko's file (tmp.png) but I can't open Solarius' file (REPTOID.png).
This with Photoshop CS4.

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: sprite tools
« Reply #21 on: June 28, 2014, 05:25:48 pm »
fixed

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
How to make a Tank / Big Alien
« Reply #22 on: July 01, 2014, 05:32:48 am »
update of 2nd tool + new 3rd tool
tool nr 3:
https://falkooxc.pythonanywhere.com/makegif

gives you the option to make new 4-tile aliens/tanks with a lot less pain than normal
take a look at the docusprites picture for "how it works"
i take the a big tftd 4tile unit
for all ufo/tftd 4-tile units i have templates where one can edit the single frames of each animation as a complete unit
the splitting in a spritesheet png image is done via web
with the second tool https://falkooxc.pythonanywhere.com/palconvert you can fix tftd palettes (in most cases its better if you fix the colors of the template before editing/splitting)
in this docu image i wanted to show how to easy switch colors here "yellowish to green" because big ass muton soldiers need a green bigass terror unit not "walking stones"

or you can change existing spritesheets here i made a non-brown/orange version of ethereal (took like 30 seconds )

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: sprite tools
« Reply #23 on: July 01, 2014, 08:02:23 pm »
Wow man, you're a python master!
I'm almost 4 month on it and I wouldn't even know where to start, if I had to do something like this.

This third tool will be very useful to me in the future.
« Last Edit: July 01, 2014, 08:05:00 pm by robin »

Offline MKSheppard

  • Colonel
  • ****
  • Posts: 249
    • View Profile
Re: sprite tools
« Reply #24 on: July 04, 2014, 06:13:56 pm »
So how do you recolor existing sprites?

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: sprite tools
« Reply #25 on: July 04, 2014, 06:34:32 pm »
look at the step 7 "fix-colors url" and the following steps
there you see how to make a tftd image to ufo palette (battlescape) and further "play" with colors

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: sprite tools
« Reply #26 on: July 18, 2014, 04:58:22 pm »
i got the informaqtion that there is a bug with the colorindex 15 in oxc
see image i put 1/4th palette to fe/male front/back to compare game image with "original" sprite only one color makes this problem
so to fix it:
go here https://falkooxc.pythonanywhere.com/palconvert#
select from ufo-battlescape->ufo battlescape
open details and activate the fixcolor15 bug
-> convert
done

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: sprite tools
« Reply #27 on: July 19, 2014, 12:24:05 am »
I will have a look at it
Thanks once more Falko

Offline Aldorn

  • Commander
  • *****
  • Posts: 750
    • View Profile
Re: sprite tools
« Reply #28 on: July 23, 2014, 02:02:32 pm »
if you go here https://falkooxc.pythonanywhere.com/sprites2png

I used it to convert some handob folders
It does not work for some of them, containing GIF files, as it displays a black background on battlescape, but I think it is due to source GIF files (even if these source GIF files works well without any black background when loaded as a handob folder)

Anyway, it works for many others (including folders containing GIF files)

With split parameter set to 1, it works even to convert a unique file from GIF to PNG without loosing transparent background, that's nice !
Once all are converted to PNG format, I will be able to mod a little myself (from existing files, with credits) using one of recommended free softwares (which do not accept GIF files but PNG)

Huge thanks for tools you provide to community, Falko !  :)
« Last Edit: July 23, 2014, 02:04:52 pm by Aldorn »

Offline Falko

  • Commander
  • *****
  • Posts: 802
    • View Profile
Re: sprite tools
« Reply #29 on: July 23, 2014, 02:08:43 pm »
if you have zipfiles that do not work please atach these here so i can take a look
the sprite2png tool uses the first image as a base and then "attaches" the other images
if the images have different palettes they could look different .. but normally there they should have the same since there is no need to put a geoscape-image together with a battlescape image