Forum Discussion
Product: The Sims 4
Platform:PC
Which language are you playing the game in? English
How often does the bug occur? Every time (100%)
What is your current game version number? 1.89.214
What expansions, game packs, and stuff packs do you have installed? All but a few kits
Steps: How can we find the bug ourselves? Place a dumpster outside of your home lot. The dumpster likely needs to be at least filled enough that your player Sim can dive into it.
What happens when the bug occurs? An exception pops up
What do you expect to see? No exception and NPCs able to trash dive
Have you installed any customization with the game, e.g. Custom Content or Mods? Not now. I've removed them.
Did this issue appear after a specific patch or change you made to your system? Yes
Please describe the patch or change you made. Update to latest patch
Update: I am successfully been able to get the error to trigger by having a dumpster outside my Sim's house and sleeping through the night. When the game tries to schedule the "random NPC comes by to dumpster dive" situation, the game attempting to determine if the situation can occur caused the error.
In specific, the get_weighted_situations method of the WeightedSituationsWeeklySchedule class
@staticmethod def get_weighted_situations(cls, predicate=lambda _: True): resolver = GlobalResolver() # global resolver is used, so cannot use tests that refer to objects def get_weight(item): if not predicate(item.situation): return 0 if not item.tests.run_tests(resolver): return 0 return item.weight_multipliers.get_multiplier(resolver)*item.situation.weight_multipliers.get_multiplier(resolver) weighted_situations = tuple((get_weight(item), (item.situation, dict(item.params.items()))) for item in cls.weighted_situations) return weighted_situations
And an exert from the dumpster object XML:
<V n="situation_scheduler_component" t="enabled"> <U n="enabled"> <V n="object_based_situations_schedule" t="enabled"> <U n="enabled"> <T n="consider_off_lot_objects">False</T> <T n="schedule_immediate">True</T> <V n="situation_schedule" t="weighted_situations"> <U n="weighted_situations"> <L n="schedule_entries"> <U> <U n="days_available"> <T n="0 SUNDAY">True</T> <T n="1 MONDAY">True</T> <T n="2 TUESDAY">True</T> <T n="3 WEDNESDAY">True</T> <T n="4 THURSDAY">True</T> <T n="5 FRIDAY">True</T> <T n="6 SATURDAY">True</T> </U> <T n="duration">4</T> <T n="random_start">True</T> <U n="start_time"> <T n="hour">18</T> </U> <L n="weighted_situations"> <U> <T n="situation">224194<!--SingleJobSituation: situation_TrashDiver--></T> <L n="tests"> <L> <V t="state"> <U n="state"> <T n="value">99560<!--ObjectStateValue: Trash_Rummagable_CanRummage--></T> <!-- this test is not allowed because it runs in the context of a GlobalResolver --> </U> </V> </L> </L> </U> <U> <T n="situation">77411<!--WalkbyNobodySituation: situation_walkby_nobody--></T> <U n="weight_multipliers"> <T n="base_value">2</T> </U> </U> </L> </U>
Unfortunately, I do not know how this can be solved. This is something that EA would have to fix.
- 3 years ago
Product: The Sims 4
Platform:PC
Which language are you playing the game in? Español
How often does the bug occur? Often (50% - 99%)
What is your current game version number? 1.89.214
What expansions, game packs, and stuff packs do you have installed? All
Steps: How can we find the bug ourselves? I'm not sure
What happens when the bug occurs? Exception
What do you expect to see? No exception
Have you installed any customization with the game, e.g. Custom Content or Mods? Yes
Did this issue appear after a specific patch or change you made to your system? Neutral/Not Sure
I'm having the same problem, is there any way to avoid it or what exactly causes it? It is very annoying because I am playing a new game that never gave me problems and now this exception keeps appearing
- 3 years agoAfter reading about the containers I opened my game and I noticed that in my lot, downloaded from the gallery, there was a large container from the EcoLife Style expansion misplaced with moveobjects, I deleted it and put another small one and at the moment I'm playing without problem .
Is it possible that the exception is caused by sims trying to rummage through an inaccessible container? Something similar has happened to me in other constructions with objects placed with move objects where the sims attacked each other trying to use them