No Aging During Party -- Don't lose a day and throw a party!

SCREENSHOTS
Downloaded 1,417 times 259 Thanks 33 Favourited 33,629 Views
 Say Thanks!
Uploaded: 29th Apr 2007 at 10:53 AM
Updated: 10th Aug 2007 at 2:52 PM
Want to throw a birthday party, but tired of your Sims losing an automatic day because you have to transition them before 18:00h if you want to use the cake?

This mod disables the automatic aging as long as any party is active. This should give you the chance to send or bring the Sim to the birthday cake and have a normal birthday. Because I can't check for birthday parties specifically, aging is also disabled during other types of parties (such as house parties, weddings, etc.).

Additionally, the aging transition can now be cancelled (even if you do not throw a party). If you cancel it the transition will return at the next full hour (19:00h) and every full hour following that, until the Sim age transitions. If you do not cancel it the Sim will transition as normal.

Elder aging (dying of old age) is not affected by this mod. Pets are also not affected.

Tech info
Normal routine for the age transition just checks if the Sim has zero days left (which happens on 18:00h of the last day of a lifestage), and then forces the Sim to age up, and in the case of babies, calls a parent to age them up.

The revised code includes a check for the generic party controller before calling the age transition and will only continue if the controller is not present, otherwise it exists without an error. This means that if you have a party started and active before 18:00h the controller disables the automatic aging.

The best time to throw a birthday party is therefore between 15:00h and 17:00h (depending on several other factors such as computer speed and number of Sims), this gives you enough time to throw a party, have the party pop-up appear before 18:00h, and then send the Sim to the cake at or after the 18:00h point but still during the party itself.

The age transition itself was simply bumped down from highest to user-controlled priority. This means it will still override any automatic Sim actions already in the queue, but not actions you've given the Sim yourself (such as go to cake!), and it can be cancelled.


Apologies for the crappy screenshot, I really don't know how I can make one that fits the deal clearly.

Please let me know if you encounter any problems with this.

Compatibility
Should be compatible with all flavours of TS2 from the base game up to Seasons and Celebrations. Only tested in Seasons+Celebrations.
If you find any problems with other expansions please let me know.

Additional Credits:
Thanks to Sandra for being my primary beta tester, and the people from the Inteen forum for moral support and inspiration.
Kudos to JMP and Jase439 for being awesome, and thanks to Quaxi and the rest of the SimPE team for providing a tool to mod this game.