RimWorld

RimWorld

[Obsolete]NoDivorce
65 Comments
tiagocc0  [author] 6 Jul, 2024 @ 1:25pm 
I haven't been playing or making mods for rimworld anymore.
But anyone is free to fork this mod and continue it, no credits are necessary.
TurtleShroom 6 Jul, 2024 @ 1:19pm 
PLEASE PLEASE PLEASE update this Mod to V1.5 !
TurtleShroom 19 Jun, 2024 @ 2:09pm 
Does this Mod work in V1.5 ?
tiagocc0  [author] 10 Jun, 2024 @ 1:28pm 
The problem was way before the last rimworld version, the problem is that there must be other checks that need to be patched.
Archie 9 Jun, 2024 @ 2:03pm 
Looking at the code and how it patches things, it seems to be perfectly fine since you're running a prefix that just immediately skips whatever the breakup interaction calculates and simply changes the result to 0f no matter what, which is good, so it -should- be working just fine. Most you'll probably have to do is recompile it with rimworld's 1.5 harmony library.
tiagocc0  [author] 12 Apr, 2024 @ 11:40am 
@Big shotgun guy Hi there, it seems this mod wasn't working properly before and it was a pain to test so I never got around fixing it, I probably won't try fixing it
Big shotgun guy 12 Apr, 2024 @ 10:57am 
Hi, can you still upgrade this please? Thanks.
Balthazad 24 Nov, 2023 @ 9:37am 
pille,
you'd just have had to look into the "needs" tab of character editor, activate the "-" to delete memories and then scroll down a bit ;)
Pille 16 Jul, 2023 @ 1:37am 
Thanks tiagocc0!
I think that mod ultimately removes divorce from all couples though, but in a different way than yours.
Pille 15 Jul, 2023 @ 6:40am 
I also found a post on reddit:
r/RimWorld/comments/oxjcms/how_to_change_your_pawns_compatibility/
there are apparently some edits you can do to make pawns more compatible, so the divorce problem is solved "at the root". Apparently it involves a lot of searching and tinkering and trial and error though. I wonder if one could make a mod, maybe separate or as part of character editor, that does that work for you - that is, to create two pawns with high compatibility or change their compatibility in the game.
Pille 15 Jul, 2023 @ 6:40am 
I just started a colony and made 2 pairs of wedded colonists, and for no reason one of the pairs divorced a few days after game start. I used character editor to make them married again, which worked, but now the husband still has the memory of being divorced. Now they are married, but the husband considers his wife a "rival" and hates sleeping in the same bed and the game keeps giving me a notification that I'm lacking beds for colonists. It's like they are married again but the game doesn't properly recognize it - so it seems the entire playthrough is ruined now - all because of a nonsensical divorce.
tiagocc0  [author] 14 Jul, 2023 @ 1:46pm 
Pille, I made this mod really quickly and wasn't able to test it fully, because of that it changes only one location and probably doesn't take into consideration a lot of things, like cheating. I don't have time to change or test it but if you look at the image above you can see I try to return the value zero instead of the of the 0.02 * num * num2, so if the current mod works as intended there is a possibility that instead of returning zero we could return 0.01 or 0.005 maybe, that could mean a very small change perhaps. I could look into it because it would be quick to make as another mod, but like I said, I won't have time to test it. Let me know what you think.
Pille 14 Jul, 2023 @ 1:02pm 
Is there a way you can make it only very very unlikely that a divorce happens, instead of the chance being 0? Maybe include that as an option?
TurtleShroom 11 Jan, 2023 @ 9:35am 
Thank you so much for updating this. I would go insane without it.
Big shotgun guy 6 Oct, 2022 @ 9:22pm 
Nice!
tiagocc0  [author] 6 Oct, 2022 @ 12:58pm 
Can't test it fully be since it run I'm setting it to 1.4, let me know if it is not working.
tiagocc0  [author] 3 Sep, 2022 @ 4:27am 
Glad to be of help
Big shotgun guy 3 Sep, 2022 @ 12:30am 
Your work has brought me back my perfect life. Thank you:winter2019happydog:
Jellypowered 19 Aug, 2021 @ 3:35pm 
No biggie, the workshop has been ultra slow lately. It's good again :D
tiagocc0  [author] 19 Aug, 2021 @ 8:30am 
i did, and fixed right after when i did that, sorry
Jellypowered 18 Aug, 2021 @ 5:38pm 
I think you accidently upload No Affair instead of No Divorce :p
WeskerMo 18 Aug, 2021 @ 12:24pm 
Oh gosh ,thank you, you are so kind!
tiagocc0  [author] 18 Aug, 2021 @ 11:41am 
made a quick dirty patch for no affair, haven't tested it, if you are brave enough, let me know if it works

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2578520697
tiagocc0  [author] 18 Aug, 2021 @ 10:36am 
I have to look up on the code, if it's something easy to find
WeskerMo 18 Aug, 2021 @ 8:29am 
Could you make a mod to disable the affairs?
That is truly annoying.
I Haven't Had Sex Since 2003 28 Jul, 2021 @ 1:15am 
Someone was devastated as a child.
tiagocc0  [author] 24 Jul, 2021 @ 4:29am 
Update it to 1.3, after some tests it seems to be still working.
tiagocc0  [author] 24 Jul, 2021 @ 3:24am 
I have to test this on 1.3, but probably wont need any modifications like my other mods, the problem is that testing this mod takes a long time.
time lapses 23 Jul, 2021 @ 8:42pm 
1.3 plz
tiagocc0  [author] 12 May, 2021 @ 12:57pm 
It has been a long time since i played, but I always used it and was able to start relationships and marry. Maybe something changed in most recent versions?
Tallblackman52 11 May, 2021 @ 9:48pm 
I've noticed when I use the is mod my people also stop from building relationships. like in one play through I had 18 pawns and after I removed this mod 8 of them instantly started relationships...
HARIAK 12 Jan, 2021 @ 10:16am 
very good
WabbaCat 22 Aug, 2020 @ 10:22pm 
Till death do us part.
tiagocc0  [author] 13 Aug, 2020 @ 3:17am 
Updated, no modifications necessary it seems, no errors on latest version but I can't test it right now. Let me know if it isn't working properly.
Halt Bizqit 12 Aug, 2020 @ 3:46pm 
pls we need this <3
Blackblade 10 Aug, 2020 @ 9:03pm 
update for 1.2?
tiagocc0  [author] 30 Jul, 2020 @ 10:23am 
I won't be able to test it on 1.0 right now, I will check it when I have time
OVERLORD 24 Jul, 2020 @ 11:13am 
Error while instantiating a mod of type NoDivorce.NoDivorce: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not load type 'Harmony.HarmonyInstance' from assembly 'NoDivorce'.
at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
OVERLORD 24 Jul, 2020 @ 11:11am 
1.0unavailable,The scarlet letter,Can't start.
Canon 17 Jun, 2020 @ 9:55pm 
Angry king henry noises
tiagocc0  [author] 12 Apr, 2020 @ 3:25pm 
Affair is probably another part of the code which I haven't checked, would have to look it up. Would probably make another mod instead of putting it here however.
Ezaum 12 Apr, 2020 @ 2:24pm 
Why it doesn’t block affairs?
MZZ 3 Apr, 2020 @ 3:10pm 
Yes, when the wedding began, the colonists would walk around the wedding site for a long time (say, two days or more). I reinstalled the game and the bug is gone. Thanks again.
tiagocc0  [author] 3 Apr, 2020 @ 3:00am 
Might be another mod conflict, all this do is return fail everytime the thought about breaking up is called. What is exactly a wedding ramble? The wedding itself?
MZZ 3 Apr, 2020 @ 1:06am 
I not sure, but my colonists are stuck in a wedding ramble. They even don't go to sleep. Could it be because I used this mod? Thanks.
tiagocc0  [author] 3 Mar, 2020 @ 1:27pm 
I patched the first method I found which is run from time to time with a random chance of initiating a breakup, it checks if the pawn is married or not so probably it works if they are lovers or married.

Other types of break up might occur from events but I'm not aware of those.
Meltup 3 Mar, 2020 @ 11:29am 
I was looking at code and description... and still don't get it: does this mod remove only Divorces or all Breakups? Meaning, do pawns need to be married to never break up?
tiagocc0  [author] 3 Mar, 2020 @ 1:14am 
Updated to new Harmony which now is an outside requirement for 1.1 only.
tiagocc0  [author] 27 Feb, 2020 @ 1:50am 
I don't know which formula would be the best, for me and a few people, removing it entirely was good enough. Still, the code for the original function is in the screenshot and the source code is available, anyone willing is welcome to change it however you would like.

The patch I made skips the method RandomSelectionWeight from running by always returning 0, so you can either return a tiny constant value like 0.01 or something by just changing the result in the patch or you can instruct it to receive both variable initiator and recipient and making a new formula.