Code Fix for inactive slacker sims
twallan:
Further to this issue.
Though the 3 hour tolerance corrected the problem with the inactive sims going to work, it is still possible for them to bounce and drop the interaction.
So in addition, it was necessary to reapply the alarm to give the sim another chance to actually work.
Code:
public static void RegularWorkDayGoToWorkHandle(Sims3.Gameplay.Careers.Career career)
{
Sim createdSim = career.OwnerDescription.CreatedSim;
if (((createdSim != null) && ((AutonomyRestrictions.GetLevel() >= AutonomyLevel.Two) || createdSim.IsNPC)) && !createdSim.InteractionQueue.HasInteractionOfType(career.WorkInteractionDefinition))
{
// Update the HoursUntilWork()
career.SetHoursUntilWork();
VisitSituation.AnnounceTimeToGoToWork(createdSim);
createdSim.InteractionQueue.AddNext(career.CreateWorkInteractionInstance());
}
}
The embedded code is a personal function called by Career::RegularWorkDayGoToWorkHandle. The addition is a call to SetHoursUntilWork().
Normally SetHoursUntilWork() would be updated by the Autonomy::Update call, but my suspicions are that some sims are not being updated fast enough. Perhaps I have too many and updating them all takes several sim-hours. I will have to look into this further.
The consequence is that the HoursUntilWork member can be grossly incorrect (one sim was over three hours off). And since it is used in WorkInRabbitHole.Definition::Test(), any attempt to push that interaction will fail.
Good Day. :)
( Edit: Updated intent of post entirely )
Motoki:
Since Pescado's usage and modification policy is "meh" can you post your version or at least tell us how to modify ours?
I am sick and tired of my god damned neighborhood sims never going to work or school. >:(
twallan:
Quote from: Motoki on 2009 July 26, 18:47:24
Since Pescado's usage and modification policy is "meh" can you post your version or at least tell us how to modify ours?
I am sick and tired of my god damned neighborhood sims never going to work or school. >:(
(Download removed... AwesomeMod version 28-07-2009 incorporates its own fix)
Here you go. An modified copy of AwesomeMod version 23-7-2009.
Remove your "awesome.package" and replace it with the "updated_awesome.package".
If you are having the same issue as myself, then this should fix the problem. If not, then you will need to wait until Pescado determines a solution.
My apologies in advance if the link doesn't work properly... This is first time I've attempted this type of file sharing.
If it all works out in the end, I'd love to know.
Good Luck. :)
(Edit: corrected names of packages)
(Edit: Download removed... AwesomeMod version 28-07-2009 incorporates its own fix)
Motoki:
Cool. I will try it out.
You did mention a whole mess of kids at the school in the morning. Have you had any issues with the zergswarming to all get into the tiny rabbit hole at the same time?
I followed someone's suggestion in the other thread and edited one of the ini's to let the sims walk through each other. :P
twallan:
Quote from: Motoki on 2009 July 26, 20:09:35
You did mention a whole mess of kids at the school in the morning. Have you had any issues with the zergswarming to all get into the tiny rabbit hole at the same time?
I followed someone's suggestion in the other thread and edited one of the ini's to let the sims walk through each other. :P
I too have turned the DynamicAvoidance to 0.0 on my game.
Though prior to doing so, I still didn't note anything untoward regarding their school work... Even if a couple chose to stand outside for several hours, they usually corrected it the next day by not being the last in that time around.
Good Day. :)
(Edit: Hit enter too early :P )
Navigation
[0] Message Index
[#] Next page
[*] Previous page