Ludeon Forums

Ludeon Forums

  • May 22, 2018, 01:46:23 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: [B18] [KV] Show Hair with Hats (AlienRaces now supported) [ModSync]  (Read 15048 times)

Kiame

  • Colonist
  • ***
  • Posts: 636
  • Refugee
    • View Profile

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:
A17
A18 (AlienRaces Supported)

Steam Page:
A17
A18 (AlienRaces Supported)

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


Like my mods? Consider supporting me!





Latest Update:
Nov 1, 2017
-(A18) Adding compatibility with Humanoid Alien Framework 2.0

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.


« Last Edit: December 03, 2017, 07:51:29 PM by Kiame »
Logged

SpaceDorf

  • Transcendent
  • *****
  • Posts: 4024
  • Secretly Captain Obvious
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #1 on: June 13, 2017, 07:05:56 AM »

Thank you, Kiame.
Logged
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

  • Colonist
  • ***
  • Posts: 121
  • Legionary
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #2 on: June 13, 2017, 08:00:50 AM »

Nice. Is it tested with Alien Races?
Logged

Shinzy

  • Battering ram
  • Global Moderator
  • Transcendent
  • ****
  • Posts: 2986
  • Ramming speeed!
    • View Profile
    • My mods, all of them!
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #3 on: June 13, 2017, 08:44:06 AM »

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
Logged

SpaceDorf

  • Transcendent
  • *****
  • Posts: 4024
  • Secretly Captain Obvious
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #4 on: June 13, 2017, 09:00:31 AM »


Code: [Select]

if (ap.def.apparel.LastLayer == ApparelLayer.Overhead)
                        {
                            drawHair = !SettingsController.HatsThatHideHair.Contains(ap.def);
                            if (drawHair)
                                hatLoc.y += 0.0328125022f;
                 //               break; ( remove this line )
}
}
Logged
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

  • Colonist
  • ***
  • Posts: 636
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #5 on: June 13, 2017, 03:37:21 PM »


Code: [Select]

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
Logged

Kiame

  • Colonist
  • ***
  • Posts: 636
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #6 on: June 13, 2017, 03:38:08 PM »

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.
« Last Edit: June 13, 2017, 03:39:55 PM by Kiame »
Logged

Kiame

  • Colonist
  • ***
  • Posts: 636
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #7 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
Logged

Shinzy

  • Battering ram
  • Global Moderator
  • Transcendent
  • ****
  • Posts: 2986
  • Ramming speeed!
    • View Profile
    • My mods, all of them!
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #8 on: June 13, 2017, 08:25:21 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!
Logged

Rimrue

  • Colonist
  • ***
  • Posts: 343
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #9 on: June 13, 2017, 10:35:36 PM »

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

SpaceDorf

  • Transcendent
  • *****
  • Posts: 4024
  • Secretly Captain Obvious
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #10 on: June 14, 2017, 02:38:12 AM »


Code: [Select]

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 !
Logged
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

  • Muffalo
  • *
  • Posts: 18
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #11 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 ._.
« Last Edit: June 14, 2017, 03:28:12 AM by Hadley »
Logged

Kiame

  • Colonist
  • ***
  • Posts: 636
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #12 on: June 14, 2017, 12:44:10 PM »

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
« Last Edit: June 14, 2017, 12:50:38 PM by Kiame »
Logged

Kiame

  • Colonist
  • ***
  • Posts: 636
  • Refugee
    • View Profile
Re: [A17] Show Hair with Per-Hat Toggle
« Reply #13 on: June 14, 2017, 11:13:38 PM »

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

delheit

  • Drifter
  • **
  • Posts: 50
  • Refugee
    • View Profile
Re: [A17] Show Hair with Hats or Hide All Hats
« Reply #14 on: June 15, 2017, 01:27:41 AM »

Stean Page and Git Hug...

On purpose or typo?
Logged
Pages: [1] 2 3