Replies: 13 (Who?), Viewed: 6219 times.
Field Researcher
Original Poster
#1 Old 23rd Aug 2020 at 5:29 PM Last edited by lizcandor : 30th Mar 2021 at 5:12 AM. Reason: Documentation update for 0.6
Default Testers Needed - Polyamory/Committed Relationships Mod, Beta Version
EDIT 11/11/20: I've removed the preliminary documentation from this post, because I've added a draft of the release version of the documentation to a later post (post #8)! If anyone could give feedback on whether that documentation is clear enough, or too detailed/not detailed enough, it would be much appreciated. Also, version 0.6 of the mod is attached to post #8 with the new documentation, not to this first post like the previous ones!

EDIT 11/15/2020: I've split this mod from 2 parts into 3 for those who might not want everything it does - one part contains the polyamory features, one contains the attraction features, and one contains the common classes. The documentation in post #8 has been updated to reflect this, and the most recent files are attached to post #8; the files attached to post #1 are outdated versions, don't download them unless my latest change broke something and you need to go back.

Other points I'd especially appreciate feedback on are below, as before:
Field Researcher
#2 Old 31st Aug 2020 at 6:28 AM
Wow, you've come a long way since we first talked Very impressive work.

Would love to help with translation to french if you're looking for support with that.
Field Researcher
Original Poster
#3 Old 31st Aug 2020 at 3:48 PM
Originally Posted by MissPat
Wow, you've come a long way since we first talked Very impressive work.

Would love to help with translation to french if you're looking for support with that.

It's been a long journey

A French translation would be awesome! Right now all the notices and descriptions are in a very basic and straightforward form (not "fun" in a sims-like way, I'm not good at making up that stuff so I've been putting it off) but if you want to check them out when I post V0.1 after work today just to see what kind of things they're generally going to say, feel free. Also, the way I've broken some of them up to allow them to adapt for grammatical correctness in different situations may be hard to follow by just reading the STBL without seeing the code, so if you need to see the relevant code snippets and unhashed keys to make sense of them just let me know.
Field Researcher
Original Poster
#4 Old 1st Sep 2020 at 4:04 PM Last edited by lizcandor : 2nd Oct 2020 at 5:41 PM.
Version 0.1 is live! Also, as of tomorrow I will be on a 1-month modding hiatus; I will 100% be back though. Anyone who reads this, please feel free to post bugs or suggestions in this thread while I’m away, although I may not respond promptly and can’t make immediate fixes.

What’s new in version 0.1:
  • Attraction overhaul: the mod comes with its own attraction scoring method (including new tunable bonuses/penalties, customize as desired - and let me know what settings you find work best). It’s compatible with NRaas mods; it’ll stop Woohooer’s version from running so they don’t fight over what the attraction score should be, and if Woohooer/StoryProgression is present it’ll use those mods’ settings to decide whether attraction is allowed between the sims in question.
    • Trait attraction bonuses are only applied for learned traits, career bonuses are only applied for learned careers *and* sims who (based on traits) should find career success attractive, level 3 money bonus only applies for sims known to be rich and only if the other sim has a personality that should find money attractive, zodiac compatibility (not just match) bonus only applied for learned signs and only for Supernatural Fan sims, Eccentric/Bot Fan/Supernatural Fan sims can get attracted to bots with the capacity to love, attraction bonuses and penalties based on fitness/fatness/age can be overruled by custom reward traits indicating a sim’s “type”, Supernatural Fans get attracted to occult sims, the range of occult types that receive the matching occult status bonus is expanded (not sure why they weren’t all included before), and probably more that I’ve forgotten I added
    • Off-Limits relationship type applies attraction penalty (discourages sims from autonomously canoodling with exclusive partners’ loved/hated ones unless the relationship is already on the decline)
    • Not Looking For Love hidden trait applies attraction penalty (discourages sims from autonomously pursuing new romances while in exclusive relationships, while preserving the ones they already had at the time they got the trait)
  • Improved socials
    • All custom socials except Ask Relationship Status now have ITUNs, with advertising for default and custom traits as needed
    • All socials are autonomous (I may change it so Ask For Open/Closed relationship interactions are user-directed only, though, because those ones being autonomous has been a little annoying in my tests [this change was made in version 0.2]). This includes Ask To Include Sim In Relationship; if that one is initiated by a non-selectable sim, instead of a popup menu appearing to choose who they’re asking to include they’ll just pick one of their partners at random instead
    • All newly created romantic socials also have friendly versions
  • New cheat
    • Enter “debugPolyamory” to toggle debugging messages on and off. This is faster for me than having to go through and comment out all my debugging messages before posting each version of the mod; also, this way testers can turn the messages on if there’s a problem and tell me if they say anything useful.
  • Bugs identified
    • [Solved in version 0.2]Getting Open-Minded from books doesn’t seem to be working anymore, haven’t gotten that fixed yet
    • [Seems to be solved in 0.2]I’m getting a little more lag than I used to, and sims get frozen/stuck in loops during socials and need resetting more often - I’m not 100% certain this mod is what’s causing that, but it seems like the most logical explanation. I think the method that applies Off-Limits relationships may be the culprit, and it may need to be totally rewritten from scratch after my break because its logic is pretty gnarly
    • [A little better in 0.2; still takes about 20 seconds on a pretty decent computer, when activating the mod or loading a save with the mod active in Sunset Valley and Riverview]The severity of the lag when this mod is activated or a world where it’s active is loaded seems to depend on how large it is and how many sims it has, so I want to streamline my world load/sim instantiated/mod activated methods
Field Researcher
Original Poster
#5 Old 2nd Oct 2020 at 10:56 AM Last edited by lizcandor : 2nd Oct 2020 at 5:42 PM.
Version 0.2 updates: fixed trait assignment from reading books; rewrote some twisted logic, which seems to have helped with lag and fixed a few bugs with jealousy and attraction; made Ask For Open/Closed relationship user-directed only; other things
Field Researcher
Original Poster
#6 Old 11th Oct 2020 at 12:13 AM Last edited by lizcandor : 15th Oct 2020 at 5:12 PM.
Version 0.3 updates: More complex LHS rules for all the socials (especially Ask To Include Sim In Relationship - success now depends on how the target feels about the actor and also about everyone they're being asked to include). Better handling of Off-Limits relationships, through a whole new dictionary that will hopefully prevent there being leftover Off-Limits relationships after changes in relationship status. Sims should now be unable to confess to cheating or tell about someone else's cheating when they shouldn’t think any cheating happened.

[Edit since it's been less than 24 hours:]
Version 0.4 updates: Better thumbnails for the reward traits, addition of unique positive/negative buffs for polyamorous relationships. Also, a question: I've now completed almost all the high-priority and most of the low-priority features that I wanted to add, so what's left is just cosmetic improvements, finding and fixing bugs, and the two high-priority features I'm totally stuck on (dreamtree and PDA reactions), plus some low-priority features that I'm wondering if I should even bother with. Is anyone actually interested in having event-based assignment of attraction rewards, asking sims to treat specific others as Off-Limits, less aggressive non-RM breakups, or autonomous non-RM relationship-defining socials as part of this mod, or should I leave them out?
Field Researcher
Original Poster
#7 Old 27th Oct 2020 at 7:39 AM
Version 0.5 updates: Added preservation of relationships while traveling, fixed the bugs adding that created (at least those I've noticed). Fixed several buggy social rules, interactions should work correctly between sims who are less close now. Changed the organization of the code a lot, to start building a cross-mod namespace; fixed the bugs that created as well. Reduced the frequency of Reflection invocations, and hopefully made them more efficient. Discovered in my testing that it's very easy to create volatile relationship configurations by using Ask To Include Sim In Relationship to get sims who aren't close into relationships with each other, so I might make that interaction harder.
Field Researcher
Original Poster
#8 Old 12th Nov 2020 at 1:51 AM Last edited by lizcandor : 28th Jun 2021 at 4:48 AM. Reason: New versions
Draft documentation

This is a mod for improved polyamory! You still can’t have multiple EA-defined partners (going steady, engaged, etc.), but you can give romantic relationships involving an unlimited number of sims more structure than you can get with just No Jealousy and Above Reproach. This works by adding extra rules regarding jealousy, centered around…

Open and Closed Relationships
Take two sims in a relationship, A and B, and a third sim C not yet involved with either of them. If A has the Open-Minded trait, A can see their relationship with B as:
  • Open - A won’t get jealous if B starts a romance with C, although A may still be hurt if B lets their relationship deteriorate while courting C. Depending on A’s traits, the liking points threshold for A to feel overlooked by B is either kNeglectThreshold (default: 40) or kSpecialNeglectThreshold (default: 20). See the Additional Traits section for details.
  • Closed - A will get jealous if B starts a romance with C, unless A has the Open-Minded trait and has a Closed relationship with C as well. If A has the Open-Minded trait and Closed relationships with both B and C, A won’t mind B flirting with C – unless, again, B lets their relationship with A deteriorate.
If A and B are romantic interests but not in a committed Open or Closed relationship, A won’t get jealous over B until the romance has lasted at least kSeriousRomanceThreshold (default: 6) days. After that, how A reacts to B’s romances with other sims will depend on A’s traits - if A has both the Open-Minded trait and the Prefers Non-Monogamy trait, A will treat their relationship as if it’s Open, but if not, A will treat it as Closed.

Additional Traits
The Open-Minded trait unlocks new relationship-defining interactions and the Discuss Polyamory interaction, and allows sims to not see non-monogamy (in their own and other sims’ relationships) as cheating if the terms of the relationship in question are being respected.
  • All sims without this trait (even sims with Prefers Non-Monogamy!) will behave as usual.
  • Sims with this trait may get a happy moodlet from seeing their partners do romantic socials together.
  • The Open-Minded trait can be earned through gameplay (see Interactions) or bought with lifetime happiness points; it’s available from childhood onwards, so it can keep the children of polyamorous parents from getting upset with their parents for having multiple partners.
The Prefers Non-Monogamy trait gives sims a different threshold for feeling forgotten by their partners (kSpecialNeglectThreshold instead of kNeglectThreshold), and sims with Prefers Non-Monogamy will get a sad moodlet instead of feeling betrayed if they’re neglected in favor of their partners’ other partners.
  • Sims with this trait will still feel betrayed if a partner does something that violates the boundaries of the relationship, though, and they will still need the Open-Minded trait to not get jealous in non-monogamous relationships.
  • Prefers Non-Monogamy is a Create-A-Sim trait, and can be given to sims randomly when they’re created or when they age up.

”Define Relationship” Menu
Express Love initiates an Open or Closed relationship and (if you do the romantic version) adds romantic interest status.
  • Comes in romantic and friendly versions (both under the Define Relationship tab).
  • What type of relationship each sim gets depends on their personality and the context (for example, Flirty sims always get Open), so it's best to check by using Ask/Show Relationship Status.
Ask for Open Relationship changes the relationship type to Open for both the actor and the target.
  • Comes in romantic and friendly versions.
  • Won’t affect sims with the Commitment Issues trait, even if they accept or initiate it.
Ask for Closed Relationship changes the relationship type to Closed for both the actor and the target.
  • Comes in romantic and friendly versions.
  • Won’t affect sims with the Flirty trait, even if they accept or initiate it.
Ask To Include Sim In Relationship gives the target the selected type of relationship with the selected sims. This is the interaction to use for asking for partners' permission before starting romantic relationships with new sims.
  • If the actor isn’t in Open or Closed relationships with the selected sims within 24 hours of this, the target’s relationships with those sims will revert to whatever they were before.
”Friendly” Menu
Discuss Polyamory has a kChanceOpenMindedFromDiscuss (default: 25%) chance of giving the target the Open-Minded trait.
  • If sims Discuss Polyamory with a partner whose perspective on the relationship is different than theirs (one thinks it’s Open, other thinks it’s Closed), there’s a kChanceRelationshipUpdateFromDiscuss chance that the more charismatic one between the two of them will change the other’s mind.
Ask Relationship Status makes the target report their relationships.

”Mean” Menu
End Relationship ends a relationship and makes the actor and target exes.

Other Interactions
Self Interactions (click on active sim)
  • Show Relationship Status reports the active sim’s relationships.
Object interactions
  • Research Sim Sexuality on the computer has a kChanceOpenMindedFromResearch (default: 25%) chance of giving a sim the Open-Minded trait every 30 minutes.
There’s also a kChanceOpenMindedFromBook (default: 25%) chance of getting the Open-Minded trait from finishing a romance or trashy novel.

There are two packages in the downloads section, lizcandorPolyamory and lizcandorCommon. Install both; lizcandorPolyamory has code specific to this mod, and lizcandorCommon has code to be used across multiple mods that’s necessary for lizcandorPolyamory to work.

This mod also requires two other mods to function: Arsil's Custom Traits Manager to allow the custom traits to load, and Battery's C# Script Utility for generating sim-selection menus and calculating sims' ages.

This mod is inactive by default, and has to be activated with cheats; this reduces the risk of your saves being exposed to it unintentionally. Before the mod is activated, all it’ll do is prevent its traits from being added to sims (outside of Create-A-Sim).

To activate it, enter the cheat "activatePolyamory". There will be a short lag as everything is set up. A similar amount of lag may occur whenever a world with this mod already active is loaded.

Once the mod is activated in one world in a save, it will be activated automatically in every world that's visited in that same save afterwards; this means relationships will be preserved while traveling, and it's not necessary to re-activate in every destination. Mod activation should not carry over between different saves.

Once this mod is activated in a save, it has to be deactivated before removing it from your game. This is done by entering the cheat "deactivatePolyamory" in every world you've visited in the save. The deactivation cheat removes the mod's custom traits from all sims in the currently loaded world; they must be removed before removing the package that contains them, or your save will not load correctly afterwards (see the Custom Traits Manager for details).

If you're deactivating the mod but not removing it from your game, you'll still need to quit and restart to undo the changes it makes to EA interactions.

This is a pure script mod, and should not conflict with most other mods. However, if Woohooer is installed, romance and woohoo jealousy must be set to None in Woohooer's settings or Woohooer will continue triggering jealous reactions even when this mod does not (each mod has its own jealousy method).

This mod was built and tested on patch 1.69, and may not work on previous patches.

To the creators of S3PE To NRaas forum posters who inspired this mod
And to MissPat for testing, encouragement, and feature recs since the barest beginning of this mod!
Download - please read all instructions before downloading any files!
File Type: zip (76.4 KB, 14 downloads)
File Type: zip (82.4 KB, 15 downloads)
File Type: zip (22.8 KB, 14 downloads)
Field Researcher
Original Poster
#9 Old 16th Nov 2020 at 6:50 AM Last edited by lizcandor : 16th Nov 2020 at 6:09 PM.
Last update for a bit - fixed a few things I hadn't realized were broken after splitting the mods, and added 2 new interactions to lizcandorPolyamory to let sims appear to get engaged/married to multiple partners (these interactions do the animations for engagement and marriage without changing relationship status). Post #8 contains the most current files.

EDIT: Whoops, not the last update after all - one of the deactivation cheats was broken. Fixed now, all files are updated!
Lab Assistant
#10 Old 28th Nov 2020 at 10:12 AM
Hey Liz! I haven’t had the chance to test your mod out yet (IRL stuff), but I’m hoping to soon. I’ve wanted an attraction system like this for ages and I’m so excited that someone is bringing it to fruition! I do have one tiny suggestion: would it be possible to add hopeless romantic to the list of traits that like zodiac compatibility? Astrology does have some romanticism to it
Field Researcher
Original Poster
#11 Old 28th Nov 2020 at 9:13 PM
Hey, thanks! I've actually found and fixed some minor attraction bugs since my last update and just not gotten around to uploading the new packages, so it's probably best you're not already testing the current version anyway. Adding Hopeless Romantic as liking sign compatibility is a good idea! And while I'm thinking about it, I should probably make all my lists of traits that get certain kinds of attraction tunable instead of hardcoded.
Field Researcher
Original Poster
#12 Old 12th Dec 2020 at 7:18 AM Last edited by lizcandor : 14th Dec 2020 at 5:55 AM.
Weeks later, here are the most updated versions! Updates:
  • Fixed blocking of romantic socials between non-attracted sims; majority of sims will now respond awkwardly to romantic socials from anyone they're not attracted to, sometimes neutrally in special cases. Flirty and Hopeless Romantic sims will behave as normal though. If this makes things too hard, it helps to expand the list of buffs sims are attracted to, or just raise the base attraction score or lower the attraction threshold.
  • Timeout between interaction-triggered attraction updates is shortened to 2 hours for active sims; still 1 day for inactive sims.
  • Fixed assignment of custom relationship types when sims go steady
  • Made charisma a universally attractive skill
  • I forget which change caused this, but the lag I was seeing before seems better now
  • Hopeless Romantic sims care about compatible/incompatible astrological signs
  • Put relationship-boundary-defining interactions in their own tab, "Define the Relationship", to reduce clutter in the friendly/romantic tabs
  • Fixed (I think) automatic assignment of custom traits to sims who shouldn't have them
  • Added to lizcandorAttraction 0.4 - fixed excessive attraction update notices.
Field Researcher
Original Poster
#13 Old 3rd Apr 2021 at 4:31 AM Last edited by lizcandor : 3rd Apr 2021 at 10:21 PM.
Added asymmetrical attraction in lizcandorAttraction 0.6, sort of - there's only so much I can do on that, but the attraction mod now calculates and stores separate scores for both sims in any pair, and decides how sims respond to romantic socials based on those scores instead of the mutual one.

Symmetrical score changes: if both scores are above the attraction threshold, the attraction score in those sims' Relationship object (that's the score that decides if they get the attractive company buff) is set as the average of the two scores; if not, it's set to whichever score is lower. So sims only get the attractive company buff and the effects associated with it if the attraction is mutual. The attraction jingle and swarm of hearts will still play, but if the attraction isn't mutual, only one sim will get the hearts.

New asymmetrical score addition: mod consults the asymmetrical scores (stored in the custom class that tracks whether it's time for an attraction update, not the Relationship class) instead of the symmetrical one when deciding whether the target of a romantic social finds the actor attractive enough to *maybe* give a positive response.

The result of this is that if sim A went to the spa and got so many positive buffs that every sim around thinks they look amazing now, and sim B did nothing special, sim B may respond positively to flirting from sim A, but A will still reject B if B is the one to initiate the flirt. Whereas before, sim A being pretty would make them both attractive to and attracted to everybody, which didn't make any sense.

[Edit: I've realized the asymmetrical attraction is not fully Woohooer-compatible. The current version of Woohooer sometimes overwrites the attraction scores set by this mod; sims will still reject romantic socials from any sim my mod says they're not into, but they may still get the Attractive Company buff, and be pushed to initiate flirting with a sim my mod wouldn't let them accept that same flirting from. Not sure how to reconcile that, will come back to it.]
Field Researcher
Original Poster
#14 Old 27th Jun 2021 at 3:46 PM
Latest updates: attraction mod accommodates asymmetrical relationships better now, and the cheat "allowManualAttractionUpdates" toggles the visibility of an interaction that triggers an immediate attraction update and a report of the new score.

This is probably the last update before I call these done (at last ) unless I or anyone else finds a major bug.
Back to top