Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Field Researcher
Original Poster
#1 Old 13th Mar 2018 at 11:31 PM
Default Custom Traits Unequiping After Leaving CAS
So recently I have been trying to make my custom traits conflict with traits in game i.e. Hates Cats conflicts with Cat Lover. It works fine in CAS but once I leave it and return to the household the trait gets removed and I'm not sure why. I have attached the file so I hope someone can help!
Attached files:
File Type: zip  gobananas_HatesCats.zip (5.1 KB, 13 downloads) - View custom content

Twilightsims
Advertisement
Deceased
#2 Old 14th Mar 2018 at 9:31 PM
The binary SimData file is used to indicate to the user interface how to manage traits. I can't read that file in the Sims4Data file editor, so I can't verify it is correct. I suspect the data file format has been updated and the program needs updating as well, but presumably you've tested the conflict in CAS and all is well in that regard.

The XML for the trait, however, is what is used once the Sim is loaded into the game, and this file has errors in it. It's always helpful when editing an XML file generated by the Mod Constructor (or whatever you're using) to format the XML in an indented fashion so these kinds of errors are less easy to introduce. I used the firstobject XML Editor to format the file in the indented style (hit the F8 key) and this makes it trivial to see that the conflicting_traits list is embedded inside a mangled display_name.

You'll need to reformat that mangled section as follows to allow the trait to be usable in the game:
Back to top