|
Post by thethesmall on Jan 17, 2018 6:28:50 GMT -5
I am more of a scripting person and recently created a mod which modifies sims physiology on startup. The thing is I want to make sure that I only modify the sims once and not on reloading the save (that would give them a different look). So I wanted to create a hidden trait which I can give them to mark that I have already modified them.
Can anybody tell me how to create custom hidden traits? I have been poking around in tuning files and trait files, but I still don't understand some stuff about schema_hash, and other values in the Sim Data file associated with the trait.
Thanks a lot.
|
|
|
Post by Basemental on Jan 18, 2018 3:37:25 GMT -5
It is fairly easy. I'll give you a step by step mini tutorial.
1. Open Sims4Studio, create an empty package 2. Tools > Extract Tuning 3. Search for "Hidden" 4. Scroll down to traits, for this tutorial we'll use trait/trait_Hidden_HadFight as a "template" 5. Select it and press Add to current package 6. Select the Trait Tuning first, click the Data tab (next to the XML tab 7. Change the Name (the field over the TuningID) to something like: thethesmall:thisismyhiddentrait (this will change the TuningID as well) 8. Copy that Name, click on the Sim Data file located underneath the Trait Tuning 9. In the XML tab of the Sim Data file, paste the Name in and overwrite the name="trait_Hidden_HadFight" so it looks like this: name="thethesmall:thisismyhiddentrait" 10. Go back to the Trait Tuning Data tab, and copy the Instance Key 11. Go back to the Sim Data Data tab and paste the instance key into the Instance Key field
Then you should be able to use the TuningID of the Trait Tuning as your new and unique hidden trait
|
|
|
Post by thethesmall on Jan 18, 2018 13:04:41 GMT -5
Thanks a bunch. This helps a lot.
|
|
|
Post by thethesmall on Jan 18, 2018 13:17:07 GMT -5
7. Change the Name (the field over the TuningID) to something like: thethesmall:thisismyhiddentrait (this will change the TuningID as well) That didn't change the tuning id. Can you tell what to do? Thanks for this.
|
|
|
Post by Basemental on Jan 18, 2018 14:55:23 GMT -5
It will if you have the ":" in the file name, like the example I gave you. If however you wish to not use a colon in there for any reason you can use the hash generator to generate the TuningID.
Let's say you'd rather have the name be something like: thethesmall_thisismyhiddentrait you first change the name to that, then copy it, open the Hash Generator by clicking Tools > Hash Generator Paste the name into the Hash Text - Text Field in the generator, toggle the Mode from Hexadecimal to Decimal and copy the FNV64 value. Paste that value into the TuningID, then you have your TuningId.
But, I don't see any reason not to use that colon behind your creator-name as it just simplifies things.
|
|
|
Post by thethesmall on Jan 18, 2018 17:20:02 GMT -5
Thanks a bunch. I finally got it to work. I'll sing praises in your name for the next 1.67 days and tell all my grand children about you. :P
|
|
|
Post by Basemental on Jan 18, 2018 17:21:05 GMT -5
Haha. Glad you got it to work, mate.
|
|