Forum Discussion
Hello all. I have some insight on this error.
It seems to be related to some sort of issue relating to culling and either a lack of cleanup and/or a lack of filtering out Sims in invalid states.
With some logging into which Sims were causing the issue, all of the Sim IDs besides this one were unable to be found in the game (a condition that's already skipped over) and at first I tried to go to Manage Worlds and find the household, failed, tried to use MCCC to find or summon them, failed (found his wife? and MCCC said they were culled, so that made me curious), and finally used Show Sim Info and found the Sim, but got this, and that sort of confirmed my suspicions that somehow the Sim is being culled (or at least, marked for culling and being prepared for cleanup) and not removed from the Organization Service's list of enrolled members.
For those of you who like code, see below:
def on_zone_load(self): for (org_id, sims) in self._organization_members.items(): for sim_id in sims: sim = services.sim_info_manager().get(sim_id) if sim is None: pass else: organization_tracker = sim.organization_tracker if organization_tracker.get_organization_status(org_id) == OrganizationStatusEnum.ACTIVE: # line with error organization_tracker.send_organization_update_message(DistributorOps_pb2.OrganizationUpdate.ADD, org_id) self.update_organization_events_panel()
The zone_load function of the OrganizationService object filters through Sim IDs that are not matched to Sims, but assumes if the Sim Info can be found, they have an Organization Tracker object, which is apparently not always the case. A simple test to pass if their organization tracker is None would suffice, though some cleanup on the part of the code that deals with the culling could be done in parallel/in its stead as well.
In my testing, just skipping over these Sims (especially since it seems they're all culled, and from perusing the code, that seems to be what is basically done anyway [see the method to add a Sim to an organization]) seems to work fine and not cause any issues. It also stops the error from recurring, as before the error would occur every time a save was loaded into.
About The Sims 4 Bug Reports - Archive
Community Highlights
Recent Discussions
- 2 days ago