@Wishonmeh05 Ok, so I went and hunted it down and took a look at the DATA file for the trait before being opened in sims studio. Had a hunch sims studio may have read it wonky. I think DATA files that were generated by a special program, like one of Zerbu's earlier tools, may have issues with reading properly in sims studio. They can be read properly with velocitygrass's data tool, but his tool won't read the new ui_category part and he's awol, so....
It gets complicated fast.
So anyway, you'll need to manually add back in the display_name, which is missing from the Sim Data in the version you posted. Which is 0x554F53CB
And you'll need to add in ages code, which also got neutered when read by sims studio. Looks like the creator was just doing all ages, so that'd be the following in the sim data:
So you can use that as a template for a working example to get the other trait working. There were a couple areas I missed, one of which is vital. Still comes back to that same problem of Sims Studio not reading the data file fully, so it ending up missing part of its information.
One of them was the tags in the Sim Data. It had gutted those, so those needed to be filled out for the trait to show up as a personality trait in the CAS lifestyle section. Pretty sure this is the vital part that was still missing for getting it to show up in CAS.
It was also missing the icon ID, trait description ID, and had something erroneous in trait origin description. So I filled out icon ID and trait description, and then replaced origin description with a blank 0x00000000 type thing, since it isn't needed.
I also changed the part at the top that says SimData version and set it to 0x00000101 -- not sure if this part is actually needed or what it does, but I was trying various things at the time (copying from a sample Maxis file) and figured it couldn't hurt. So just so you're aware, that is one of the things I changed.
Oh and for future reference, that is one of the things I do a lot when I'm lost, is look at working examples, especially from extracted Maxis files. There are some aspects of the code that I recognize and understand pretty easily now, but there's also a lot of just copy/pasting. My general motto is, when in doubt, copy how Maxis does it. And if it turns out to be superfluous later, I'd rather that than miss something important.
@Wishonmeh05 Thanks for the heads up. I will direct people to that in the future, since it's in way more depth than what I posted on sims studio forums.
Comments
It gets complicated fast.
So anyway, you'll need to manually add back in the display_name, which is missing from the Sim Data in the version you posted. Which is 0x554F53CB
And you'll need to add in ages code, which also got neutered when read by sims studio. Looks like the creator was just doing all ages, so that'd be the following in the sim data:
Replacing:
And in the Trait Tuning, you'll want to change UNUSED_FLAG to TODDLER
Unless you don't want toddlers to be able to have the trait, in which case, delete that part. And in the ages Sim Data, delete <T type="Int64">4</T>
https://1drv.ms/f/s!AnQRpEJJEtVCh3OS6GPC9AekWCtD
http://simfileshare.net/download/363484/
So you can use that as a template for a working example to get the other trait working. There were a couple areas I missed, one of which is vital. Still comes back to that same problem of Sims Studio not reading the data file fully, so it ending up missing part of its information.
One of them was the tags in the Sim Data. It had gutted those, so those needed to be filled out for the trait to show up as a personality trait in the CAS lifestyle section. Pretty sure this is the vital part that was still missing for getting it to show up in CAS.
It was also missing the icon ID, trait description ID, and had something erroneous in trait origin description. So I filled out icon ID and trait description, and then replaced origin description with a blank 0x00000000 type thing, since it isn't needed.
I also changed the part at the top that says SimData version and set it to 0x00000101 -- not sure if this part is actually needed or what it does, but I was trying various things at the time (copying from a sample Maxis file) and figured it couldn't hurt. So just so you're aware, that is one of the things I changed.
Oh and for future reference, that is one of the things I do a lot when I'm lost, is look at working examples, especially from extracted Maxis files. There are some aspects of the code that I recognize and understand pretty easily now, but there's also a lot of just copy/pasting. My general motto is, when in doubt, copy how Maxis does it. And if it turns out to be superfluous later, I'd rather that than miss something important.
https://simsvip.com/2017/11/15/custom-trait-making-trait-compatible-pets/