Home Artists Posts Import Register

Content

Sheila Lobert asked me to investigate this "problem"

Some custom traits you can download that are made with the Constructor do not show in the relationship panel, they show as Unknown Trait. So, I looked into it and the problem lies in the way the Constructor gives the Instance id to the trait. We're going to use Kiara's Independent trait. Let's open it in the Studio and look for the xml with the type Trait Tuninig:

As you can see the instance is a 16 digits Hex number ( AC1BAA976370C9CC ) this is the FNV 64 hash of the name KiaraSimsMods_Independent_Independent

Now, before we do anything else let's select all the tunings apart from the strings tables inside the package and batch export them into a folder:

Now, sort the files in the package for INSTANCE:

Find the SimData file with the same INSTANCE as the Trait Tuning

The Constructor exports all the SimData Files with the name Constructor, but since we need to change the Instance ID of both the tuning and the SimData we need to copy the name from the tuning:

Paste it into the SimData (so we will not lose it):

Now, with an Hash generator, let's Hash the name:

We need the FNV 32 Key or the FNV 32 High Bit key (even better)

Let's move in the Data tab of the Trait Tuning:

Let's copy the Tuning ID number:

and paste it on a text file:

we'll need it later. Now, we need to replace the AC1BAA976370C9CC in the Data tab of the trait tuning with eight 0:

The last eight digits of our new instance ID are the FNV 32 number we got from the Hash generator:

Now let's grab this new 16 digits Instance ID and move in the Data tab of the SimData file with the same name of the trait tuning and paste it in there so that the trait tuning and the SimData have the same Instance and name:

Back in the trait tuning let's copy the new Tuning Id the Studio gave us:

and paste it into the s="...." field where the old number is:

Now, I made you export the XMLs because we need to see if the old Tuning ID was referenced in other XML inside the mod, so let's make a search for the old Tuning ID I made you copy into the text file:

We only found two files, the trait itself and an action, let's search the action in the mod:

And replace the old tuning id referenced there with the new one:

That's it, you can now get rid of the exported xmls and save the mod:

It seems like a lot of work but it takes more to write this tutorial than to do it.


Comments

Sheila Lobert

My hero! Thank you! Just tried my first one; I'm going to go into the game and test it out. Great tutorial! Only parts that stumped me, as a pretty new modder, briefly. were finding batch export [for those who don't know, it's near the bottom left of the screen in S4S], figuring out how to tell which action tuning it was by the code in the exported data [The instance is the part after the 00s and ! in the middle], and finding the hash generator [under tools] in S4S, but I figured it all out with just a bit of looking around.

zer0_Mods_

I didn't have much time this morning to write this, sorry. Let me know how it goes!

Anonymous

I've complained about this for so long but no one has ever tried to find out why this happens.... Thank you so much. I absolutely HATED custom traits and avoided them like the plague because they never showed up in the relationship panel. Now maybe I'll be able to use some...

zer0_Mods_

I was totally unaware of this... I never use or even make custom trait. I had to make one and do a cross comparation to figure this out. Hope this also helps people who uses the constructor to make traits to package already refined traits.

Anonymous

Could you investigate a problem I have when creating? For some objects (specifically the sink object), when I change the in-game text for an interaction, the sims no longer route to the object before carrying out the animation. For example: If I change "Wash Hands" to "Wash Up," the sims will wash their hands wherever they are standing when I click the button.

zer0_Mods_

I know the problem. I'm not into creating objects, but it not limited to that. What happens if you don't change name?

Anonymous

Can you explain how to get to the first step, please? I'm not very tech-savvy and I would love to fix my traits from not showing up. Some of them do but I'd say a good 70% are just a llama logo and don't work, nor do they show a description of what it may be. I would like to fix it on my own but I fail to understand most of this tutorial.

zer0_Mods_

You need sims 4 studio and to open the package file of the trait with the program, when you install sims 4 studio the package files are not automatically associated with it, so you need to right click them and "open with". After that you should be able to follow the tutorial... The very first step is the one I illustrated. I'd need more information on what you don't understand to be more helpful than this though.

Chelsea Derieux

I honestly find myself getting very confused when it comes to the xmls parts because everytime ive done it i lose all my progess and I get more confused

Anonymous

This tutorial just came through in a clutch! I've had over 60 cc traits that needed to be fixed for quite some time now. Today, while playing, I finally got tired of seeing "unknown" in the Relationship Panel while searching for a proper mate for my sim... So I decided to do something about it! I knew you'd done a few modding tutorials, so I came straight here, found this, and now I can breeze through them! Thank you SO MUCH for taking the time to educate us on modding and I absolutely LOVE your mods. You are a true asset to the Sims community.

YourFalseHope

late to thank you for this tutorial but this came in handy. Bookmarked for sure! Thanks a bunch 💜