aliens

Author Topic: Female Head/Hair Sprite issue (Enhanced soldier sprites) *Resolved*  (Read 6387 times)

Offline Orz

  • Colonel
  • ****
  • Posts: 147
  • (aka Illamasqua)
    • View Profile
So I've modified Aqua Plastic Armor and Mag. Ion Armor spritesheets (first for better color scheme and second to add orange "grav-pack" on land). I couldn't fail to notice that all female head/hair sprites default to blonde as if the "Enhanced soldier sprites" options specifically didn't apply to them. Please do note that male heads/hairs still display correctly (all 4 variations of them on both modified versions of Plastic And Ion Armors), so this is some sort of bug or coding issue specific to female sprites.

"Enhanced soldier sprites" works fine on vanilla spritesheets. For illustration purposes only, this is what female heads/hair sprites should look like (in Diving Suit here):



And no, I have specifically made sure I didn't touch head/hair colors when modifying the armors themselves.

Fix?
« Last Edit: March 02, 2016, 12:01:04 am by Orz »

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #1 on: March 01, 2016, 04:48:18 pm »
You need to copy this section in armors.rul to apply to any armors that are showing hair and skin:
Code: [Select]
    spriteFaceGroup: 14
    spriteFaceColor: [160, 160, 64, 160, 160, 64, 160, 160] #M0 F0 M1 F1 M2 F2 M3 F3
    spriteHairGroup: 4
    spriteHairColor: [130, 160, 201, 130, 64, 198, 160, 64] #M0 F0 M1 F1 M2 F2 M3 F3

Offline Orz

  • Colonel
  • ****
  • Posts: 147
  • (aka Illamasqua)
    • View Profile
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #2 on: March 01, 2016, 05:43:40 pm »
You need to copy this...

Thanks, I had already tried that and (unless I'm missing something!) it still doesn't work. Blondes still be blonde :P


Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #3 on: March 01, 2016, 05:51:27 pm »
Have you changed the hair color on the spritesheet?

Offline Orz

  • Colonel
  • ****
  • Posts: 147
  • (aka Illamasqua)
    • View Profile
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #4 on: March 01, 2016, 06:07:43 pm »
Have you changed the hair color on the spritesheet?

Nope.


Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #5 on: March 01, 2016, 06:33:08 pm »
Hmm... so I don't know. I don't know TFTD palette well enough.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #6 on: March 01, 2016, 07:09:22 pm »
One caveat original sprites are rewritten on load to fix multiple bugs in them and simplify recoloring.
In your graphic male and female have different hair colors, male work because it have same as in ruleset defined:
Code: [Select]
    spriteHairGroup: 4This value mean that index from 4*16 to 5*16-1 are replaced by new color.

Offline Orz

  • Colonel
  • ****
  • Posts: 147
  • (aka Illamasqua)
    • View Profile
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #7 on: March 01, 2016, 09:55:18 pm »
One caveat original sprites are rewritten on load to fix multiple bugs in them and simplify recoloring.
In your graphic male and female have different hair colors, male work because it have same as in ruleset defined:
Code: [Select]
    spriteHairGroup: 4This value mean that index from 4*16 to 5*16-1 are replaced by new color.

Alright! So what's the solution? :P

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #8 on: March 01, 2016, 09:59:51 pm »
made female hairs in same color group as male ones.

Offline Dioxine

  • Commander
  • *****
  • Posts: 5455
  • punk not dead
    • View Profile
    • Nocturnal Productions
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #9 on: March 01, 2016, 10:21:46 pm »
https://falkooxc.pythonanywhere.com/palconvert

reference. Keep hair color to a single color row, no matter which one. Avoid too dark shades though, keeping to 8 lightest shades of a 16-shade color allows for a more wild recoloring (else you could get rogue pixels).

Offline Orz

  • Colonel
  • ****
  • Posts: 147
  • (aka Illamasqua)
    • View Profile
Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
« Reply #10 on: March 02, 2016, 12:00:28 am »
Thanks a LOT, both of ya! It's all fixed now :D