RimWorld

RimWorld

Hair Modding Plus (continued)
104 Comments
RutraNickers Aug 13 @ 5:06am 
There is a bug where the back hair renders above the eye layer when together with facial animations. It only happens with the HeadNormal and it only happens in menus like CharacterEditor and in the portrait (I'm using CustomProtraits), bot not in-game for some reason. I've placed the only red error log I think is relevant in the Discussions section of this mod.
RutraNickers Aug 13 @ 4:56am 
@WJSabey that is not a bug, that's how the vanilla game renders certain apparel since 1.5. There's plenty of mods in the workshop to solve this though. I recommend Tweaks Galore.
Mythophile Jul 31 @ 3:44pm 
Might be an issue with Roo's Royality "Evil" hair. The long one doesn't pick up color on the two long side strands of hair.
WJSabey Jul 26 @ 4:51am 
Does this fix the issue where pawns facing north have their jackets render on top of their hair? If not can anyone recommend a mod that does?
Archilyte Jun 15 @ 4:36am 
hey! idk if you're updating this still, but if u are, may i suggest hiding the back hair layer when pawn is sleeping on a bed?
sumghai Jun 14 @ 8:19pm 
@Шашлычник ;р - Fantastic, thanks!
Paterfamilias Jun 14 @ 6:19pm 
Thank you so much for the update!
Шашлычник ;р  [author] Jun 14 @ 2:37pm 
1.6 ready
InvitedRhino683 Apr 20 @ 6:50pm 
is this compatible with character / pawn editor ?
Шашлычник ;р  [author] Feb 26 @ 7:42pm 
Will think about it
Шашлычник ;р  [author] Dec 22, 2024 @ 2:16am 
Everything works correct for me.
Make sure that HAR loaded before this mod
keko bleibt keko Dec 21, 2024 @ 11:22am 
The mod does not function correctly when HAR is loaded, the hairs from Roo's HD Royalty Hairstyles with colorable extras are just transparent, with only the outlines visible.
Tested with only this, the hair mod and HAR loaded. Removing HAR makes everything work again.
Deebs Aug 24, 2024 @ 2:15pm 
That makes complete sense, thank you.
Шашлычник ;р  [author] Aug 24, 2024 @ 2:04pm 
There's no auto-flip cuz there may be no back layer for the west or east.
Deebs Aug 24, 2024 @ 11:49am 
Something I've noticed while working with this mod- 'back' files won't automatically flip, so if you have hair_east_back but no hair_west_back, it won't automatically flip the east to west.

I'm also not certain how Rimworld layers pawn images, but I've noticed that the head on north view overlaps the body- this would make sense for the hair, but for the head graphic itself, I'm unsure. I wonder if the addition of a 'top' layer can help with that, where the head/hair graphic can be placed in the usual layer order and then a 'top' layer can go over back items as needed/expected.

Speaking of which, I've been naming the hypothetical top overlapping layers for hair _top for now, for whenever that feature may be added. I again deeply appreciate that you're considering adding that to this mod.

Otherwise, this mod has been a joy to work with and it really makes hairstyles look SO much more alive! Thank you so much for upkeeping and keeping this mod alive!
Deebs Aug 22, 2024 @ 1:17pm 
@Шашлычник ;р I'm working on some new/default replacement hairs and I'd love if that feature was part of it!

What I'd like is if the 'top' layer could cover biotec ear pieces, so they could cover ears entirely or just show partial. I think it would open up a lot of options for some lovely hair styles.

Thank you so much for be willing to add that feature, I'm sure it'll be helpful to more than just me :)
Шашлычник ;р  [author] Aug 22, 2024 @ 1:17am 
@Deebs, I can do that. Is it needed for your mod?
Deebs Aug 21, 2024 @ 9:41pm 
Love this mod and it's concept- is it possible for a future version of this mod to have an additional layer? A 'top' layer that goes above most other objects, so hairstyles can have parts that go over biotec facial pieces, like pig ears?

Again, thank you so much for this mod, it's wonderful.
Chibi Shinku Apr 22, 2024 @ 12:23pm 
I had to unsub and resub a few times, and it's all good now. Thanks yet again :steamhappy:
Шашлычник ;р  [author] Apr 20, 2024 @ 5:20am 
:luv:
Allodiz Apr 20, 2024 @ 4:47am 
Люблю тебя шашлычник
Шашлычник ;р  [author] Apr 20, 2024 @ 12:27am 
@Chibi Shinku try to re-sub mod
Chibi Shinku Apr 19, 2024 @ 11:06pm 
I gave it a try again and it still drops to 1 FPS. Maybe it's just my PC now.
Шашлычник ;р  [author] Apr 19, 2024 @ 1:40pm 
@Chibi Shinku, thanks for report. I fixed it, now must be fine
Chibi Shinku Apr 19, 2024 @ 8:19am 
Hello, just reporting a little something. With this mod on, using the Styling Station makes me drop to 1 FPS. Disabling this fixes it. Now I'm not sure if it's this mod specifically or the amount of details this mod unlocks for the other hair mods causes it, but I'm just reporting

Thanks again :steamthumbsup:
sumghai Apr 19, 2024 @ 2:21am 
@Rain - @Шашлычник ;р has mentioned that modders need to now specify <overrideShaderTypeDef>CutoutComplex</overrideShaderTypeDef> to hairstyles with fixed-color accessories, so I suspect Roo will need to update their hair mod on their end.
Rain Apr 19, 2024 @ 2:08am 
with Roo's Royalty hair pack you support the accessories get dyed the same colour as the hair, not sure if this is an error on your end of thiers but I figured i'd post on post mods an maybe if you have the time one of you will fix the error whoevers side it's on :)
sumghai Apr 16, 2024 @ 11:25pm 
@Шашлычник ;р - Much obliged! Everything works beautifully now :)
Шашлычник ;р  [author] Apr 16, 2024 @ 6:06am 
@sumghai, now must be good, check again please and thanks for feedback.
As I said before mod is made from scratch and your feedback is the best way to improve it. Thanks
Шашлычник ;р  [author] Apr 16, 2024 @ 5:26am 
@sumghai, thanks for explanation, I'll try fix it today
sumghai Apr 16, 2024 @ 1:37am 
@Шашлычник ;р - Thank you for the fixes so far!

Regarding back layer scaling, I apologize for being unclear, but my issue is not related to development stages, but normal vs narrow heads:

https://i.ibb.co/RgK2G3P/hair-modding-plus-scaling-issue.png

Basically, my hair layers edges are designed to line up precisely.

The screenshot above shows two adult pawns. The one on the left has a normal head, so the front and back layers have the same horizontal scale, and thus the edges line up properly.

However, the one on the right has a narrow/pointy head, so the front layer gets squashed slightly to match the head, while the back layer's horizontal scale remains unchanged, resulting in the edges not lining up.

My save file: https://gist.github.com/sumghai/0939ca39d4e4b855cc8966dde950b048/archive/091860ebe0e61f7c2aecef8047d1ef616e42b25b.zip

(Mods: Harmony, Core, Ideology, Camera+, Hair Modding Plus (continued), Hamefura v1.3.0)
Persomnus Apr 15, 2024 @ 2:37pm 
it works for me now, thank you for all the work you've put in to make this and keep it going :)
Шашлычник ;р  [author] Apr 15, 2024 @ 7:18am 
Also I added naming backward compatibility for 1.5, so names like a demo_east_back.png should be fine too.
Styling station now shows icons with back hair (but without mask)
Шашлычник ;р  [author] Apr 15, 2024 @ 6:55am 
@sumghai, @Insane Hexe I updated mod, now must be fine.
Can't reproduce problems with scale - back layer scales with DevelopmentalStage [imgur.com], the same for render tree debuger.
Шашлычник ;р  [author] Apr 14, 2024 @ 11:36pm 
@sumghai, thanks for feedback. I'll fix it soon
sumghai Apr 14, 2024 @ 11:14pm 
@Шашлычник ;р - Okay, I re-downloaded the latest version of Hair Modding Plus from Steam and I'm no longer seeing that error.

That being said, I've noticed a couple issues, as per the screenshot https://i.ibb.co/bKkTLds/Screenshot-2024-04-15-113720.png

- The back layer of hair is not scaling with head size/width compared with the front layer, resulting in rendering discrepancies (green arrow)

- The back layer of hair is rendering under the head as intended, but is showing up between skin layer apparel and the naked body, resulting in what looks like a neck full of head hair (red arrow)

Also, it would be nice for the styling station from the Ideology DLC to also render the back layer of hair in the individual hairstyle previews, to make it easier to identify hairstyles using Hair Modding Plus.
Шашлычник ;р  [author] Apr 14, 2024 @ 2:27pm 
@sumghai, unfortunately I can't reproduce error with GreasySwoop (probably I fixed it with previous update, try to re-sub mod).
I changed naming for 1.4 - demo_south_back.png and demo_back_south.png will be valid (last one is preferable), but for 1.5 demo_back_south.png is valid only (maybe later I'll make them both valid for 1.5).

@Insane Hexe, thanks, will check it tomorrow.
May I ask you send me GitHub link to your mod (dm or comment here)? It's not that important, but it can help fix problems faster.
sumghai Apr 13, 2024 @ 4:58pm 
@Шашлычник ;р - Alright, found a bug in your most recent 1.5 compatibility update, with only the base game and Hair Modding Plus.

Every single pawn is loading with the following errors:

Could not load UnityEngine.Texture2D at Things/Pawn/Humanlike/Hairs/GreasySwoop_back_south in any active mod or in base resources.
Could not load UnityEngine.Texture2D at Things/Pawn/Humanlike/Hairs/GreasySwoop_back_north in any active mod or in base resources.

GreasySwoop is a vanilla / base game hair style that does not include any back layer graphics, so it looks like your code is looking for back layers that don't exist in most hairstyles.
sumghai Apr 13, 2024 @ 4:43pm 
@Шашлычник ;р - As per your recent recommendation, I will be updating my hair mods to be compatible with Hair Modding Plus 1.5.

You mentioned that the back hair layers now have a new file naming scheme for 1.5, and while I personally will only be updating my mods for 1.5 going forward, I'm concerned that renaming the files may break compatibility for players still on RW 1.4.

Do you plan to backport the filename changes to the RW 1.4 version of Hair Modding Plus?
Chibi Shinku Apr 13, 2024 @ 3:05pm 
Thank you for the updates, and the instructions on what to add on the xml for the masks :steamhappy:
Insane Hexe Apr 13, 2024 @ 11:40am 
a personal one i made. i adjusted the backhair for the new names. it seems you need masks for all directions now. and it applies the "back" hair to all directions
Шашлычник ;р  [author] Apr 13, 2024 @ 8:16am 
@Insane Hexe, what hair mod are you using?
Insane Hexe Apr 13, 2024 @ 8:02am 
back hair currently renders infront of body but behind clothes. it also renders the backhair when looking east/west
Шашлычник ;р  [author] Apr 13, 2024 @ 4:49am 
@Katalliaan, removed it but forgot to push :steamsad:
Now must be good
Katalliaan Apr 13, 2024 @ 4:33am 
You've left some debug logging in Patch_BackwardCompatibility. With just vanilla+DLCs, it's putting hundreds of lines into the logs.
Шашлычник ;р  [author] Apr 12, 2024 @ 2:25pm 
Note for modders:
if mask for your hair doesn't works, add <overrideShaderTypeDef>CutoutComplex</overrideShaderTypeDef> to your HairDef
Шашлычник ;р  [author] Apr 12, 2024 @ 2:05pm 
First patch for 1.5 is ready (it's done from a scratch).
Back layers now must named as YourHairName _back _direction.png
e.g. :
for
HairName_south.png
there are
HairName_southm.png (optional mask)
HairName_back_south.png (optional back layer)
HairName_back_southm.png (optional mask for back layer)

instead of old
HairName_south_back.png (optional back layer)
HairName_south_backm.png (optional mask for back layer)

Maybe later I do backward compatibility.
If you need any custom functionality for this framework feel free to aks me
Шашлычник ;р  [author] Apr 12, 2024 @ 3:37am 
I guess Rimworld developers won't do it.
Well, I update this mod asap.
Шашлычник ;р  [author] Apr 12, 2024 @ 1:50am 
Well, I thought Tynan made hair render system extensible like genes :frosted:. He forgor?
I ask them, if they don't, I'll do it myself (in this case the mod will be made from scratch)
Alex Apr 11, 2024 @ 11:38pm 
Is there a xml tutorial for making back hair, I am the author of the Bocchi hair, and I am too lazy to use dnspy to read the pawn render code