OpenXcom Forum

OpenXcom => Open Feedback => Topic started by: Orz on March 01, 2016, 04:19:47 pm

Title: Female Head/Hair Sprite issue (Enhanced soldier sprites) *Resolved*
Post by: Orz on March 01, 2016, 04:19:47 pm
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):

(https://s16.postimg.org/mipv7z9h1/screen196.png)

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

Fix?
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Dioxine 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
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Orz 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

(https://s12.postimg.org/rkzzfoypp/screen203.png)
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Dioxine on March 01, 2016, 05:51:27 pm
Have you changed the hair color on the spritesheet?
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Orz on March 01, 2016, 06:07:43 pm
Have you changed the hair color on the spritesheet?

Nope.

Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Dioxine on March 01, 2016, 06:33:08 pm
Hmm... so I don't know. I don't know TFTD palette well enough.
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Yankes 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.
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Orz 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
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Yankes on March 01, 2016, 09:59:51 pm
made female hairs in same color group as male ones.
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Dioxine 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).
Title: Re: Female Head/Hair Sprite issue (Enhanced soldier sprites)
Post by: Orz on March 02, 2016, 12:00:28 am
Thanks a LOT, both of ya! It's all fixed now :D