OpenXcom Forum

Modding => Help => Topic started by: efrenespartano on November 05, 2018, 06:43:51 am

Title: [SOLVED] How to change color of the Smoke
Post by: efrenespartano 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
Title: Re: How to change color of the Smoke
Post by: robin 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.
Title: Re: How to change color of the Smoke
Post by: efrenespartano 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
Title: Re: How to change color of the Smoke
Post by: robin 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.
Title: Re: How to change color of the Smoke
Post by: efrenespartano 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
Title: Re: How to change color of the Smoke
Post by: Solarius Scorch 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.
Title: Re: How to change color of the Smoke
Post by: efrenespartano 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
Title: Re: How to change color of the Smoke
Post by: Solarius Scorch on November 11, 2018, 04:43:07 pm
It's explained here: https://openxcom.org/forum/index.php/topic,2980.msg96205.html#msg96205
Title: Re: How to change color of the Smoke
Post by: efrenespartano 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
Title: Re: [SOLVED] How to change color of the Smoke
Post by: The_Funktasm 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?
Title: Re: [SOLVED] How to change color of the Smoke
Post by: ohartenstein23 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.
Title: Re: [SOLVED] How to change color of the Smoke
Post by: The_Funktasm 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.
Title: Re: [SOLVED] How to change color of the Smoke
Post by: efrenespartano 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