[1.3] [KV] Show Hair with Hats (AlienRaces now supported) [ModSync RW]

Started by Kiame, June 13, 2017, 03:20:24 AM

Previous topic - Next topic

Kiame

Show hair for all hats.

Select which hats do hide hair from Mod Settings.

Hide All Hats from Mod Settings

Will work with mods that add new hats

Supports current saves and can be removed without breaking saves

Direct Download:
1.3

A17
B18
B19
1.0
1.2

Use ModSync RW to know if/when there's an update


Steam

GitHub: https://github.com/KiameV/rimworld-showhair

When changing whether a hat hides hair, if a pawn is wearing that hat their portrait will not update until they change something (like remove/put back on the hat).

Works with these mods:
Apparello - https://ludeon.com/forums/index.php?topic=5085.0
Huminoid Alien Races

Might work?
Children and Pregnancy - uses Detours

Translators:
- Proxyer - Japanese

Code Support:
- LockdownX7

Like my mods? Consider supporting me!





Thanks:
Thanks to "YouAllJilao" for creating "Headgear Frame" and "Vaniat" for supporting it. That mod gave me the idea to do this mod.
Thank you Diana Winters for the Orassans which is the 'cat' pawn in the screen shot.
Thank you NoImageAvailable and Dark_Inquisitor for the Don't Shave Your Head code

SpaceDorf

Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

koni


Shinzy

Ooh! this is really neat!
and it works somewhat fantastic with my Apparello too, until you start to equip more than one apparel on your head ;D


See the moment I equip the hat and scarf it'll only show the latest one anymore
just letting you know incase this is something you're able to fix without too much hassle! ;D

SpaceDorf



if (ap.def.apparel.LastLayer == ApparelLayer.Overhead)
                        {
                            drawHair = !SettingsController.HatsThatHideHair.Contains(ap.def);
                            if (drawHair)
                                hatLoc.y += 0.0328125022f;
                 //               break; ( remove this line )
}
}
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

Kiame

Quote from: SpaceDorf on June 13, 2017, 09:00:31 AM


if (ap.def.apparel.LastLayer == ApparelLayer.Overhead)
                        {
                            drawHair = !SettingsController.HatsThatHideHair.Contains(ap.def);
                            if (drawHair)
                                hatLoc.y += 0.0328125022f;
                 //               break; ( remove this line )
}
}


And here i was trying to be a little more efficient with code execution  :P

I'll remove the breaks from the 2 other loops too tonight and get another version up. I'll post to this thread again when it's up

Kiame

#6
Quote from: koni on June 13, 2017, 08:00:50 AM
Nice. Is it tested with Alien Races?

I have not tested it with alien races. Please let me know if there's any odd behaviors with it and I'll get alien races downloaded and test it out.

This mod does not modify anything in the saves to it's safe to add/remove whenever.

Kiame

Just uploaded a fix for the "multiple apparel items on head not showing up issue"

Please let me know if it works now!

Both steam and direct download have been updated

Shinzy

Quote from: Kiame on June 13, 2017, 04:05:57 PM
Just uploaded a fix for the "multiple apparel items on head not showing up issue"

Please let me know if it works now!

Both steam and direct download have been updated

it's working like a charm! now if you could also get the hair not being shown toggled automatically for full-head helmets it would require almost no finetuning of your own in the options ;D

but this is really well made!
Thank!

Rimrue

Does this work with the Children mod? The other similar mod I tried (HeadFrame?) drew double hats on all the kids. :/

SpaceDorf

Quote from: Kiame on June 13, 2017, 03:37:21 PM
Quote from: SpaceDorf on June 13, 2017, 09:00:31 AM


if (ap.def.apparel.LastLayer == ApparelLayer.Overhead)
                        {
                            drawHair = !SettingsController.HatsThatHideHair.Contains(ap.def);
                            if (drawHair)
                                hatLoc.y += 0.0328125022f;
                 //               break; ( remove this line )
}
}


And here i was trying to be a little more efficient with code execution  :P

I'll remove the breaks from the 2 other loops too tonight and get another version up. I'll post to this thread again when it's up

Well you where .. If Pawns would only use one Headgear
Blame Shinzy !
Maxim 1   : Pillage, then burn
Maxim 37 : There is no overkill. There is only open fire and reload.
Rule 34 of Rimworld :There is a mod for that.
Avatar Made by Chickenplucker

Hadley

#11
Somehow I can't get it to work. Its last in my Loadorder but it does not work no matter what Helm I try, no matter if modded or vanilla. Is it not compatible with modded Hair?

€dit: Apparently its the Child and Pregnancy Mod ._.

Kiame

#12
Quote from: Hadley on June 14, 2017, 03:15:41 AM
Somehow I can't get it to work. Its last in my Loadorder but it does not work no matter what Helm I try, no matter if modded or vanilla. Is it not compatible with modded Hair?

€dit: Apparently its the Child and Pregnancy Mod ._.

Looks like it's because Child/Preg mod detours PawnRenderer.RenderPawnInternal

The author of that mod does include Harmony in their mod but they're in no way using it. Instead they're using detours which will prevent any other mods from working. So sadly this mod cannot work with that mod

Kiame

Update:
-Translation support (the labels in Mod Settings)
-Hide All Hats option in Mod Settings

delheit

Stean Page and Git Hug...

On purpose or typo?