Relationship & Family Tree Changes
Tuning
Section titled “Tuning”- It is no longer allowed to use relationship loots to set any family relbits other than parents.
- It is no longer allowed to use the Relationship Map in premade_sim_relationships to set up family relationships between households. Instead use the new Family Relations Fixup.
- In-household relationships are still set using the household template as before.
- The relationship / family_relationship / target_family_relationship is now RelationshipType instead of FamilyRelationshipIndex in the following tunings;
- whims.whim_set.GeneTargetFactory
- filters.tunable.GenealogyFilterTerm
- aspirations.aspiration_tuning.AspirationFamilialTrigger
General
Section titled “General”- SimInfo and GenealogyTracker interface has seen slight changes.
- Apart from direct Parent or Partner relations, it is no longer possible to set any family relations in Python or Tuning. All other relations will be automatically generated by the game using the new Family Tree Service. (This includes siblings, grandparents, cousins etc.).
- Any indirect relations set by code before will be deducted and set by the new system.
- The new Family Tree Service keeps a persistent, always growing Family Tree Graph for all sims in a save. It keeps data about sims while living and after their death (and possible purge of the sim from the save), unless manually deleted in CAS.
- The above described Family Tree Service replaces the genealogy_cache completely.
The game synchronizes the state of SimInfos with the Family Tree Graph and family relbits between all related sims on every loading. As a result of the above points, legacy relations recorded in the GenealogyTracker, other than parental relations, will only be used for portability between Python and Client. Only direct parental relations will be used as the truth for the Family Tree graph during loading-time sync.
Any family relbits that has no correspoding relation in the Family Tree Graph during loading will be archived/removed from the game. To provide backwards compatibility with legacy saves, that may have been affected by mods, the game will attempt to reconstruct “unknown” parents in the Family Tree Graph for parentless siblings and grandchildren without parents only based on relbits. For safety reasons however, this may not always run.
For further information, see the article.