Programmable Sleep Clock v3.31
Cyjon:
My sims were frequently not getting the "one hour before bedtime" warnings and I was trying to figure out why. I think I found two problems, both in "Sub - Send Katemonster Warning".
On line A you have "My Attribute 0x09 := Hour". I believe that should be == not := since, as it stands, the second sim on a clock will never get a warning.
After I made that change I was getting more warnings but still missing some. I finally realized that it was people with midnight bedtimes. That led me to line 4 "Param 0x01 -= literal 0x01". That gives a warning time of -1 for midnight bed times, and apparently the mod command in the next line doesn't process that -1 correctly. I changed that to add 0x17 rather than subracting 1 and it works fine.
I've tested it for a few game days and missed only one warning, but I suspect it was some kind of roundoff error. Something like at 9:59 bedtime is supposed to be at 11:01, which rounds to 11:00, so a warning at 10. Then at 10:00, the sim's energy has dropped, bedtime is 10:59 which rounds to 10 and it's time to go to be - no warning given. Not much you can do about that.
Magicmoon:
Sims who are in the middle of cooking get whisked off to bed while the pot is on the stove.
I've been watching and I found out that when they cook they have an icon in their queue. But while the pot is simmering, or the item is in the oven, toaster, or mic, the icon drops out of their queue momentarily. Then when the food is done, the icon comes back into their queue, they retrieve their food and sit down to eat. This is how a normal Sim cooks when they don't 'walk away from the stove'.
The problem I'm having is that the sleepclock will call them to bed while they are in that time frame that doesn't have the icon in their queue. So they run off to bed, leaving the food to start a fire. If I catch them in the act, I can cancel the sleep call, but the food will always be burned by the time they walk back to the stove because they ran away from it toward the bed.
jsalemi:
Squinge has a 'don't walk away while cooking' hack that stomps that problem (and any other stupidity while they're cooking).
seelindarun:
The sleep clock doesn't stomp user-directed actions to cook and eat a meal, as long as the whole cooking process uses only the range. If it's free will cooking, then sleep clock will take over no matter what they're cooking.
I doubt there's any way to change this since user-directed actions (incl. sleep clock) take priority over autonomous ones.
If a sim uses the oven at any point (autonomously or not), then there's an opening in the queue for free will, or power idle, or pretty much anything to come in and interrupt. I usually set the sleep clock with warnings on, and then keep an eye on any sim who's preparing a bedtime snack.
If I let some sims free-range, I expect stupidity and demand that they live with the consequences. If I must have order, then I slap a no-autonomy security system in the kitchen. :)
Magicmoon:
Quote from: jsalemi on 2007 June 02, 19:03:28
Squinge has a 'don't walk away while cooking' hack that stomps that problem (and any other stupidity while they're cooking).
I'm using it. The only time the problem happens is those few seconds of time when the icon drops out of the queue (Maxis design). During this period of time is when a Sim might normally wander away from the stove. A few moments later another icon will appear in their queue to call them back to the stove. Squinge's hack keeps them there during this timeframe, unless the sleepclock kicks in. Then the 'call back to stove' icon appears in the queue after the 'go to bed' and 'buy' icons.
Navigation
[0] Message Index
[#] Next page
[*] Previous page