[1.0] Don't Shave Your Head! - v1.0.0

Started by Dark_Inquisitor, November 03, 2017, 10:39:20 AM

Previous topic - Next topic

gaberad

Yeah, hairstyles need custom textures in order for them to display correctly, otherwise it'll just do the vanilla behaviour.

So new hair styles (like from Royal DLC, other hair mods) won't work unless a custom texture is added.

First post has details on how to do that.

It's what I'm trying to eliminate with the experimental build I'm working on.

Fakeaccount123

gaberad thank you for updating this mod. It would be awesome if you manage to make that experimental build to work. However i have a problem with the mod: it wors fine with pawns in the map but when you look at pawns in the portrait, in the top of the screen, you will notice that the hats and helmets are drawn behind the hair. Do you think you can change that?

gaberad

Yeah, I see what you mean. I don't play with head gear visible on the pawn bar, so I didn't notice, but I'll see if I can find out what's causing it.


gaberad

I think I found/fixed the issues: there was a floating point comparison issue, as well as the render offset being applied to both the hair and headgear (rather than just the headgear), which meant that the hair and headgear were trying to render at the same level.

Worked with my tests, but again let me know if there are any issues with it.

https://github.com/gaberad/DontShaveYourHead

Fakeaccount123

Quote from: gaberad on March 13, 2020, 11:15:21 PM
I think I found/fixed the issues: there was a floating point comparison issue, as well as the render offset being applied to both the hair and headgear (rather than just the headgear), which meant that the hair and headgear were trying to render at the same level.

Worked with my tests, but again let me know if there are any issues with it.

https://github.com/gaberad/DontShaveYourHead

That was fast. Thank you

Simstu

Quote from: gaberad on March 13, 2020, 11:15:21 PM
I think I found/fixed the issues: there was a floating point comparison issue, as well as the render offset being applied to both the hair and headgear (rather than just the headgear), which meant that the hair and headgear were trying to render at the same level.

Worked with my tests, but again let me know if there are any issues with it.

https://github.com/gaberad/DontShaveYourHead
Hello there! I'm running into the same problem but with 1.0... And also just my pawns are displaying properly, raiders just have their hair through hats... Any chance you could help me?

gaberad

yeah I'll take a look at 1.0 this weekend.

Simstu


gaberad

I've pushed out the update for the 1.0 fix, and made the mod into one of those combined 1.0/1.1 mods.


Simstu

#99
Will try later in the day.

EDIT: Works fantastic! Thank you very much, partner!

Hats off to ya!
;)

gaberad

Ok, so, the experimental branch didn't work out, hair styles are too varied to get it working consistently.

So instead I decided to go for a 'fallback texture', where if the current hair style doesn't have a custom texture, it will choose a semi-random default custom texture, based on it's hair length (so short hair chooses a short custom texture etc).

It figures out the length of hair based on the lowest pixel. Hair styles with built-in beards probably won't work so well.

for both 1.0 and 1.1

https://github.com/gaberad/DontShaveYourHead/tree/fallback-texture

BlueTressym

Hi.  Is there a way to make this compatible with Automatic's 'Gradient Hair'?  I didn't get a reply when I asked them about it some time back but they have said since that they have a dedicated API (Whatever that is; I am not fluent in Code) and that it should make it easy for people to add support.  There was some talk about it when some other people were asking about compatibility with other mods.  I don't know enough to know if it's something you can fix. 

I would really love to be able to use both mods together but currently, using this one disables the gradient on the pawn; they still show as having it in Prep. Carefully or the Change Dresser but not on screen.  The hair renders correctly in terms of not being shaved but the second colour doesn't display.  I have pictures if that helps. 

gaberad

I'll do some tests and see if it's possible.

gaberad

It will be possible but needs a small update to Gradient Hair's api. I've asked the author for the update, so if/when they do it i can make this compatible.

Ilya

Quote from: gaberad on March 27, 2020, 04:06:56 AM
Ok, so, the experimental branch didn't work out, hair styles are too varied to get it working consistently.

So instead I decided to go for a 'fallback texture', where if the current hair style doesn't have a custom texture, it will choose a semi-random default custom texture, based on it's hair length (so short hair chooses a short custom texture etc).

It figures out the length of hair based on the lowest pixel. Hair styles with built-in beards probably won't work so well.

for both 1.0 and 1.1

https://github.com/gaberad/DontShaveYourHead/tree/fallback-texture

There's a problem with this version. https://i.imgur.com/xHUbar5.jpg