Ludeon Forums

RimWorld => Mods => Releases => Topic started by: Dark_Inquisitor on November 03, 2017, 10:39:20 AM

Title: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Dark_Inquisitor on November 03, 2017, 10:39:20 AM
(https://staticdelivery.nexusmods.com/mods/424/images/198-0-1504129844.png)
Authors: NoImageAvailable, Dark_Inquisitor

Description:
This mod allows hair to show under headwear.
Headwear that doesn't cover the upper head (e.g. sunshades, goggles, etc.) displays the whole hair texture.
Headwear that covers hair in some way will have the texture replaced with custom textures that fit exactly under the headwear, thus allowing to display hair at all times without any clipping. Works with all headwear, both vanilla and modded.

Supported hairstyles (mods):
- vanilla (default)
- Rimsenal Hair Pack* (https://ludeon.com/forums/index.php?topic=11160.0)
- NackbladInc Rimhair 2.2* (https://ludeon.com/forums/index.php?topic=21771.0)
- Spoon's Hair Mod* (https://ludeon.com/forums/index.php?topic=46210.0)
- RimNGE* (https://ludeon.com/forums/index.php?topic=41507.0)
- Xeva's Hairstyles* (https://ludeon.com/forums/index.php?topic=19944.msg352944#msg352944)

*Remember that you have to download them separately.

Your favourite hairstyle not supported yet? Consider using Show Hair with Hats (https://ludeon.com/forums/index.php?topic=33575.0)!

To-do list:
1) Roppoi Hair (https://steamcommunity.com/sharedfiles/filedetails/?id=1100547661) compatibility (this will take a looong time...)


Remember to back-up your save file before adding any mods!

Pictures
You don't have to shave your hair to put on sunglasses! (apparel from Shinzy's Apparello)
(https://staticdelivery.nexusmods.com/mods/424/images/198-1-1500155136.png)

What's the difference, though? (apparel from Shinzy's Apparello)
(https://i.imgur.com/A3beNv4.png)


(http://staticdelivery.nexusmods.com/images/101/1-1394454241.png) (https://www.nexusmods.com/rimworld/mods/198/?tab=files&navtag=http%3A%2F%2Fwww.nexusmods.com%2Frimworld%2Fajax%2Fmodfiles%2F%3Fid%3D198&pUp=1) (http://i.imgur.com/YGJgu5B.png) (https://github.com/NoImageAvailable/DontShaveYourHead/releases/latest)


Special thanks:
To NoImageAvailable - without him and his coding skills, this mod would never exist;
To rooki1, spoonshortage, nackblad, sumghai and Xeva - for letting us use art from their mods.


How to install:
- Unzip the contents and place them in your RimWorld/Mods folder.
- Activate the mod in the mod menu in the game.

Technical mumbo-jumbo for modders:
How does it work?
The mod places texture sets called "FullHead" and "UpperHead" within a folder structure equal to the hair's texPath, e.g. the textures for the vanilla Afro would be placed in `Things/Pawn/Humanlike/Hairs/Afro/`. The mod automatically detects properly placed and named textures, and will switch to the FullHead/UpperHead texture if the respective BodyPartGroup is covered. If a texture can't be found it will default to Shaved hair, meaning vanilla style hiding of hair.

To make a hair mod compatible:

Licensing:
- You can use this mod in your modpack. Why are you waiting? Go and add it!
- Wait, you want to use the files? Ask me first!
- Want to ONLY update mod to the newest version? You are allowed to do so, but put it ONLY on this thread.
Title: Re: [A18] Don't Shave Your Head!
Post by: Nightinggale on November 03, 2017, 10:43:48 AM
How is this different from Show Hair with Hats (https://ludeon.com/forums/index.php?topic=33575.0)?
Title: Re: [A18] Don't Shave Your Head!
Post by: NoImageAvailable on November 03, 2017, 11:00:09 AM
Quote from: Nightinggale on November 03, 2017, 10:43:48 AM
How is this different from Show Hair with Hats (https://ludeon.com/forums/index.php?topic=33575.0)?

That one simply displays hair with hat graphics, resulting in tons of clipping. This mod switches between regular hair and custom textures that are designed to fit perfectly under hats, meaning it actually looks like what you would see in reality when someone with long hair, a mohawk, etc. puts on a hat.
Title: Re: [A18] Don't Shave Your Head!
Post by: Dark_Inquisitor on November 03, 2017, 11:01:29 AM
Quote from: NoImageAvailable on November 03, 2017, 11:00:09 AM
Quote from: Nightinggale on November 03, 2017, 10:43:48 AM
How is this different from Show Hair with Hats (https://ludeon.com/forums/index.php?topic=33575.0)?

That one simply displays hair with hat graphics, resulting in tons of clipping. This mod switches between regular hair and custom textures that are designed to fit perfectly under hats, meaning it actually looks like what you would see in reality when someone with long hair, a mohawk, etc. puts on a hat.

Exactly, just like in the pictures shown in the post...
Title: Re: [A18] Don't Shave Your Head!
Post by: indy2018 on November 03, 2017, 12:23:47 PM
I have some issue with your mod.

Screenshots included
My save with your mod activated (Top)
And how it looks with the  [A18] Show Hair with Hats (AlienRaces now supported) mod that was already mentioned in this thread. (Second screenshot).



[attachment deleted by admin: too old]
Title: Re: [A18] Don't Shave Your Head!
Post by: Dark_Inquisitor on November 03, 2017, 12:50:43 PM
Quote from: indy2018 on November 03, 2017, 12:23:47 PM
I have some issue with your mod.

Screenshots included
My save with your mod activated (Top)
And how it looks with the  [A18] Show Hair with Hats (AlienRaces now supported) mod that was already mentioned in this thread. (Second screenshot).
I guess I will stick with Show Hair with Hats mod for now.

Something here is deffinetly wrong, since those are not textures that should be displayed when no hat is worn.
Tell me, does the pawns look like this in game, or just the top bar is like this?
Title: Re: [A18] Don't Shave Your Head!
Post by: indy2018 on November 03, 2017, 01:37:52 PM
I think I know what my issue was. These screenshots were made with in game option "hats shown only on game map" turned on (they had their invisible hats on so the hairs looked "funny".
Title: Re: [A18] Don't Shave Your Head!
Post by: Dark_Inquisitor on November 03, 2017, 01:41:05 PM
Quote from: indy2018 on November 03, 2017, 01:37:52 PM
I think I know what my issue was. These screenshots were made with in game option "hats shown only on game map" turned on (they had their hats on but they weren't "rendered" so the hairs looked "funny".

Good to hear everything was solved :)
Also it's a thing that slipped by, we'll see what can be done about this.
Title: Re: [A18] Don't Shave Your Head!
Post by: Nightinggale on November 03, 2017, 03:42:36 PM
I like the new comparison images. It really makes clear what the difference is between each version. Also I do like this mod quite a bit now that I'm complete aware of how it stands out.

I have studied the C# code and I must say it's brilliant. I'm keeping it for future reference because it's Harmony Transpillar done right, meaning the dll should be compatible with all other mods unless they mod the very same instructions. Secondly the concept of controlling the drawing code based on presence of png files rather than xml is great. It really is a showcase example of mod coding done right.

I do wonder about the added hair pngs. If it doesn't matter which mod they are in, then why copy hair from other mods with concent rather than just adding the files to the mods, which provides the hairstyles in the first place? This mod would be easier to maintain if it becomes common knowledge that adding a hairstyle should add extra files to support DSYH. In fact people can add hairstyles, add support and you wouldn't even need to be involved.

Another thing I wondered about is has this been tested with alien race framework? AFAIK that mod is using Transpillar on the very same method.

Last, but not least: the guide on how to add support is quite short and lacks details. Looks like the real approach is something like this:
Maybe not a perfect guide, but it provides a lot more information on the approach.
Title: Re: [A18] Don't Shave Your Head!
Post by: Kiame on November 03, 2017, 03:58:15 PM
If you want to say in your picture comparing the different approaches "Show Hair w/ Hats" I give you permission to - just so it's clearer what's being compared.  :)

I am going to try out this mod. Initially (before trying it) I almost want to be able to toggle which hats will show un-clipped hair or which hats hide hair.

And quick nitpick...
"What's the difference, tough? (apparel from Shinzy's Apparello)"
should probably be "though"
Title: Re: [A18] Don't Shave Your Head!
Post by: Dark_Inquisitor on November 03, 2017, 06:20:50 PM
Quote from: Kiame on November 03, 2017, 03:58:15 PM
If you want to say in your picture comparing the different approaches "Show Hair w/ Hats" I give you permission to - just so it's clearer what's being compared.  :)

I am going to try out this mod. Initially (before trying it) I almost want to be able to toggle which hats will show un-clipped hair or which hats hide hair.

And quick nitpick...
"What's the difference, tough? (apparel from Shinzy's Apparello)"
should probably be "though"

Thanks for your kind words :)
As for comparison - I think there are few mods with similar problem (facial stuff, i think? I don't really remember...) Besides, i don't really want to point at anyone. It just don't seem right.
Also yeah, description corrected ;)


Quote from: Nightinggale on November 03, 2017, 03:42:36 PM
I have studied the C# code and I must say it's brilliant. I'm keeping it for future reference because it's Harmony Transpillar done right, meaning the dll should be compatible with all other mods unless they mod the very same instructions. Secondly the concept of controlling the drawing code based on presence of png files rather than xml is great. It really is a showcase example of mod coding done right.

To clear things up - whole code was written by NoImageAvailable (https://ludeon.com/forums/index.php?action=profile;u=12641). As goes for me, I literally suck when it comes to writing actual code.
All kudos to him! :)


Quote from: Nightinggale on November 03, 2017, 03:42:36 PM
Another thing I wondered about is has this been tested with alien race framework? AFAIK that mod is using Transpillar on the very same method.

Technically speaking it should work.


Quote from: Nightinggale on November 03, 2017, 03:42:36 PM
Last, but not least: the guide on how to add support is quite short and lacks details. Looks like the real approach is something like this:

  • Make a folder next to your png files and name it the same as the hairstyle, like ABC_front.png means the folder should be named ABC
  • Inside that folder you add Bodypart + _front, _back, _side, like FullHead_front.png
  • Valid bodyparts are FullHead, UpperHead and Jaw, making a total of 9 if all are used
  • If an image is missing, the shaved head will be used
Maybe not a perfect guide, but it provides a lot more information on the approach.

You wrote this? I wrote this.
(indeed it is much better description of what to do, i hope you won't mind if i incorporate it)
Title: Re: [A18] Don't Shave Your Head!
Post by: Diana Winters on November 03, 2017, 09:03:18 PM
I'm having a small problem with an item from fashion rimsta

(https://i.imgur.com/ZKC0733.png)

It's relevant tags are:

<apparel>
<bodyPartGroups>
<li>UpperHead</li>
<li>Teeth</li>
</bodyPartGroups>
<wornGraphicPath>Things/Pawn/Humanlike/Apparel/Hats/FSSurgicalMask</wornGraphicPath>
<layers>
<li>Overhead</li>
</layers>
<tags>
<li>Outlander</li>
<li>Workforce</li>
</tags>
<defaultOutfitTags>
<li>Worker</li>
</defaultOutfitTags>
</apparel>


so I am not sure why the textures are not working properly (as I am sure that they have vanilla hairs)

Testing with the cowboy hat indicates that it is a problem specific to this headgear.
Title: Re: [A18] Don't Shave Your Head!
Post by: Nightinggale on November 03, 2017, 10:22:04 PM
Quote from: Dark_Inquisitor on November 03, 2017, 06:20:50 PM(indeed it is much better description of what to do, i hope you won't mind if i incorporate it)
Sure. I wrote this for people to read. I'm thinking the easier it is to add support, the more likely it is that people will add support in their own mods. It doesn't help that the mod itself makes it easy if people don't know what to do.

Quote from: Nightinggale on November 03, 2017, 03:42:36 PM

  • If an image is missing, the shaved head will be used
I minor correction to make it completely accurate.
The first version doesn't make it clear that just adding _front will make the code assume _back and _side to be present and read those without checking if they exist first. I don't know what will happen, but with a bit of luck, it will just be errors in the log. Worst case is crashing the game. Either way the code can't get to shaved head once it figures _front is present for the bodytype in question, which in itself is an issue.
Title: Re: [A18] Don't Shave Your Head!
Post by: NoImageAvailable on November 04, 2017, 05:17:32 AM
Quote from: Diana Winters on November 03, 2017, 09:03:18 PM
I'm having a small problem with an item from fashion rimsta

And what exactly is the problem?
Title: Re: [A18] Don't Shave Your Head!
Post by: Diana Winters on November 04, 2017, 11:46:32 AM
Quote from: NoImageAvailable on November 04, 2017, 05:17:32 AM
Quote from: Diana Winters on November 03, 2017, 09:03:18 PM
I'm having a small problem with an item from fashion rimsta

And what exactly is the problem?

Ooops, posted the wrong liknk for the image
(https://i.imgur.com/ZKC0733.png)
As you can see, these hairs are clippng through the hat instead of using the alternate textures.
Edit: I think the hairs are Afro and Scorpiontail
Title: Re: [A18] Don't Shave Your Head!
Post by: NoImageAvailable on November 04, 2017, 12:32:56 PM
Quote from: Diana Winters on November 04, 2017, 11:46:32 AM
Quote from: NoImageAvailable on November 04, 2017, 05:17:32 AM
Quote from: Diana Winters on November 03, 2017, 09:03:18 PM
I'm having a small problem with an item from fashion rimsta

And what exactly is the problem?

Ooops, posted the wrong liknk for the image
(https://i.imgur.com/ZKC0733.png)
As you can see, these hairs are clippng through the hat instead of using the alternate textures.
Edit: I think the hairs are Afro and Scorpiontail

Okay, I see what's wrong now. Fix is up on GitHub, other mirrors pending.
Title: Re: [A18] Don't Shave Your Head!
Post by: Dark_Inquisitor on November 04, 2017, 01:25:29 PM
Quote from: NoImageAvailable on November 04, 2017, 12:32:56 PM
Okay, I see what's wrong now. Fix is up on GitHub, other mirrors pending.
Nexus mirrors updooted.
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: DanT on November 05, 2017, 08:02:53 AM
I've been looking for a mod that does this for a while now, so many thanks!

Any possibility of making it compatible with Roppoi Hair (https://steamcommunity.com/sharedfiles/filedetails/?id=1100547661)? That's really the only Hair mod I use at the moment.
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Diana Winters on November 05, 2017, 08:11:55 AM
Quote from: DanT on November 05, 2017, 08:02:53 AM
I've been looking for a mod that does this for a while now, so many thanks!

Any possibility of making it compatible with Roppoi Hair (https://steamcommunity.com/sharedfiles/filedetails/?id=1100547661)? That's really the only Hair mod I use at the moment.
I second this
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Dark_Inquisitor on November 05, 2017, 09:39:00 AM
Quote from: Diana Winters on November 05, 2017, 08:11:55 AM
Quote from: DanT on November 05, 2017, 08:02:53 AM
I've been looking for a mod that does this for a while now, so many thanks!

Any possibility of making it compatible with Roppoi Hair (https://steamcommunity.com/sharedfiles/filedetails/?id=1100547661)? That's really the only Hair mod I use at the moment.
I second this

Of course there is. Altough thats 58 hairstyles to manage, sooo... about 350-400 new sprites?...
An awfull lot. So this might take a while.
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: XeoNovaDan on November 18, 2017, 07:12:19 PM
Late to say this, but thanks for the mod!
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Karmai on November 18, 2017, 08:31:52 PM
Is it possible for you to make this compatible:

http://steamcommunity.com/sharedfiles/filedetails/?id=931408176

Sincerely
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Tsunamy on November 20, 2017, 08:40:12 PM
Nackblad updated his mod to 0.18 and it's made some changes

Update: Nov 20 @ 6:37am
- Updated to Beta 18.
- Updated textures. They look better now.
- Added naming prefixes. Should play nicer with other hair mods.
- Updated a few tags.
- Added two more hairs.
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Adventurer on November 23, 2017, 09:58:52 PM
Here's an older version of Nackblad's hair mod that should work with the mod. Already made the fix to make it A18 compatible.

Requires 7-Zip or WinRAR to open because a zip file would be too big to attach.

[attachment deleted by admin: too old]
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Tsunamy on December 07, 2017, 02:22:52 PM
Is this mod still being actively developed?
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Canute on December 07, 2017, 03:24:05 PM
Ofcourse not,
until the next Rimworld versions comes out or until you find a bug or get a great improvement suggestion.
Title: Re: [A18] Don't Shave Your Head! - v18.1
Post by: Dark_Inquisitor on December 07, 2017, 07:13:59 PM
Quote from: Canute on December 07, 2017, 03:24:05 PM
Ofcourse not,
until the next Rimworld versions comes out or until you find a bug or get a great improvement suggestion.


As a one of this mod creators I really agree on this one - I mean, it's either full devotion to this mod or nothing, right?
No, seriously though - the thing with this mod is you need an awful lot time to make texture sets (take nackblad for example - 19+19 hairtyles, that's 38. 38 hairstyles, times three positions, that's 114. Every position has 2 to 3 textures, depending on the hairstyle, so let's make is kind of an average here - 280 new textures. Say i need a minute for each one using my template (seems quick, right?) that's more than 4,5 hrs of non-stop speedy work. Yeeeeaaaah...
On the other hand, I have to admit that I wanted to finish all of that long time ago, but life's life, you know. There are always more urgent things that pop out when you least expect them.  Just look at my page; I have mostly .xml mods (not as hard to update) and  how spread out in time they are (as for updating them to B18)...
But hey, heads up - end of year is coming and I'll have more free time again (yay?...). Chances are, every hairpack listed will be compatible 'till the end of this month.
That being said - I just want to point out that this mod is working flawlessly in the current version, and the only "issue" is support for other hairpacks (you can still add every hairpack you want - but remember that the pawns with added hairstyles will be bald, just like in the vanilla), and Vanilla, Rimsenal Hair Pack, Spoon's Hair Mod and old version of the Nackblad Rimhair (see Adventurers post above) are supported.

Hope this little wall-o-text makes everything crystal clear.
Cheers~
Title: Re: [B18] Don't Shave Your Head! - v18.1
Post by: Dark_Inquisitor on December 10, 2017, 01:07:30 PM
Updated to version 18.2 (for RimWorld B18):
- NackbladInc Rimhair 2.0 (new naming) (https://ludeon.com/forums/index.php?topic=21771.0) now supported.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tsunamy on December 10, 2017, 01:29:39 PM
Thanks for the update!

As an aside, I bet you could automate the hair conversion with Photoshop's action recording and batch processing.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Shinzy on December 10, 2017, 03:34:49 PM
Ooohh lovely!
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on January 15, 2018, 09:15:41 AM
Hi, I'm not sure if this is your mod or not, but I recently started getting this weird bug where upon rolling the dice enough times at character creation, I would get a non stop ticking red error to pop up, something about pawn generation, and it would not allow me to proceed further with "embarking" from the pawn screen. However, today after trimming about 90 mods off my list, I had this one pop while at the character creation screen as well, and was curious as to if you knew if this was related to your mod, or not. I will post the first error that popped in red as well followed immediately by another one. Any help I could get would be greatly appreciated, thanks! BTW I also just re downloaded these mods yesterday, Spoon's, and Neckblad's, as those are the only 3 I use for anything related to hair and they shouldn't be out of date (as much as I can remember and tell! ::) )

RandomElementByWeight with totalWeight=0 - use TryRandomElementByWeight.
Verse.Log:Error(String)
Verse.GenCollection:RandomElementByWeight(IEnumerable`1, Func`2)
RimWorld.PawnHairChooser:RandomHairDefFor_Patch1(Pawn, FactionDef)
Verse.PawnGenerator:TryGenerateNewNakedPawn(PawnGenerationRequest&, String&, Boolean)
Verse.PawnGenerator:GenerateNewNakedPawn_Patch1(PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnInternal(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn_Patch1(PawnGenerationRequest)
Psychology.Harmony.PawnRelationWorker_Sibling_GenerateParentPatch:KinseyException(Pawn&, Pawn, Pawn, Gender, PawnGenerationRequest, Boolean)
RimWorld.PawnRelationWorker_Sibling:GenerateParent_Patch1(Pawn, Pawn, Gender, PawnGenerationRequest, Boolean)
RimWorld.PawnRelationWorker_Sibling:CreateRelation(Pawn, Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnRelations_Patch1(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:TryGenerateNewNakedPawn(PawnGenerationRequest&, String&, Boolean)
Verse.PawnGenerator:GenerateNewNakedPawn_Patch1(PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnInternal(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn_Patch1(PawnGenerationRequest)
Verse.StartingPawnUtility:NewGeneratedStartingPawn_Patch1()
Verse.StartingPawnUtility:RegenerateStartingPawnInPlace(Int32)
Verse.StartingPawnUtility:RandomizeInPlace(Pawn)
RimWorld.Page_ConfigureStartingPawns:RandomizeCurPawn()
RimWorld.CharacterCardUtility:DrawCharacterCard_Patch1(Rect, Pawn, Action, Rect)
RimWorld.Page_ConfigureStartingPawns:DrawPortraitArea(Rect)
RimWorld.Page_ConfigureStartingPawns:DoWindowContents_Patch1(Object, Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


Could not execute post-long-event action. Exception: System.NullReferenceException: Object reference not set to an instance of an object
at DontShaveYourHead.Harmony_PawnGraphicSet_ResolveApparelGraphics.Postfix (Verse.PawnGraphicSet) <0x0018e>
at (wrapper dynamic-method) Verse.PawnGraphicSet.ResolveApparelGraphics_Patch3 (object) <0x000fd>
at RimWorld.Pawn_ApparelTracker.<ApparelChanged>m__1 () <0x0002a>
at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () <0x00069>

Verse.Log:Error(String)
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:ExecuteWhenFinished(Action)
RimWorld.Pawn_ApparelTracker:ApparelChanged()
RimWorld.Pawn_ApparelTracker:Notify_ApparelAdded_Patch2(Object, Apparel)
Verse.ThingOwner:NotifyAdded(Thing)
Verse.ThingOwner`1:TryAdd(Thing, Boolean)
RimWorld.Pawn_ApparelTracker:Wear(Apparel, Boolean)
RimWorld.PossibleApparelSet:GiveToPawn(Pawn)
RimWorld.PawnApparelGenerator:GenerateStartingApparelFor_Patch2(Pawn, PawnGenerationRequest)
Verse.PawnGenerator:GenerateGearFor_Patch1(Pawn, PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawnInternal(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn_Patch1(PawnGenerationRequest)
Psychology.Harmony.PawnRelationWorker_Sibling_GenerateParentPatch:KinseyException(Pawn&, Pawn, Pawn, Gender, PawnGenerationRequest, Boolean)
RimWorld.PawnRelationWorker_Sibling:GenerateParent_Patch1(Pawn, Pawn, Gender, PawnGenerationRequest, Boolean)
RimWorld.PawnRelationWorker_Sibling:CreateRelation(Pawn, Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnRelations_Patch1(Pawn, PawnGenerationRequest&)
Verse.PawnGenerator:TryGenerateNewNakedPawn(PawnGenerationRequest&, String&, Boolean)
Verse.PawnGenerator:GenerateNewNakedPawn_Patch1(PawnGenerationRequest&)
Verse.PawnGenerator:GeneratePawnInternal(PawnGenerationRequest)
Verse.PawnGenerator:GeneratePawn_Patch1(PawnGenerationRequest)
Verse.StartingPawnUtility:NewGeneratedStartingPawn_Patch1()
Verse.StartingPawnUtility:RegenerateStartingPawnInPlace(Int32)
Verse.StartingPawnUtility:RandomizeInPlace(Pawn)
RimWorld.Page_ConfigureStartingPawns:RandomizeCurPawn()
RimWorld.CharacterCardUtility:DrawCharacterCard_Patch1(Rect, Pawn, Action, Rect)
RimWorld.Page_ConfigureStartingPawns:DrawPortraitArea(Rect)
RimWorld.Page_ConfigureStartingPawns:DoWindowContents_Patch1(Object, Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


EDIT: I got the error to pop that happens while generating pawns, about the weird addiction or something. I guess I'll just post that here too in case they are connected? This had 2 errors, the first one was only 1 tick, the second keeps ticking up until I can manage to press escape fast enough to back out of the menu.

Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.NullReferenceException: Object reference not set to an instance of an object
at Verse.HediffMaker.MakeHediff (Verse.HediffDef,Verse.Pawn,Verse.BodyPartRecord) <0x0003b>
at RimWorld.PawnAddictionHediffsGenerator.GenerateAddictionsAndTolerancesFor (Verse.Pawn) <0x00287>
at (wrapper dynamic-method) Verse.PawnGenerator.GenerateInitialHediffs_Patch1 (Verse.Pawn,Verse.PawnGenerationRequest) <0x0003d>
at Verse.PawnGenerator.TryGenerateNewNakedPawn (Verse.PawnGenerationRequest&,string&,bool) <0x004f9>
at (wrapper dynamic-method) Verse.PawnGenerator.GenerateNewNakedPawn_Patch1 (Verse.PawnGenerationRequest&) <0x001a4>
at Verse.PawnGenerator.GeneratePawnInternal (Verse.PawnGenerationRequest) <0x0054f>
at (wrapper dynamic-method) Verse.PawnGenerator.GeneratePawn_Patch1 (Verse.PawnGenerationRequest) <0x00048>
at (wrapper dynamic-method) Verse.StartingPawnUtility.NewGeneratedStartingPawn_Patch1 () <0x001e1>
at Verse.StartingPawnUtility.RegenerateStartingPawnInPlace (int) <0x000eb>
at Verse.StartingPawnUtility.RandomizeInPlace (Verse.Pawn) <0x00028>
at RimWorld.Page_ConfigureStartingPawns.RandomizeCurPawn () <0x00060>
at (wrapper dynamic-method) RimWorld.CharacterCardUtility.DrawCharacterCard_Patch1 (UnityEngine.Rect,Verse.Pawn,System.Action,UnityEngine.Rect) <0x00e65>
at RimWorld.Page_ConfigureStartingPawns.DrawPortraitArea (UnityEngine.Rect) <0x00444>
at (wrapper dynamic-method) RimWorld.Page_ConfigureStartingPawns.DoWindowContents_Patch1 (object,UnityEngine.Rect) <0x0049b>
at Verse.Window/<WindowOnGUI>c__AnonStorey0.<>m__0 (int) <0x00735>

Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)


Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.ArgumentNullException: Argument cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary`2<Verse.Pawn, RimWorld.PortraitsCache/CachedPortrait>.TryGetValue (Verse.Pawn,RimWorld.PortraitsCache/CachedPortrait&) <0x001ab>
at RimWorld.PortraitsCache.Get (Verse.Pawn,UnityEngine.Vector2,UnityEngine.Vector3,single) <0x00085>
at RimWorld.Page_ConfigureStartingPawns.DrawPawnList (UnityEngine.Rect) <0x00795>
at (wrapper dynamic-method) RimWorld.Page_ConfigureStartingPawns.DoWindowContents_Patch1 (object,UnityEngine.Rect) <0x00248>
at Verse.Window/<WindowOnGUI>c__AnonStorey0.<>m__0 (int) <0x00735>

Verse.Log:Error(String)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on January 15, 2018, 10:32:26 AM
Quote from: Harry_Dicks on January 15, 2018, 09:15:41 AM
Hi, I'm not sure if this is your mod or not, but I recently started getting this weird bug where upon rolling the dice enough times at character creation, I would get a non stop ticking red error to pop up, something about pawn generation, and it would not allow me to proceed further with "embarking" from the pawn screen. However, today after trimming about 90 mods off my list, I had this one pop while at the character creation screen as well, and was curious as to if you knew if this was related to your mod, or not. I will post the first error that popped in red as well followed immediately by another one. Any help I could get would be greatly appreciated, thanks! BTW I also just re downloaded these mods yesterday, Spoon's, and Neckblad's, as those are the only 3 I use for anything related to hair and they shouldn't be out of date (as much as I can remember and tell! ::) )

From the log it looks like something is messing with the code related to random hair generation. DSYH doesn't affect pawn generation in any way so this must be from something else.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on January 15, 2018, 11:12:13 AM
Ok, thanks for the quick reply. I've tried moving the trio of mods to up towards the top, and I'll try other locations to see if it helps any. Do you have any recommendations as far as the location of any of those 3 mods (yours, neckblads, and spoons) in your mod list? Or the order among those 3?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on January 15, 2018, 11:28:53 AM
Quote from: Harry_Dicks on January 15, 2018, 11:12:13 AM
Ok, thanks for the quick reply. I've tried moving the trio of mods to up towards the top, and I'll try other locations to see if it helps any. Do you have any recommendations as far as the location of any of those 3 mods (yours, neckblads, and spoons) in your mod list? Or the order among those 3?

It doesn't really matter where you put those, there are pretty much no cases where DSYH could produce a load-order conflict. You should look at what mods of yours affect actual pawn generation, since that's where the log points. Either way though, I'm pretty certain your issue is not related to DSYH (and probably not to those hair mods either) in any way.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on January 15, 2018, 11:38:39 AM
Quote from: NoImageAvailable on January 15, 2018, 11:28:53 AM
Quote from: Harry_Dicks on January 15, 2018, 11:12:13 AM
Ok, thanks for the quick reply. I've tried moving the trio of mods to up towards the top, and I'll try other locations to see if it helps any. Do you have any recommendations as far as the location of any of those 3 mods (yours, neckblads, and spoons) in your mod list? Or the order among those 3?

It doesn't really matter where you put those, there are pretty much no cases where DSYH could produce a load-order conflict. You should look at what mods of yours affect actual pawn generation, since that's where the log points. Either way though, I'm pretty certain your issue is not related to DSYH (and probably not to those hair mods either) in any way.

I'm beginning to think the same thing. Someone on discord mentioned if I was using a tech advancing mod. I did just swap from Tech Advancing to Modify Research Time. Sounds like it might make sense, because I think some hairstyles and other things are related to your tech level. Oh well, I'll give anything a shot at this point to see how it goes!
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kori on February 10, 2018, 05:57:46 AM
First of all, thank you for this mod! :)

I am playing with the three hair mods that are already supported and Xeva's Hair.
Now I wondered if it would be possible to use Kiame's Show Hair with Hats for Xeva's Hair, while DSYH manages all other, supported hairstyles?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on February 10, 2018, 06:49:57 AM
Quote from: Kori on February 10, 2018, 05:57:46 AM
First of all, thank you for this mod! :)

I am playing with the three hair mods that are already supported and Xeva's Hair.
Now I wondered if it would be possible to use Kiame's Show Hair with Hats for Xeva's Hair, while DSYH manages all other, supported hairstyles?

Funny, I am doing the same thing, except I also have Roppoi Hair Pack. Only a couple days ago I asked on the other DSYH thread if it would be possible to use DSYH for the hair models it supports, but the vanilla option of "only show hats on map" for hair styles not supported by it. I believe we are thinking too much alike! :P
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kiame on February 10, 2018, 12:44:15 PM
I'm taking a break from modding atm though i'm sure I'll be back at it sooner or later.

As for Show Hair with Hats, if the developers of this mod want to take any of my code and integrate it into this feel free. With the last version (a few months ago) for Show Hair, I made it so it could work with other mods that modify the pawn rendering method. I have not tried using both this and that mod together though.

The code for Show Hair is here: https://github.com/KiameV/rimworld-showhair
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on February 10, 2018, 01:22:39 PM
Kiame, aren't there mod options for Show Hair with Hats that will allow you to choose which hairstyles are affected? If so, then we could use your mod and just select the hairstyles that DSYH doesn't support, and it will work for those hairstyles only, correct?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kiame on February 10, 2018, 03:11:10 PM
The settings allow the user to select which hair to hide when hats are worn

(https://steamuserimages-a.akamaihd.net/ugc/847088735741231914/26BA2FF54F7E4F3454B5D7D315EC54227AB86F02/)

(This screenshot is for "Show Hair with Hats" mod)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Ruisuki on February 17, 2018, 05:12:18 AM
So i downloaded dont shave that hair without knowing that Killface's facial stuff also added the capability of hair with hats. Is it ok for me to uninstall DSYH mid game?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on February 17, 2018, 06:49:54 AM
Quote from: Ruisuki on February 17, 2018, 05:12:18 AM
So i downloaded dont shave that hair without knowing that Killface's facial stuff also added the capability of hair with hats. Is it ok for me to uninstall DSYH mid game?

I would think so, but always make a backup just in case! :)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tapeshoe on February 20, 2018, 10:36:21 AM
Hey I downloaded the GitHub update but I still have the hair sticking through the tops of hats like previously mentioned, is there something I can do to fix this?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kori on February 20, 2018, 10:42:39 AM
Quote from: Tapeshoe on February 20, 2018, 10:36:21 AM
Hey I downloaded the GitHub update but I still have the hair sticking through the tops of hats like previously mentioned, is there something I can do to fix this?

This happens to unsupported hairstyles. Do you use hairstyle mods that are not listed in the description?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tapeshoe on February 20, 2018, 10:45:55 AM
Quote from: Kori on February 20, 2018, 10:42:39 AM
Quote from: Tapeshoe on February 20, 2018, 10:36:21 AM
Hey I downloaded the GitHub update but I still have the hair sticking through the tops of hats like previously mentioned, is there something I can do to fix this?

This happens to unsupported hairstyles. Do you use hairstyle mods that are not listed in the description?

The only hairstyle mod I have is Rimsenal, however it does this with the vanilla hairstyles as well. 
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kori on February 20, 2018, 02:03:26 PM
Do you also use the Show Hair with Hats mod by Kiame? They are not compatible.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tapeshoe on February 20, 2018, 02:56:26 PM
No, this and Rimsenal are the only hair related mods I have.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kori on February 20, 2018, 03:00:56 PM
I'm out of ideas, sorry. :(
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tapeshoe on February 20, 2018, 03:13:02 PM
No worries, thanks anyway.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on February 20, 2018, 04:51:35 PM
Quote from: Tapeshoe on February 20, 2018, 10:36:21 AM
Hey I downloaded the GitHub update but I still have the hair sticking through the tops of hats like previously mentioned, is there something I can do to fix this?

Did you load an existing save after this and not re-equip any headgear?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tapeshoe on February 20, 2018, 07:41:17 PM
Quote from: NoImageAvailable on February 20, 2018, 04:51:35 PM
Quote from: Tapeshoe on February 20, 2018, 10:36:21 AM
Hey I downloaded the GitHub update but I still have the hair sticking through the tops of hats like previously mentioned, is there something I can do to fix this?

Did you load an existing save after this and not re-equip any headgear?

I tested it with a fresh colony.

Edit: changed fresh save to fresh colony.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on February 20, 2018, 10:27:50 PM
Something else is going on, because this mod hasn't had any other issues like this so far that I know of.

Have you tried running only this mod, and still having issues? Can you check the file contents of the mod directory to make sure nothing looks out of place? Did you click this link https://www.nexusmods.com/rimworld/download/1728/? and extract it to your Mods folder, and make sure to NOT overwrite any older folders (aka you checked and deleted any older/soon to be replaced versions?)?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tapeshoe on February 21, 2018, 08:47:31 AM
Quote from: Harry_Dicks on February 20, 2018, 10:27:50 PM
Something else is going on, because this mod hasn't had any other issues like this so far that I know of.

Have you tried running only this mod, and still having issues? Can you check the file contents of the mod directory to make sure nothing looks out of place? Did you click this link https://www.nexusmods.com/rimworld/download/1728/? and extract it to your Mods folder, and make sure to NOT overwrite any older folders (aka you checked and deleted any older/soon to be replaced versions?)?

Ayyy, it appears to be the Children and Pregnancy mod. Thank you.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on February 21, 2018, 10:54:50 AM
Ah yes. That also causes issues with Zombieland and Rim of Madness pawns (zombies and cosmic horrors, respectively).

I think it has something to do with baseHuman activating the 3 earlier lifestages and then it somehow messes up where the hair gets rendered on some pawns and the ones I mentioned from the mods above.

Hopefully the author, Thirite, can get this sorted out. Because I really want to use "Children and Pregnancy", along with "Children, School, and Learning". What I can only assume, from what little knowledge I have and having conversed with others vastly more knowledgeable than me, is that Children and Pregnancy doesn't have built it exceptions, or something like that, to stop itself from messing with something that other mods depend on the function properly. All of that is way beyond me, though ::)

I think it would be a lot of fun if you want to do a long game, and maybe say my new colony will only accept new colonists that are part of my family. Starting pawns could be a mother and father, with maybe a child or two, whatever ages. You could setup in the defs what ages you want each stage to occur at, as well as in the mod options what ages children can start going to school and/or teaching, working, restricted work skills, skill inheritance, etc.

I know the whole pregnancy thing isn't for everyone, but c'mon, that sounds like it can be pretty fun if you want that for a long term game. Combining the two mods means you get the awesome teacher and school parts from one mod, and then all of the life stages and proper pregnancies from the other.

These screenshots do make it look really nice.
(https://steamuserimages-a.akamaihd.net/ugc/869622780766283574/846819B840AADB4F1FDC72F81EC2684C748BFA4F/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(https://steamuserimages-a.akamaihd.net/ugc/869622780766636315/85A0FC3613805C573A87EAE66CD2AD9EF0781607/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(https://steamuserimages-a.akamaihd.net/ugc/869622780766284681/45BA322883055FBF7B864617FC944D38C699095E/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(https://steamuserimages-a.akamaihd.net/ugc/918040807623541818/5CF9C2CB713772D9041DBD828F5B0E6B2287A724/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(http://i.imgur.com/As1rRrK.png)

(http://i.imgur.com/Bh80R2u.png)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Ruisuki on February 21, 2018, 05:31:15 PM
Ive been meaning to try pregnancy but heard it had a slight incompatibility with Facial Stuff. Killface said it could be fixed but it'd have to be on the other modders end. Unless its been patched in the last year Harry
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Harry_Dicks on February 21, 2018, 05:44:32 PM
Quote from: Ruisuki on February 21, 2018, 05:31:15 PM
Ive been meaning to try pregnancy but heard it had a slight incompatibility with Facial Stuff. Killface said it could be fixed but it'd have to be on the other modders end. Unless its been patched in the last year Harry

It is on Thirite's end, you're correct.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Mufflamingo on February 21, 2018, 07:57:28 PM
Quote from: Harry_Dicks on February 21, 2018, 10:54:50 AM
Ah yes. That also causes issues with Zombieland and Rim of Madness pawns (zombies and cosmic horrors, respectively).

I think it has something to do with baseHuman activating the 3 earlier lifestages and then it somehow messes up where the hair gets rendered on some pawns and the ones I mentioned from the mods above.

Hopefully the author, Thirite, can get this sorted out. Because I really want to use "Children and Pregnancy", along with "Children, School, and Learning". What I can only assume, from what little knowledge I have and having conversed with others vastly more knowledgeable than me, is that Children and Pregnancy doesn't have built it exceptions, or something like that, to stop itself from messing with something that other mods depend on the function properly. All of that is way beyond me, though ::)

I think it would be a lot of fun if you want to do a long game, and maybe say my new colony will only accept new colonists that are part of my family. Starting pawns could be a mother and father, with maybe a child or two, whatever ages. You could setup in the defs what ages you want each stage to occur at, as well as in the mod options what ages children can start going to school and/or teaching, working, restricted work skills, skill inheritance, etc.

I know the whole pregnancy thing isn't for everyone, but c'mon, that sounds like it can be pretty fun if you want that for a long term game. Combining the two mods means you get the awesome teacher and school parts from one mod, and then all of the life stages and proper pregnancies from the other.

These screenshots do make it look really nice.
(https://steamuserimages-a.akamaihd.net/ugc/869622780766283574/846819B840AADB4F1FDC72F81EC2684C748BFA4F/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(https://steamuserimages-a.akamaihd.net/ugc/869622780766636315/85A0FC3613805C573A87EAE66CD2AD9EF0781607/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(https://steamuserimages-a.akamaihd.net/ugc/869622780766284681/45BA322883055FBF7B864617FC944D38C699095E/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(https://steamuserimages-a.akamaihd.net/ugc/918040807623541818/5CF9C2CB713772D9041DBD828F5B0E6B2287A724/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside%7C637%3A358&composite-to=*,*%7C637%3A358&background-color=black)

(http://i.imgur.com/As1rRrK.png)

(http://i.imgur.com/Bh80R2u.png)

YOU MONSTER. YOU WAKE THEM UP AT 5 AND MAKE THEM GO TO SCHOOL AT 6?!?!?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: KittenRaee on July 12, 2018, 05:22:29 PM
Ummmm... Any ETA on 1.0 update?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: sumghai on July 12, 2018, 06:15:05 PM
KittenRaee, Dark_Inquisitor has already stated in his mod index thread that he's going through a rough patch right now, and would appreciate everyone's patience:

Quote from: Dark_Inquisitor on June 29, 2018, 09:55:34 PM
Hello everyone.
This post will be a bit different from all the others. So if you're not specially interested in those mods or in the future plans, you may stop reading it right here.



I'll start with explaining why i was away for such a long time (over 3 months) and then say a word about future plans.
I've just successfully ended 2nd year (4th semester) of university - and for some reason, this semester finals were absolutely awful. I'm really glad i took that break - without it, well, I'd not pass this semester and lose a year of my life. Still it costed me over a month of sleepless nights and a tanker of energy drinks.
If that wasn't enough, my grandma (that i lived with for over 8 years) recently passed away. Needless to say, It was a really big hit for me. So yeah.

I really don't want anyone to think that I'm trying to get some pity or sympathy or whatever. I recently found out that 1.0 unstable was released, and I just wanted to leave this here for anyone interested in my stuff to let them know that i'm not fooling around.
As for future plans... I don't know when I'll start working on it all again. I hope I'll get myself together soon.
I know that most won't care, but... let your loved ones know that you're with them. Especially if they are running out of time.
~Dark
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kiame on July 12, 2018, 06:23:56 PM
I do not plan to take this mod over but i can see about at least getting it updated for 1.0

(no promises as i know this uses a transpiler which, beyond simple tasks, I'm clueless with)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on July 12, 2018, 08:15:39 PM
How about waiting for 1.0 to actually get a stable release before drawing premature conclusions?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kiame on July 12, 2018, 10:54:47 PM
Heh yep out of my wheel house

@Dark_Inquisitor
To make renaming the texutre files quick and easy take a look at this program. Just point it at the textures folder and it'll convert all the textures in all the sub-directories to be north/south/east.
https://ludeon.com/forums/index.php?topic=41935.msg412572#msg412572
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tsunamy on September 01, 2018, 08:42:31 AM
Really hoping this eventually make a comeback.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Mst on September 07, 2018, 05:52:24 PM
So am I
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: ultra4 on September 09, 2018, 08:11:53 PM
aesthetics mod, yet so vital (giev B19)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Dark_Inquisitor on September 09, 2018, 10:16:53 PM
Quote from: Tsunamy on September 01, 2018, 08:42:31 AM
Really hoping this eventually make a comeback.

It will, we are already working on it (...well, i'm just the texture guy, so yeah).
On the bright side, B19 version will support more mods.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: sumghai on September 10, 2018, 12:07:00 AM
Quote from: Dark_Inquisitor on September 09, 2018, 10:16:53 PM
It will, we are already working on it (...well, i'm just the texture guy, so yeah).
On the bright side, B19 version will support more mods.
Good to hear you're slowly easing back into thing - I can understand how difficult the past few months have been for you, seeing as I just went through something similar myself.

I may have previously mentioned something about compatibility with my RimNGE hair mod - to make things easier for you, I'm doing the UpperHead graphics replacements myself, and so far I've already done 2 out of 4 hairstyles. I'll PM you the assets when I'm done.

Just to clarify, if I do not provide anything for the FullHead graphics replacements, Don't Shave Your Head will just completely hide the hairstyle from the pawn if a full-headed helmet/mask is worn, correct?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Dark_Inquisitor on September 10, 2018, 07:21:33 AM
Quote from: sumghai on September 10, 2018, 12:07:00 AM
Good to hear you're slowly easing back into thing - I can understand how difficult the past few months have been for you, seeing as I just went through something similar myself.
Thank you! It 's really nice to hear that there are people who really understands how it's like...

Quote from: sumghai on September 10, 2018, 12:07:00 AM
Just to clarify, if I do not provide anything for the FullHead graphics replacements, Don't Shave Your Head will just completely hide the hairstyle from the pawn if a full-headed helmet/mask is worn, correct?
Yes, if I remember correctly, it'll work exactly like so!
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tsunamy on September 10, 2018, 09:27:43 AM
I hope to see 'My Cute Ear' supported, that's one of my favorites.
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: mvargus on September 10, 2018, 07:32:13 PM
is this one not available on Steam?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Bvlt on September 13, 2018, 11:40:06 AM
Any clue when the b19 version will be ready? And will it be compatible with savegames?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Ser Kitteh on September 25, 2018, 09:29:02 AM
Dear Inquisitor, could we expect a B19 update?
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Kiame on September 25, 2018, 12:28:59 PM
Until this gets a B19 update anyone who wants to see pawn hair can use the Show Hair mod

Ludeon (has download links): https://ludeon.com/forums/index.php?topic=33575.msg342365#msg342365

Steam: https://steamcommunity.com/sharedfiles/filedetails/?id=1180826364
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: sumghai on November 07, 2018, 06:09:50 PM
I've definitely noticed some recent (September 2018) development work happening in the B19 branch of the DSYH repo on GitHub, although the recompiled assembly doesn't seem to be functional just yet.

Here's to hoping an update comes out in the near future :)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on November 07, 2018, 06:33:12 PM
Well damn, I totally forgot about this mod. Probably should finish that 90% done update I've been sitting on for like 2 weeks

(I blame DarkInquisitor for not nagging me enough, it's all his fault)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Tsunamy on November 07, 2018, 08:18:10 PM
Quote from: NoImageAvailable on November 07, 2018, 06:33:12 PM
Well damn, I totally forgot about this mod. Probably should finish that 90% done update I've been sitting on for like 2 weeks

(I blame DarkInquisitor for not nagging me enough, it's all his fault)
Yes please!
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on November 07, 2018, 09:57:27 PM
1.0 Update brought to you by insomnia

https://github.com/NoImageAvailable/DontShaveYourHead/releases/tag/1.0.0
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: sumghai on November 08, 2018, 05:04:30 AM
Mucho, mucho gracias NoImageAvailable for the update!

And big thanks to DarkInquisitor for adding compatibility with my RimNGE hair mod:

(https://i.imgur.com/qzCTXAW.png)
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Draconomial on November 24, 2018, 07:00:53 PM
Face Stuff 1.0 also performs the same functions as this mod
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: NoImageAvailable on November 24, 2018, 07:24:31 PM
Quote from: Draconomial on November 24, 2018, 07:00:53 PM
Face Stuff 1.0 also performs the same functions as this mod

But this mod won't turn your pawns into mutants
Title: Re: [B18] Don't Shave Your Head! - v18.2
Post by: Deer87 on January 01, 2019, 08:30:21 AM
Quote from: NoImageAvailable on November 07, 2018, 09:57:27 PM
1.0 Update brought to you by insomnia

https://github.com/NoImageAvailable/DontShaveYourHead/releases/tag/1.0.0

Horray Horray what a wonderful day, for I can get the 1.0 mod :D

Btw, if you accept wishes. The Hair styles from Ancient Rim would be a really neat addon. https://ludeon.com/forums/index.php?topic=35161.90

Thanks for a great mod
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Vorpeseda on August 06, 2019, 10:44:51 PM
A friend of mine has asked me to look at possibly making some modded hairs compatible with this mod.

Looking at the guide, and checking the DSYH folders and original textures, I think I've figured out how to make it work.

One question I have, is when editing existing hairstyles into UpperHead and FullHead versions, was there something specific used for a template to make sure the hairs were cropped at the right position?
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: BlueTressym on August 07, 2019, 12:31:54 AM
Hi.  Thank you for making this mod; the 'No hair or clipped hair' problem was bugging me. 

I am having one issue with it, however, involving a mod called 'Gradient Hair' by Automatic.  When I have this mod active, the gradient stops showing.  According to Prep. C. and the Change Dresser, it's still there, as in the secondary colour is still selected and the button 'on', but only one colour shows, both on those screens and on the game screen. 

Is there any way this can be changed so that the secondary hair colour shows?  I don't know enough about how displaying things that can be various colours is done to know if this can be adjusted. 

I have a couple of pics of a character created with gradient hair and of the same character losing the gradient when this mod is added in.  Her hairstyle is from Xeva's Rimhair (I tested with vanilla styles as well).  The rest of it works fine; I tested to see how it looked with a hat and it looks great, just without the gradient. 

I tested without this mod but with 'Show Hair With Hats' and it shows the gradient fine but there's the 'clipped hair' - not a good look. 

I really hope it's possible to convince this mod and 'Gradient Hair' to play together nicely, as I love both. 

Please let me know if I can do anything more to help. 

(OK, so it won't let me attach all of them so I've put in links to shared files)

No Gradient (https://drive.google.com/file/d/169tftd7Yi04VcETbmzebCRq0ioDmplgJ/view?usp=sharing)

No Gradient Hatted (https://drive.google.com/file/d/1ocd2lkDbjb7mJzkcjQ9oqrjrjFEQKoZT/view?usp=sharing)

Using ShowHairWithHats (https://drive.google.com/file/d/1EY2SwhyUy3oik0ikmbD5JgEqfinvGPGB/view?usp=sharing)

[attachment deleted due to age]
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Vorpeseda on December 01, 2019, 12:10:12 PM
I've been doing some work on patches for this mod. I've done the Lord of the Rims hairs for Elves, Dwarves and Hobbits. I've attached that to this post.

For a bunch of other ones, (GloomyHair, Roppoi Hair, Lovely Hair Style, Lolidrop's Hairshop) I've been pretty much doing them as the need arrives. Because even just doing the UpperHead versions, that still ends up being quite a lot of files.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Kubouch on January 07, 2020, 12:32:18 PM
The hair in the top preview seems to be bugged with the latest GitHub release (https://github.com/NoImageAvailable/DontShaveYourHead/releases/tag/1.0.1):

(https://i.imgur.com/W9Ab2d8.png)

Using vanilla RimWorld 1.0.2408 with only DSYH enabled.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Aidan on January 21, 2020, 08:54:39 PM
I've been using "Show hair with hats" and I was bummed because it wasn't quite like I remembered it, turns out that I used to use this mod, not SHWH lmao. I hope some other hair mods get support because I really prefer this mod.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Shaunb451 on February 20, 2020, 10:34:01 PM
Hope this mod is still being worked on, it is truly a wonderful thing. Any updates would be greatly appreciated
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: rooki1 on February 21, 2020, 12:55:47 AM
This... this is beautiful...
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 08, 2020, 03:27:08 AM
updated this for 1.1 here:
https://github.com/gaberad/DontShaveYourHead/tree/v1.1

Seemed to work fine with my tests, but let me know if there are any issues with it.

Also working on an experimental build that edits the original hair texture via code, rather than having to supply textures for each hair style. Proof of concept works, I just have to fine tune the editing process.

If I can get it to work properly, it should mean we wouldn't have to create these extra textures for hair styles, and should be compatible with any hair mod/head gear. We'll see how it goes.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Ilya on March 10, 2020, 04:27:36 PM
Quote from: gaberad on March 08, 2020, 03:27:08 AM
updated this for 1.1 here:
https://github.com/gaberad/DontShaveYourHead/tree/v1.1

Seemed to work fine with my tests, but let me know if there are any issues with it.

Also working on an experimental build that edits the original hair texture via code, rather than having to supply textures for each hair style. Proof of concept works, I just have to fine tune the editing process.

If I can get it to work properly, it should mean we wouldn't have to create these extra textures for hair styles, and should be compatible with any hair mod/head gear. We'll see how it goes.
Thank you for updating this mod. I haven't tested it extensively, but I immediately spotted an issue with a few hairstyles.
https://i.imgur.com/BQ7DsLl.jpg
It doesn't work on either Logan or Wilcox.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 11, 2020, 02:12:00 AM
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.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Fakeaccount123 on March 12, 2020, 02:48:08 PM
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?
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 13, 2020, 01:25:52 AM
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.

Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: 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
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Fakeaccount123 on March 14, 2020, 11:06:12 AM
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
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Simstu on March 17, 2020, 05:04:14 PM
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?
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 19, 2020, 02:20:14 AM
yeah I'll take a look at 1.0 this weekend.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Simstu on March 19, 2020, 06:40:43 AM
Thanks, mate! *Tips cowboy hat*
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 21, 2020, 05:11:54 AM
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.

Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Simstu on March 22, 2020, 08:15:20 AM
Will try later in the day.

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

Hats off to ya!
;)
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: 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
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: BlueTressym on March 27, 2020, 10:05:37 PM
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. 
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 29, 2020, 02:23:33 AM
I'll do some tests and see if it's possible.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on March 30, 2020, 06:58:27 PM
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.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Ilya on April 03, 2020, 08:03:37 PM
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
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on April 05, 2020, 05:41:00 AM
Hmm, it looks like it's trying to load a hair texture that doesn't exist.

If they're still hanging around your colony (or you've got a save with them still there), can you open up debug mode and recruit them, then take off their helmet? I need to see what hairstyle it is underneath.

Otherwise, I'll look at making an update which logs some stuff so I can figure out what's going on.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on April 06, 2020, 04:59:33 AM
I've pushed out an update that's added some options/settings:

Use Fallback Texture: if you want to use the fallback textures or not

Log Fallback: logs when a fallback texture is used to the debug log


@Ilya can you update, turn on both options, then copy/paste the debug log messages (they should start with "DSYH"), as well as the name of the pawns with the unloaded texture?


https://github.com/gaberad/DontShaveYourHead/tree/fallback-texture
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Ilya on April 06, 2020, 09:38:17 PM
Sorry, but that save was already gone by the time you asked me to do these things (my colony died). I'll update and if I get this bug again I'll definitely post the log messages.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Tenshi~Akari on May 11, 2020, 09:55:38 PM
Quote from: gaberad on April 06, 2020, 04:59:33 AM
I've pushed out an update that's added some options/settings:

Use Fallback Texture: if you want to use the fallback textures or not

Log Fallback: logs when a fallback texture is used to the debug log


@Ilya can you update, turn on both options, then copy/paste the debug log messages (they should start with "DSYH"), as well as the name of the pawns with the unloaded texture?


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

Thanks for this... however, I'm running across an issue when accessing the options in general from the Mod Options menu, it'll come up, but the window will never close (whether it's hitting escape, the X, or the "close" button), and I'm forced to close the whole game out through Windows Task Manager.

This comes up when I do manage to hit ESC:


Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
  at DontShaveYourHead.Controller.WriteSettings () [0x00005] in <07c74471da224d13ae041b0628719093>:0
  at RimWorld.Dialog_VanillaModSettings.PreClose () [0x00016] in <16781bf8b2ce4f1e84cb63572631a10b>:0
  at (wrapper dynamic-method) Verse.WindowStack.DMD<DMD<TryRemove_Patch0>?-786688640::TryRemove_Patch0>(Verse.WindowStack,Verse.Window,bool)
  at (wrapper dynamic-method) Verse.Window.DMD<DMD<Close_Patch1>?582543872::Close_Patch1>(Verse.Window,bool)
  at Verse.Window.OnCancelKeyPressed () [0x00008] in <58bc5463bfe241aba9aceffaf347f4fd>:0
  at Verse.WindowStack.Notify_PressedCancel () [0x00056] in <58bc5463bfe241aba9aceffaf347f4fd>:0
  at Verse.WindowStack.HandleEventsHighPriority () [0x00042] in <58bc5463bfe241aba9aceffaf347f4fd>:0
  at (wrapper dynamic-method) Verse.UIRoot.DMD<DMD<UIRootOnGUI_Patch1>?1894367616::UIRootOnGUI_Patch1>(Verse.UIRoot)
  at Verse.UIRoot_Entry.UIRootOnGUI () [0x00000] in <58bc5463bfe241aba9aceffaf347f4fd>:0
  at Verse.Root.OnGUI () [0x0003d] in <58bc5463bfe241aba9aceffaf347f4fd>:0
Verse.Log:Error(String, Boolean)
Verse.Root:OnGUI()
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Naiyasfury on May 26, 2020, 04:19:01 PM
So I updated all the 1.1 non expansion hairs for personal use and I'd be interested in sharing if anyone wants them. Not sure what the proper way to go about sharing them is though. I've included a preview in case anyone was curious what they looked like.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: FosterKicks on June 04, 2020, 05:40:34 PM
Quote from: Naiyasfury on May 26, 2020, 04:19:01 PM
So I updated all the 1.1 non expansion hairs for personal use and I'd be interested in sharing if anyone wants them. Not sure what the proper way to go about sharing them is though. I've included a preview in case anyone was curious what they looked like.

If you could share them, that would be cool. You can upload them to google drive or some other file host.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Naiyasfury on June 06, 2020, 10:57:40 PM
Thanks, here's the updated textures. I was just wondering if I needed to make my own branch in the github repo. I'll just share the link here unless I hear different.
https://1drv.ms/u/s!Ar4Q-R5LrvrKjRXEYM8zDEXOc817?e=NP6VuQ

Put the contents inside the Don't Shave Your Head folder that's located in your Rimworld>Mods folder. The folder structure should be correct, but let me know if anything is funky. Enjoy <3

Edit: I should note that I made these to work with vanilla armor. I have no idea what they'll look like with modded helmets.

Edit2: I have updated this to better work with modded clothes/armor. You'll need to redownload the file. The above link now lead to the updated file.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on September 23, 2020, 05:25:22 AM
I'm in the process of updating this for 1.2, hopefully will have an update in the next couple of days.

@Naiyasfury, I can include your textures in the update, if you're ok with that?

@Tenshi~Akari, it was a while ago, but I see that error now. I'll try and figure out what's going on.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on September 26, 2020, 12:19:08 AM
1.2 update
https://github.com/gaberad/DontShaveYourHead

doesn't include Naiyasfury's hair, but I can put out another update later.

let me know if you run into any issues.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Alenerel on September 30, 2020, 03:42:43 PM
Quote from: gaberad on September 26, 2020, 12:19:08 AM
1.2 update
https://github.com/gaberad/DontShaveYourHead

doesn't include Naiyasfury's hair, but I can put out another update later.

let me know if you run into any issues.

I dont understand. Is your update lacking? Could you add all the remaining hairs?

Also I get this error:
https://snipboard.io/swMift.jpg
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on October 02, 2020, 07:55:10 PM
that error should be fixed now.

I'm not really playing rimworld anymore, so if I ever pick it up again I'll add Naiyasfury's hair in an update, but it's easy enough to add them manually yourself.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Alenerel on October 04, 2020, 09:47:24 AM
Quote from: gaberad on October 02, 2020, 07:55:10 PM
that error should be fixed now.

I'm not really playing rimworld anymore, so if I ever pick it up again I'll add Naiyasfury's hair in an update, but it's easy enough to add them manually yourself.

It work now. All I have to do is copy her hairs into yours, right? Or yours into hers?
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Tenshi~Akari on October 07, 2020, 09:07:22 AM
Just reporting in to say thanks again for the updates, gaberad. 

The unfortunate news I bring from on my end though: I seem to be having issues getting it to even work at all in 1.2... none of the hairs are showing up under any of the available hats, and I've even tried this on a barebones mod setup (Required mods like Harmony & HugsLib, Prepare Carefully, a random compatible hair mod with the proper subfolder/naming setup, a random apparel mod, and DSYH). Still having pawns lose their 'dos upon equipping hats and helmets, regardless of how they're tagged. Still no changes seen in either Prepare Carefully preview or on the actual map. Not sure what's going on if I'm the only one experiencing this...  :-\

Then again, if it makes any difference, I currently have the Royalty expansion enabled, so I'm not sure if that has much to do with it working or not.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Alenerel on October 08, 2020, 05:56:06 AM
Maybe it lacks some hairs. I directly copied Naiyasfury's hairs into gaberad's mod. Try that and see if it works.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Tenshi~Akari on October 08, 2020, 06:30:57 AM
Quote from: Alenerel on October 08, 2020, 05:56:06 AM
Maybe it lacks some hairs. I directly copied Naiyasfury's hairs into gaberad's mod. Try that and see if it works.

Trust me, I did that a while ago. I have all the files sub-foldered and named accordingly for it to work for all the hair mods I've got activated so far. DSYH was working fine prior to the most recent 1.2 update a couple of weeks ago, but now it's just not showing the modified hairs at all under hats. I'm still trying to figure out what got busted on my end if it's working fine for everybody else.  :(
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Alenerel on October 08, 2020, 02:19:09 PM
I did not rename anything, just copied one's hairs into the other's hairs and it just works
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Tenshi~Akari on October 08, 2020, 09:05:58 PM
When I mention the renaming, I'm talking about the texture file names in the subfolders where the edited hairs go in. ("UpperHead" & "FullHead" in order for the mod to draw those hairs specifically when headgear items tagged accordingly are equipped.)

I'm beginning to think it might have to do with Harmony references... I have the most recent available version of Harmony enabled on my modlist now (July 31st 2020 update), so that might be my problem? I don't know if DSYH references the old version still or not, but I'm realizing now that's really one of the main things that has changed in even my "barebones" setup test...
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Naiyasfury on January 11, 2021, 07:57:56 PM
@gaberad, You can go ahead and add my updates into the main download file.

I've updated a few textures I found problems with. I have also included compatibility for the Vanilla Hair Expanded (https://steamcommunity.com/sharedfiles/filedetails/?id=1888705256) mod. I've included a preview pic with hairs from VHE so you can see what they look like. Let me know if anything is weird. You can always add the files manually yourself. Here's the new link: https://1drv.ms/u/s!Ar4Q-R5LrvrKjl9hnthrsLOFAgUj

@gaberad, I'm also getting an error w/ the newest update ( https://pastebin.com/mSnXWyX3 ) . It seems the game doesn't like one of the characters used in the LoadFolders.xml file. I'm not sure if I can ignore this or not. I compared the file to some of my other mods' loadfolders.xml files and in yours I removed the stuff that looked like it was commented. For example I removed the <<<<<<HEAD line, and now I've got no error and the mod seems to work just fine. Hopefully I didn't break my save game XD

~Sorry for the late reply I have a lot going on irl lol
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on January 16, 2021, 07:02:54 AM
I just checked and those "<<<<HEAD" lines are git merge markings, something must have messed up when I merged last time. I'll look through and clean up the files. It shouldn't screw anything up with your save file.

I'll look into the other issues from "recent" posts. I'll update everything (harmony etc) and see if it's still working on my end.

I might actually see if Kiame wants to try and merge this into their 'Show Hair with Hats' mod. Like I mentioned last time, I'm not really playing rimworld anymore, so it might be better if someone more active looks after this mod.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on January 16, 2021, 05:17:03 PM
@Naiyasfury
Ah ok I see what happened. There was a git merge issue last time, and I uploaded a fixed file, but didn't create a new release. So the release you downloaded was still referencing the old file, and why you had the corrupted LoadFolders.xml file.

That won't effect your save file. All the LoadFolders.xml file does is tell the mod where to look for certain files. So yeah, what you did by deleting the <<<HEAD line was the correct fix.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Naiyasfury on January 17, 2021, 12:52:55 AM
Sweet, thanks so much!
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: gaberad on January 17, 2021, 03:24:55 AM
I've uploaded a new version: 1.2.1 https://github.com/gaberad/DontShaveYourHead/releases/latest

This includes Naiyasfury's textures (thanks!), and I decided I'd make some minor changes to the code while I was at it.

It worked as expected in my limited testing, but as always let me know if you run into any issues.

Just a reminder to check the mod settings and make sure that Use Fallback Texture is turned on. Otherwise, if the hair doesn't have a custom texture, that hair style will just default back to how rimworld normally works.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Madame Hardy on February 24, 2021, 05:22:49 PM
The first post still links to the old github repository, NoImageAvailable/DontShaveYourHead .  Similarly, the Nexusmods link is to the first release.  Is it possible for you to change the github link to https://github.com/gaberad/DontShaveYourHead/releases , so that it always shows the latest release first?

Thank you, and thank you for the mod.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Flimflamshabam on April 13, 2021, 01:00:06 PM
This update doesn't seem to be working for me, I go into Prepare carefully and give a pawn a hat and cycle through all the hairs and they're still bald.
Quote from: gaberad on January 17, 2021, 03:24:55 AM
I've uploaded a new version: 1.2.1 https://github.com/gaberad/DontShaveYourHead/releases/latest

This includes Naiyasfury's textures (thanks!), and I decided I'd make some minor changes to the code while I was at it.

It worked as expected in my limited testing, but as always let me know if you run into any issues.

Just a reminder to check the mod settings and make sure that Use Fallback Texture is turned on. Otherwise, if the hair doesn't have a custom texture, that hair style will just default back to how rimworld normally works.

Nvm just found the settings thing, sorry.  :o
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: BerserkOlaf on April 19, 2021, 04:09:17 AM
I like this mod very much. It's an elegant solution, and unlike Show Hair With Hats, it's working well even with mods that rescale pawns (so children mods, for example).

I have a question though. Let's say I'd want to try making new replacement textures for a hair mod that is not supported yet. Is there a template that I can use with the right bounds for all the textures, so I am sure they align with hats and look about right? Should I just use one of the base game head texture as a guide? (like the [gender]_average_normal_ ones?)
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Kiborgs on May 21, 2021, 11:05:41 AM
Sadly, all hats that covers any of Combat Extended head's layers are invisible with this mod. Even if hat cover both the vanilla layer (outer) + CE additional head layer (like middle head or strapped) hat still does not render on pawn.  Though, headgear that only cover outer works fine.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: qux on July 22, 2021, 06:31:22 PM
Hi ! there is an 1.3 version please ?
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Kiame on July 22, 2021, 09:31:39 PM
Quote from: BerserkOlaf on April 19, 2021, 04:09:17 AM
I like this mod very much. It's an elegant solution, and unlike Show Hair With Hats, it's working well even with mods that rescale pawns (so children mods, for example).

I have a question though. Let's say I'd want to try making new replacement textures for a hair mod that is not supported yet. Is there a template that I can use with the right bounds for all the textures, so I am sure they align with hats and look about right? Should I just use one of the base game head texture as a guide? (like the [gender]_average_normal_ ones?)

Show hair does correctly scale and has for a while (year+). I'll verify that children still work.
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: Kiame on August 10, 2021, 09:17:26 PM
"Show Hair" now includes "Don't Shave Your Head"

Steam: https://steamcommunity.com/sharedfiles/filedetails/?id=1180826364&tscn=1628633983
Forum Post: https://ludeon.com/forums/index.php?topic=33575.msg342365#msg342365
Direct Download (1.3): https://github.com/KiameV/rimworld-showhair/releases/download/1.3/ShowHair.zip
Title: Re: [1.0] Don't Shave Your Head! - v1.0.0
Post by: ultra4 on August 11, 2021, 02:24:30 PM
 ;D that's amazing. thank you so much