Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 20th Nov 2022 at 8:51 PM
Creating new hair bins?
Hi all! I'm relatively new to modding, but I've been slowly working on adding in new genetic hair colors to my game through simPE. As it is, I have all of the hairs of each new color in the custom bin, but since the number of hairs I'm working with is pretty large I'm trying to see if there's a way of giving them their own bins, like custom eye colors. Ideally it would look something like this picture below:



Is something like this possible, perhaps through modifying the properties of the hairtone file?

Any advice is appreciated!
Screenshots
Test Subject
Original Poster
#2 Old 27th Feb 2025 at 12:49 AM
It's been a few years since I originally made this post, but I wanted to post a few updates of stuff I've learned since I still think about this now and then:
  • The buttons for the existing four hair colors and custom bin (and dyed hair bin if you use the mod for it) all have a unique property called IGZWinBtn id, which increases from 00008800 for black hair to 00008805 for the dyed hair. Other than that, the only properties that change for these buttons are the obvious ones (icon, hairtone, button location and name).
  • These button ids are the same for all hair color selection menus (including uni and the mirror)
  • If i just copy one of these blocks of code to make a new button and use a new button id like 00008806, this creates a fake button that shows up and is even clickable, but doesn't link to anything. Oddly enough, the hairtone I link to the button will actually disappear from the custom bin, making it seem as though the button should be creating a bin for it, but no such bin actually exists essentially making that hair tone inaccessible.
  • According to the SimsWiki (https://simswiki.info/wiki.php?title=UI) these button IDs correspond to some function in the .exe file (which I cannot edit, I tried reading it by converting the binary to hex but even that was only 10% readable at best). The question though is, if I can somehow manage to parse out the sections that define how these buttons are used, is it possible to make a plugin that essentially makes room for these bins to exist?
I still don't have the solution to the problem, but my main avenue is trying to figure out where in the .exe this is handled and then trying to figure out if that can somehow be changed in a plugin. Since I made this post, I went through and made a bunch of recolors of all the maxis hairs where I tried to make them act as closely to the four main ones as I could (they even work with uniforms!), but a major thorn in my side has been that all these hairstyles in the custom bin sharing properties with the main four causes issues when you try to select a custom color in the mirror (plus it also means the custom bin is huge and I get pink soup from it sometimes). So my hope is that someday I'll work this out to make all these recolors easier to use.
Lab Assistant
#3 Old 5th Apr 2025 at 10:10 AM
Quote: Originally posted by terenetwo
It's been a few years since I originally made this post, but I wanted to post a few updates of stuff I've learned since I still think about this now and then:
  • The buttons for the existing four hair colors and custom bin (and dyed hair bin if you use the mod for it) all have a unique property called IGZWinBtn id, which increases from 00008800 for black hair to 00008805 for the dyed hair. Other than that, the only properties that change for these buttons are the obvious ones (icon, hairtone, button location and name).
  • These button ids are the same for all hair color selection menus (including uni and the mirror)
  • If i just copy one of these blocks of code to make a new button and use a new button id like 00008806, this creates a fake button that shows up and is even clickable, but doesn't link to anything. Oddly enough, the hairtone I link to the button will actually disappear from the custom bin, making it seem as though the button should be creating a bin for it, but no such bin actually exists essentially making that hair tone inaccessible.
  • According to the SimsWiki (https://simswiki.info/wiki.php?title=UI) these button IDs correspond to some function in the .exe file (which I cannot edit, I tried reading it by converting the binary to hex but even that was only 10% readable at best). The question though is, if I can somehow manage to parse out the sections that define how these buttons are used, is it possible to make a plugin that essentially makes room for these bins to exist?
I still don't have the solution to the problem, but my main avenue is trying to figure out where in the .exe this is handled and then trying to figure out if that can somehow be changed in a plugin. Since I made this post, I went through and made a bunch of recolors of all the maxis hairs where I tried to make them act as closely to the four main ones as I could (they even work with uniforms!), but a major thorn in my side has been that all these hairstyles in the custom bin sharing properties with the main four causes issues when you try to select a custom color in the mirror (plus it also means the custom bin is huge and I get pink soup from it sometimes). So my hope is that someday I'll work this out to make all these recolors easier to use.


I know it's been like a long long time since you've made this post, but you should probably ask lazy duchess if this is possible. iirc, she made changes to the cas ui, allowing sims to be able to use tops and bottoms on other categories.
Back to top