Flag Download

[TESTING] Child2Toddler2Baby v0.6

21 June 2017 Update : Minor BugFixes and improvements. See Changelog at the bottom for details.

QUESTION: do child/toddler Sims use chat and peek aboo too much (and I mean over and over and over again)
with toddlers (and babies, for peek aboo)? I can put a cooldown on that like I did for hugs, if there's a need.

Introduction

This is going to require long and tiring explanations, so let me have some fun before we get to business.

And now stay tuned on MTS for the new episode of The Walking Toddler (SPOILERS AHEAD)

SimToddler: So, just like last time, Imma walk like a boss from here to there...
SimToddler: ...Uncontested.
SimToddler smirks.
SimChild: [mumbling] Damn it... I really want to target SimToddler with an interaction...
SimChild: I mean no harm, really, a simple "play peek aboo" would do.
SimBaby: [whispering to SimChild] Hey, why don't you try again?
SimChild: Yeah, sure, so you can make fun of me, right?
SimChild: Gee, how did you became such a bitter person anyway. What are you, 7 hours old?
SimBaby: Look, you would be bitter too if you were sitting in your own poo for the last 2 days.
SimChild: Oh, that explains the smell, I though SimAdult was trying to cook a new recipe.
SimChild: All right, I get it. After I fail at targeting SimToddler I'll change your diaper thanks to a new mod.
SimChild: ...
SimChild: It works! Now I can target SimToddler even while she's walking.
SimToddler: Hey, that's not cool! Well... it kinda is actually...
Arsil, bored, uses Total Annihilation.

Mod Info
Developed and tested on game version 1.67.Note that this mod will likely contain bugs, annoyances and overall require more fine tuning.

Mod Overview
- Replaces existing interactions with fixed and enhanced versions. I'll call them ReMastered from now on.
- Adds 2 new soc interactions and 1 new terrain interaction (this is a bit off-topic with the rest of the features of the mod).
- Replaces an existing (allegedly) unused object with a buyable and interactive one.
- Optional (and disabled by default) overhaul of feeding and diapers changing.

ReMastered Interactions

There are the 4 social interactions that children can perform on toddlers using them as target:
- ToddlerHug
- PlayPeekAboo
- FeedOnFloor (when they give a baby bottle to grounded toddlers and they drink it on their own)
- [EVIL TRAIT REQUIRED] StealCandy
(Note that the last two can also be used by teen+ Sims)

Quote:

Reminder: with few exceptions, Sims cannot target toddlers/babies from other households unless they have a good
relationship with their parents or guardians (simply being friend with a Child of that household will work too).

How have these interactions been fixed/enhanced overall?

AUTONOMY
Of these four interactions, steal candy is the only one that works autonomously. This mod makes them all work
autonomously: The Family Oriented trait is recommended if you want a Child Sim to be more involved, but all
Sims should regardless (autonomy is a pretty complex matter for these kind of interactions). More about traits later.

TARGETING
Now children can also target toddlers who are currently walking. Let me explain...

All Sims are have a thing called Posture that is very important for deciding what they can do and what other Sims
can do to them. There are various postures, "Standing" is the default posture for all Sims: even for Pets (IIRC)
and toddlers crawling or sitting on the floor. When toddlers are walking, they are not using the "Standing" Posture
but the "WalkingToddler" Posture. The game only considered the "Standing" Posture as "ok" to let Children target
toddlers, but all my tests showed no problem in targeting walking ones (this led to my silly introduction story).
Now, my tests might not be conclusive, so I made this option tunable in case it backfires.

TRAITS
I've added a few trait checks to hopefully give a bit of variety and different behaviours to all these interactions. More on traits later.

TUNABILITY (is that a word?)
In addition to the existing tuning (xml or ITUN), more things about the interactions can now be customized.

How has each single interaction been specifically enhanced?

In addition to those 4 generic things, each interaction has been also (hopefully) enhanced.
Some feature custom animations made from scratch or adapted from existing ones. As usual, pity me.

FeedOnFloor

Now also works on babies. The animation sucks... I could apply some trigonometry (I had to brush up quite a bit) in order to have the baby facing the right direction, but that abrupt change isn't very visually appealing either and would interfere with objects such as the Baby Play Mat (part of the TS3 Store's Premium Item TitanicToyMachine, glitched AF by the way) and with other plans that I have.

PlayPeekAboo

- Added a max duration
- Added fun motive gain for both actor and target
- now toddlers can play with each other (peeeeta... aaah peeeta pa!)
- now children can play with babies
- now toddlers can play with babies

StealCandy

Here I've simply moved the check on the Evil trait from the code to the ITUN. So it can be removed or modified (IIRC you can use more than 1 tag to specify required traits, but I don't remember if that works as a logical AND or logical OR - i.e. all traits are required or just one).
Note: parents and step parents can't steal candies from their own babies/toddlers.

ToddlerHug

Clipping fixed and now toddlers can hug toddlers (see screenshots). I may be wrong, but I don't think that ever worked in the game (and to think that a simple ITUN override mod would have enabled it). I couldn't believe it when I accidentally found those two CLIPs (p2p_soc_hug_x and p2p_soc_hug_y).
Let me tell you that fixing the clipping wasn't easy, until I got the brilliant trivial idea to make both Sims take a step forward so they where at the right distance to not deform too much the animation.

Note that allowing this interaction to run autonomously isn't a bed of roses. I noticed that Sims kept hugging again and again, so I had to do something. I used a workaround and put a cooldown in sim-hours to allow a specific Sim to hug another specific Sim only every x hours (tunable). More on that in the AUTONOMY section below.

New Social Interactions

ChangeDiaper

Children can change the diaper to toddlers and babies (the animation is very simplified).

Note: with this addition, Children can now take care of all toddlers needs (well, except for bladder and energy, but they can
be potty trained and I have something in mind about sleeping)

Chat

- Children can chat with toddlers who learned to talk
- Toddlers who learned to talk can chat with toddlers (1on1) who learned to talk. (sounds familiar? More on that later)

Hopefully I was able to avoid the "freezing" effect (when a Sim who stopped playing an animation freezes
until the animation played by the other Sim involved isn't over). I'm sure there's a better way to handle that
than the monstrous code I've concocted.

New Interactive object: Baby Bottle

I took an existing but unused object (I made a default replacement, if you want)
and turned it into a functional one. Now you can buy the baby bottle from the BuyCatalog:
- ByRoom/Kitchen/SmallAppliances
- ByFunction/Appliances/Misc
- ByFunction/Kids/Misc
It has an interaction to pick it up (the broken version used by morsels that doesn't work depending on where the object is slotted)
and if toddlers have it in their inventory they will drink it when hungry. Note: may need specifying motive threshold on ITUN
to avoid drinking it while not particularly hungry, we'll see.

Maybe it's a godly or cheaty item, but, hey, it's not mandatory to use it!
Or maybe you are shocked that you have to pay for something that Sims usually pull out of their... pocket for free.

This thing too may remind you of another mod, more about that later.

See the Compatibility section below for more informations.

Feeding Overhaul

This is a big gameplay change, so I made it optional and disabled by default.
To activate it, edit the CONFIGURATION xml in the _Mod package with S3PE (or another package manager).
Its section is near the top, you can't miss it. I suggest to only put "true" to the main tag, unselectable Sims
shouldn't use the new system (maybe if you do an heavy rotational play it could make sense).
To avoid any confusion, the tag I'm talking about is:
- kBabyBottleNeededInInventoryToFeed

If you activate the feeding overhaul, 3 more existing interactions will be replaced: GiveBottle
(the one used on held babies), DrinkBottle (an auxiliary interaction used by other ones)
and HighChairBase.GiveBottle (self explanatory).

Sims will only be able to feed toddlers/babies if they have a baby bottle in their inventory.

As optional package in the 2nd comment (#3), I've put a ITUN override mod that disables the 2 interactions
that allow to create food out of thin air when a toddler is sitting on the HighChair. If you have a food
processor and leftovers in the fridge, you can still serve those.

NOTE: Activating the feeding overhaul will make it possible to use CC baby bottles. The animation
will use the object itself instead of using the prop (which clearly can only match the default baby bottle).
In the 2nd comment (#3) I've uploaded a red-blood recolored baby bottle, for vampires.

Diaper Changing Overhaul

This is a big gameplay change, so I made it optional and disabled by default.
To activate it, edit the CONFIGURATION xml in the _Mod package with S3PE (or another package manager).
Its section is near the top, you can't miss it. I suggest to only put "true" to the main tag, unselectable Sims
shouldn't use the new system (maybe if you do an heavy rotational play it could make sense).
To avoid any confusion, the tag I'm talking about is:
- kDiaperNeededInInventoryToChangeDiaper

As you can easily guess, this is similar to the previous overhaul, but it is about changing diapers.
Activating this overhaul will replace the ChangeDiaper interaction used on held toddlers/babies.

In order to change a diaper, Sims will need a diaper (or a diapers' box) in their inventory.

I got permission from ATS3's Sandy to make Overrides of her objects. Since you will only need them
if you activate the overhaul, I've put links, files and instructions in the 3rd comment (#4).
You only need my package if you use the overhaul, but you may still want Sandy's objects as decor items.
Note: the mod supports any CC diaper, just use my scripts on your favourite objects
(it's probably a good idea to also set LiveDraggingEnabled to true in the ObjectTypeFlags of the OBJD).

Traits matter

Here's a overview of which traits influence which interactions and how. Hopefully I'm not forgetting anything.
Most of these settings are xml tunable, some can be completely turned off.

Note: these choices are based on my current selection of installed EPs, but I believe they are all available in the BaseGame.
I may have used improperly some traits for lack of more fitting ones.

Unless otherwise stated, these should work for toddlers and babies alike.

Absent Minded: can space out (use idle animations) during chat. Toddlers only.Absent Minded: has difficulty maintaining eye contact during chat/peekAboo/feedOnFloor/ChangeDiaper. Toddlers only.Coward: can get the Scared moodlet from peekAboo and getting their candy stolen.Easily impressed and Excitable : can get the Excited moodlet by playing PeekAboo or getting their candy stolen.Evil: less likely to use Hug. Required to use StealCandy. Child+ only.Family Oriented: more likely to use hug/ChangeDiaper/FeedOnFloor/PeekAboo. Some are Child+ only, some are toddlers only.Friendly: more likely to use Chat/PeekAboo (trait being used outside its original purpose). Toddlers and Children only.Good: more likely to use Hug. Toddlers and Children only.Grumpy: can "refuse" a Chat/PeekAboo/Hug. Toddlers only.Insane: can leave randomly the current interaction (peekAboo/Chat) and throw a tantrum. Toddlers only.
--- I'm not fond of this and is probably being used outside its original purpose.Loner: less likely to use: Chat/PeekAboo/Hug. Toddlers and Children only.Neurotic: can get the Stressed moodlet by PeekAboo/Chat/StealCandy/Hug.

Autonomy

The autonomous use of these interactions clearly is one of the main points of the mod.
Like I said before, it's hard to find the right balance. And take into consideration that my gameplay
experience may have been biased because I mostly tested the mod in a "White Room" environment.
I even eliminated all teen+ Sims, leaving a Child to take care of various combinations of babies
and toddlers (a gameplay situation you'll never have usually).

The behaviour I've described above talking about the ToddlerHug interaction (using the same interaction
over and over again, despite having the Social motive full) might manifest itself also with Chat and
PlayPeekAboo and Chat (those are the most vulnerable, others have checks on the code to prevent,
for instance, to feed a baby who doesn't have buffs related to a low hunger motive).

This will require some testing. Keep an eye on it.
These social interactions are probably more advertised than the xml defined ones.

This is a bit technical, but I'd like to mention for those interested the LookAfterBabyOrToddler Motive
(Sims with the DislikeChildren trait have a variant version of that, less "generous").
This represent the main driving factor that urges Sims to take care of toddlers and babies.
Note: only teen+ Sims have that Motive, so for Children I had to introduce other driving factors,
(such as the Social motive - backed up by the hunger motive for safety - for FeedOnFloor) to push
children Sims to use some of these interactions.

Another potential problem is that, FeedOnFloor specifically, is also usable by teen+ and for them it
is already well advertised, so adding further drive to use it might be too much.
The hard-coded checks will prevent to use it autonomously when not necessary (same thing for
ChangeDiaper), but the strong advertising will still make Sims choose to try to use it.
Now, I'm probably overly pessimistic/cautious/catastrophic and this is not really a big deal, but it
still worries me. What about splitting the interaction in two, one for children and one for teen+,
so each can have its own InteractionTuning (and associated ITUN resources)? Overkill?

This is all experimental, we'll see how it works and how much stress it adds to the system to pick up
the more fitting interaction. Note that the system was stressed even without the mod: Children were
continuously trying to use some of those interactions, wasting "computational cycles" for nothing.

As a worst case scenario, if things gets really ugly and there's no fix: turning off autonomy for
the naughty interactions. They didn't work without the mod, so it won't be a big deal anyway.

Customization

I tried to make most of the things tunable, in some case I went to ridiculous details
while in others I may have missed something important.
You can check the CONFIGURATION xml resource inside the *_Mod .package and see for yourself what you can
do to make the mod work along your personal preferences. All the tags are self-explanatory and I've added plenty
of comments. One of the things you can do is restrict some of the more sensible interactions to just relatives or
members of the same household. I also made tunable some of the CLIPs used, but I don't really recommend to
change them. Oh, and if there something that you don't like, you can probably disable it altogether.

Compatibility

Compatible with Cherry's Toddler Interactions mod, but some of the features are overlapping (2 different chat
interactions, babybottle as real object drinkable if in inventory vs babybottle drinkable out of thin air with Genious
trait required), so you may want to turn off some of them as you see fit: from the ITUNs in Cherry's mod and from
the CONFIGURATION xml in mine.

Here's some of the differences with the Chat interaction from Cherry's mod:
- target too gains social motive
- check if target is sleeping
- no clipping (feet)
- milder (tunable anyway) LTR liking improvement (IIRC that is tunable in her/his mod too, but no XML is provided).

BabyBottle
If you use daluved1's White Formula Default Replacement Bottle, see my first comment (#2) for an
optional package that replaces the default thumbnails (displayed while navigating the BuyCatalog
and when using an interaction targeting the bottle, i.e. pickUp and drink) of the baby bottle to show
a white liquid instead of green, so the actual object will match the prop used in the animations
(they are two separate OBJDs).

Note: the baby bottle is compatible with my Generic Food Maker (you have to define it as object,
not as beverage) using "BabyBottle" as name. See that mod for more details.
If you use my Chewing Gum mod, you can add the baby bottle (again, using "BabyBottle")
to the shopping list of the grocery-type Rabbit Holes. In the description of my Ketchup and Co. mod
you can find detailed instructions on how to do that (it's inside a spoiler tag/button).

This mod replaces the following resources (use Dashboard to check if you already have mods that override them):

Additional Credits
All respective authors and contributors of the tools and tutorials for modding TS3.
MTS and all modders who made the game much more enjoyable.icemunmun for helping in my time of need.

CHANGELOG (More recent changes are on top)

21 June 2017

The DrinkBottle interaction's name is now displayed correctly.

Now toddlers can't drink a bottle in their inventory if they are in a high chair, crib, walker, etc, basically when they are not on the ground, except when they are held by another Sim. In those cases, the interaction was added to the queue, remained hidden, and was executed only when the toddler got back on the ground. While this wasn't properly a bad thing, it might be confusing for the player and overall undesired: maybe another Sim fed the toddler in the meantime and the bottle in their inventory is drank when the hunger need is already full.

Toddlers with a babybottle in their inventory might autonomously queue the interaction to drink it while or after another Sim is using the interaction to feed them, thus ending up wasting their babybottle (drinking it when no longer hungry). To prevent that, before drinking the babybottle in their inventory, I've added a check on the hunger motive: if it is already >= 0 (half of the bar is filled) the interaction ends. This only happens if the interaction was used autonomously.

27 April 2017 : Now, even with the new feeding system disabled, the baby bottle itself will be used
instead of the prop when toddlers use the drink interaction on bottles in their inventory. All other
interactions, for obvious reasons, require the feeding overhaul enabled to do that.

26 April 2017 : Minor tweaks to the autonomy of the ChangeDiaper (on held babies/toddlers),
feeding held babies and giving bottle to toddlers on HighChair interactions (if the related overhaul is enabled)

25 April 2017 : Added checks on the snow level to prevent the use of some interactions on babies
(even if they were pretty hilarious to watch)

24 April 2017
- BugFix for the Drink interaction of the Baby Bottle
- Added routing flag to the footprint of the baby bottle, so Sims won't trample it when it's on the ground.

23 April 2017 : BugFix: now the FeedOnFloor interaction works even with feeding overhaul disabled.

21 April 2017 : Major Update, version 0.6 (Codename "Welcome to BugVille: Population Unknown")

BugFix: teens and older Sims can now use FeedOnFloor again (as they can do w/o the mod)
with toddlers on crib or held by someone

BugFix: FeedOnFloor no longer available (it didn't worked, of course) when toddlers are on HighChair (whooops!)

Note: I've noticed that the BabyBottle was actually an used object by the game, it is used by the HighChair interaction.
The good news is that my changes didn't cause any trouble. *sigh of relief*

Feeding and Diaper Changing Overhaul (see updated description for more details)
This is a big gameplay change, so I made it optional and disabled by default.
To activate it, edit the CONFIGURATION xml in the _Mod package with S3PE (or another package manager).
Its section is near the top, you can't miss it. I suggest to only put "true" to the main tag of each, unselectable
Sims shouldn't use the new system (maybe if you do an heavy rotational play it could make sense).
To avoid any confusion, the 2 tags I'm talking about are:
- kBabyBottleNeededInInventoryToFeed
- kDiaperNeededInInventoryToChangeDiaper

19 April 2017 : Removed PlayOnPuddle (moved to another mod)

12 April 2017 : First Beta Release, version 0.5 (Codename "Premature Uploadation")
--- Last minute fix: Baby Bottle made deletable/clonable by handtool while in Buy/Build Mode.

- when using the food maker, both the default baby bottle and the blood recolour have the same name ("Make Baby Bottle", "Make Baby Bottle") so it could be confusing. Is it possible to rename the blood recolour something like "Plasma formula" or similar with tuning?

Re-uploaded. Of course now the name is no longer localized in all languages.

Quote:

is it possible for the blood recolour to be only given to vampire infants/toddlers (or is that impossible since all cc bottles are all made equal), or add an extra step involving plasma fruit?

It's the same object type (class), just a recoloured version. I did it for its role play value, not for gameplay purposes.
What you ask requires some extra work (create a sub-type of specialized baby bottle).
It's doable and probably not too hard, but it's not on my plans.

Many of my mods probably ignore vampire and even Vegetarian Sims dietary peculiarities.

Quote:

I've had trouble trying to get the default baby bottle to show up in the grocery list. The blood recolour, ATS3 diapers and diaper box shows up though (I might need to keep testing this more). Is the code name still "BabyBottle" for it to be put in the chewing gum grocery list?

Yes, "BabyBottle". For reference, here's how that xml should look like with just the chewing gum and the baby bottle:

Thank you. So far in my 100 baby challenge it seems to be working. Did a diaper change with a child and it worked. However, toddler to toddler on the peek a boo didn't. They started to move to each other than stopped. Other than that so far so good.

Amazing mod! I always wanted children to be able to do more with the toddlers! I would love to see a mod where children can help toddlers into or out of their cribs, maybe something like the children can no stretch mod. Thank you so much for creating this mod!

Uhm... I didn't see the Sim getting reset, but I've casually read the log
generated by NRaas ErrorTrap.

The thing is that every time I try it works correctly, I can't reproduce
the issue (I can't find a fixed sequence of actions that trigger the error)
and at first glance the code looks all right.

@luvlee215

Does it happen every single time for you or only occasionally?
- In the former case, can you tell me exactly and verbosely what you do?
- In the latter case, do you remember the circumstances?

Anyone else has this problem? I know it's real, I'm just a little baffled.

------

While checking for this issue, I found out a few other things to fix,
but nothing really important, so I'll delay an updated version
until I figure out this problem.
EDIT: updated a new version that fixes those problems (unfortunately only those, not the one discussed here)

By the way, the only reason there's still [Testing] in the title of the mod
is because no one yet gave me feedback on the only (well, beside this
newly discovered issue) thing I really asked and wanted to know.

Great mod! Seems to work very well.
I've encountered maybe a little bug... Sometimes when I click on the hungry moodlet in another sim (not the toddler) instead of the sim going to get food for themselves they queue up an action to feed the toddler! So far this has only happened a few times & I'm not sure just what conditions trigger it, it seems to happen somewhat inconsistently. I'm not sure if it's triggered by the toddler's hunger level, the sim's proximity to the hungry toddler or what. It's a little annoying, especially when the toddler has already gotten a bottle & is eating, then I click the adult's hunger moodlet & they try to give the tot a second bottle
Here are some screenshots of it happening.

Here you can see the adult sim's hunger & up in the top left her action after clicking her hunger moodlet is "feed on floor" for the toddler.

I thought maybe the tot's hunger was greater than the adult's, but nope. Here is the tot's hunger meter.

Here is one were the toddler had his bottle, but the adult was trying to "re-feed" him instead of getting food for herself.

Thanks for the feedback.
It took me a bit of time, but I figured out what is happening.

Quote:

Originally Posted by Shojo Dagger

Sometimes when I click on the hungry moodlet in another sim (not the toddler) instead of the sim going to get food for themselves they queue up an action to feed the toddler! So far this has only happened a few times & I'm not sure just what conditions trigger it, it seems to happen somewhat inconsistently. I'm not sure if it's triggered by the toddler's hunger level, the sim's proximity to the hungry toddler or what.

Check the AUTONOMY section in the mod's description to see why hungry Sims
might try to feed a toddler/baby before feeding themselves.

Using the default options (defined in the xml tuning), toddlers/babies are fed autonomously*
only if hungry (i.e. when they have the related moodlets associated with a low score for
the hunger need).

*What happens here is that clicking on the moodlet is equivalent to user directing the Sim
to feed the toddler/baby, so all the checks made when the interaction is used autonomously
are skipped (because you don't want those restrictions applied when user directing a Sim,
just like you don't want the interaction to take a shower to be locked when your Sim is already
clean. Well, I don't know what you want but this is how the game works).

Quote:

It's a little annoying, especially when the toddler has already gotten a bottle & is eating, then I click the adult's hunger moodlet & they try to give the tot a second bottle

The interaction to feed toddlers will NOT be used autonomously if they are
currently drinking from a babybottle (or that action is in their queue). That check
is skipped because the interaction is user directed.

I know it's an odd behaviour: when you click on that moodlet (by the way, I had no idea that
was a thing!) you clearly mean to satisfy the need of that Sim.
If you don't like it, you can remove the advertising of the hunger motive in the FeedOnFloor ITUN
(it's near the bottom, remove the entire line), but that way children won't have any motivation to
autonomously feed toddlers/babies (unless they have the Family Oriented trait).

I'll try changing those settings then, and see how I like it.
As I said it's only an annoyance, & pretty minor one, since it only triggers when the toddler & other sim both have hunger status.
The mod's flawless except for that odd little bit, I love it. Thanks again!

I can't not understand the food maker/bottle warmer. How to connect them? Am I just making a bundle of bottles? Or am I just buying bottles from just the maker?

Feel like your Sims is paying too much for everything?
Mayor MoonieAddict has lowered prices in her Sims 3 town
And she’s passing on the secrets to other Mayors; for free!Check out my Blog for Mods & Tips

New feature idea: just like with the fridge, being able to shop for bottles and diapers without entering buy mode would be great!

Read the Compatibility tag for how to add them to the grocery store

Feel like your Sims is paying too much for everything?
Mayor MoonieAddict has lowered prices in her Sims 3 town
And she’s passing on the secrets to other Mayors; for free!Check out my Blog for Mods & Tips

Is it possible to make the "feed in high chair" interaction available only when the sim has such a baby jar object in the inventory, as the baby jar from ATS3 , and those jars can be bought from grocery?
Thanks for the great mod!

Not sure this is only me having problem or not, so I ask here.
Anyone having problem with chat to toddler for teen or order sim or young adult and older sim?
Cause I think after install this one, chat option to toddler is gone from them or if it is there, it's not working.

Can the need of a diaper/box be added to the sims store's changing/batheing table? Each action needs a diaper

Feel like your Sims is paying too much for everything?
Mayor MoonieAddict has lowered prices in her Sims 3 town
And she’s passing on the secrets to other Mayors; for free!Check out my Blog for Mods & Tips