Quick Reply
Search this Thread
Lab Assistant
Original Poster
#1 Old 18th Jan 2015 at 1:23 AM
Default XML Tuning - I am stuck.
I'm currently trying to work out a mod that would allow the player to direct their sim to use the Slob trait's interaction for "Rummaging for Food". But I've gotten stuck and I could use some help.

What I've been trying to do is remove the trait requirement for the interaction. However, it seems to be functioning on a "whitelist", something that I can't find any information about. I'm assuming that only the traits in the whitelist will work with the interaction. I don't know how to remove it.



When I removed the entire unblurred code, the game crashed on startup. When I just removed the stuff circled in purple, the game ran fine but the action still wasn't useable.

I'm editing S4_E882D22F_00000000_00000000000091C3 and S4_E882D22F_00000000_0000000000009BBF, S4PE naming conventions.
Mad Poster
#2 Old 18th Jan 2015 at 2:03 AM
One thing you could try is adding in other traits on the Whitelist, whichever ones you want. I won't say for sure, but the part above can maybe simply be left as is; it looks like it's for Slobs to be pushed autonomously to do this, and presumably everyone in the hood should not be doing this autonomously, it would be a bit much.

MedievalMods and Sims3mods: Dive Cave Reset Fix, Resort Revamp, Industrial Oven Revamp, Will O' Wisp fix, UI Sounds Disabled, No Cars, Gnome Family Planner, Townies Out on the Town, No Martial Arts Clothes, Fast Skilling, etc. http://simsasylum.com/tfm/
Lab Assistant
#3 Old 18th Jan 2015 at 4:30 AM Last edited by Vinathi : 18th Jan 2015 at 5:36 AM.
I would try to remove everything in between the test section (<L> and </L>) and see where that gets you. Keep us posted and feel free to PM me if you have more questions.
Deceased
#4 Old 18th Jan 2015 at 6:56 AM
The portion you're looking at sets a statistic, the whitelist there means that the statistic will only apply to those with the slob trait.

The actual part that controls which sims can perform the action are in the "test_globals". All of the tests in the list must pass or the action cannot be performed. So this is the part that's really limiting which sims can perform the action:
Code:
    <V t="trait">
      <U n="trait">
        <L n="blacklist_traits"/>
        <L n="whitelist_traits">
          <T>16843<!--trait_Glutton-->
          </T>
        </L>
      </U>
    </V>

HTH!

EDIT - All of these tags are explained the the files that come with the TS4 Custom Content Guide. Get it, use it, love it. There's a link to it in this thread: http://modthesims.info/showthread.php?t=532317
Pettifogging Legalist!
retired moderator
#5 Old 18th Jan 2015 at 5:02 PM Last edited by plasticbox : 18th Jan 2015 at 11:31 PM.
Be aware that in addition to the TS4 CC guide, new tdesc files have been posted by Maxis recently (on 13th or 14th I believe) -- see the sticky http://modthesims.info/showthread.php?t=533094 , link to the tdesc update is at the end of the first post.

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Lab Assistant
Original Poster
#6 Old 18th Jan 2015 at 11:12 PM
I still do not quite understand the function of the blacklist.

It is empty, I am assuming that makes sure that everyone passes. Which would mean that inserting the IDs for every trait save for glutton should make it available for everyone, correct?

However, if a Sim were using a set of CC traits, they would be unable to perform the interaction. I would think there would be some way to remove that check, right? So that it would work flawlessly for everyone?
Pettifogging Legalist!
retired moderator
#7 Old 18th Jan 2015 at 11:34 PM
Sorry for the confusion -- I misread something myself earlier on and as a result made it sound more complicated than it actually is (I edited that out now, so as to not confuse anyone else =P).

If you'd remove the trait test scumbumbo quoted, the interaction should be available to everyone regardless of their traits. Have you tried that already?

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Lab Assistant
Original Poster
#8 Old 18th Jan 2015 at 11:50 PM
Thank you. I tested it out and it works for both adults and children.

So the whitelist is for if an interaction is only used by a certain trait. It is wrapped in the blacklist tags to blacklist everyone else from using it. Am I understanding correct?

Edit: Also, how did Scumbumbo know that I was looking at the wrong set of code?
Pettifogging Legalist!
retired moderator
#9 Old 19th Jan 2015 at 12:03 AM
No, it's not wrapped (that was what I misread, I didn't look properly, so just ignore what I said about that) -- it's just two tests in succession, a blacklist one (which does not actually blacklist anything so this will always pass) and then a whitelist one that makes this available to Gluttons only.

Edit to answer your edit: Because scumbumbo has read the Maxis CC docs .

Stuff for TS2 · TS3 · TS4 | Please do not PM me with technical questions – we have Create forums for that.

In the kingdom of the blind, do as the Romans do.
Back to top