aliens

Author Topic: [SOLVED] How to change color of the Smoke  (Read 6853 times)

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
[SOLVED] How to change color of the Smoke
« on: November 05, 2018, 06:43:51 am »
 Hi, everyone!

I want to recolor the classic Smoke to Black and green for a new damage types I'm working on. How to do it? What files I need to recolor and how to apply them on a ruleset?

Thanks in advance!


EDIT: At April, 1st 2019, I had a question about how to add smoke to a weapon hit. I've found the correct option:
Code: [Select]
    damageAlter:
      SmokeThreshold: 1


Enviado desde mi iPhone utilizando Tapatalk
« Last Edit: April 03, 2019, 04:14:01 am by efrenespartano »

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: How to change color of the Smoke
« Reply #1 on: November 10, 2018, 10:10:46 am »
you have to  make a new image for the smoke, then add it to the extraSrites under SMOKE.PCK
the ruleset should be like this:

Code: [Select]
extraSprites:
  - type: SMOKE.PCK
    height: 40
    width: 384
    subX: 32
    subY: 40
    files:
      8: Resources/my_custom_smoke.gif  # or png

As for the image itself you have to take all the smoke frames from the attached image and put them in a line in a single image (png or gif). Mind that the fuchsia line is just a gap that separates frames, don't keep it.
« Last Edit: November 10, 2018, 10:14:34 am by robin »

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: How to change color of the Smoke
« Reply #2 on: November 10, 2018, 05:54:20 pm »
Thank you ! I didn't knew where was the smoke animations.

Do you have any suggestion to recolor all of the animations at once?


Enviado desde mi iPhone utilizando Tapatalk

Offline robin

  • Commander
  • *****
  • Posts: 1224
  • ULTIMATE ROOKIE
    • View Profile
Re: How to change color of the Smoke
« Reply #3 on: November 10, 2018, 09:54:58 pm »
It's pretty simple.
Once you have put all the frames in line into a single image (the result should be like the example attached), you use the paint bucket tool (be sure to uncheck "contiguous" and to set "tolerance =0) and color all the smoke pixels quickly.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: How to change color of the Smoke
« Reply #4 on: November 11, 2018, 02:21:44 am »
It's pretty simple.
Once you have put all the frames in line into a single image (the result should be like the example attached), you use the paint bucket tool (be sure to uncheck "contiguous" and to set "tolerance =0) and color all the smoke pixels quickly.

On GIMP or Photoshop? :D


Enviado desde mi iPhone utilizando Tapatalk

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to change color of the Smoke
« Reply #5 on: November 11, 2018, 12:11:20 pm »
Why not use Falko's recolouring tool?
http://falkooxc2.pythonanywhere.com/spritepalette
It was specifically made to convert colour groups to other colour groups, and it performs perfectly.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: How to change color of the Smoke
« Reply #6 on: November 11, 2018, 04:13:14 pm »
Why not use Falko's recolouring tool?
http://falkooxc2.pythonanywhere.com/spritepalette
It was specifically made to convert colour groups to other colour groups, and it performs perfectly.

Well... because I don't know how to do it. I mean, I know how to use the other Falko's tools, they are super useful. But that one, no. :(


Enviado desde mi iPhone utilizando Tapatalk

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: How to change color of the Smoke
« Reply #7 on: November 11, 2018, 04:43:07 pm »

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: How to change color of the Smoke
« Reply #8 on: November 11, 2018, 04:46:40 pm »
It's explained here: https://openxcom.org/forum/index.php/topic,2980.msg96205.html#msg96205

OH MY GOSH, thank you!! *u*

My question was solved. Thank you, robin and Solarius Scorch!


Enviado desde mi iPhone utilizando Tapatalk

The_Funktasm

  • Guest
Re: [SOLVED] How to change color of the Smoke
« Reply #9 on: November 20, 2018, 06:25:47 pm »
Wait, there can be more than one type of smoke? That sounds incredibly useful. Can there be more than one type of fire?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1933
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [SOLVED] How to change color of the Smoke
« Reply #10 on: November 20, 2018, 08:50:00 pm »
No, there is only one type of smoke and one type of fire, the point here is just that you can change the graphics for them.

The_Funktasm

  • Guest
Re: [SOLVED] How to change color of the Smoke
« Reply #11 on: November 20, 2018, 10:56:15 pm »
Ah. Too bad. Would've been interesting to try making stun damage leave a cloying stun damage form of smoke, or for plasma to leave its own form of fire. Or what I really was thinking of, the black fog from the original war of the worlds.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 765
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: [SOLVED] How to change color of the Smoke
« Reply #12 on: November 20, 2018, 11:38:28 pm »
Or what I really was thinking of, the black fog from the original war of the worlds.

Haha that's exactly why I asked this. I'm going to add it to my project with some recolored Smoke animation. ;D



Enviado desde mi iPhone utilizando Tapatalk