I've found these cheats in the code. They can be used to fix your sims relationship if it's gone haywire!
Edit: this fix may only be temporary (resets when you travel) so I suggest copying the SIM ID's somewhere for you to paste in later if you need to. I apologize but the command that could permanently fix this is disabled in the code. We'll need the patch.
First we need SimID's...
sims.get_sim_id_by_name yoursimfirstname yoursimlastname
This command will print a number at the end, similar to: 775464154248314888
Make note of this number, it's your sim's unique id, I recommend making a copy somewhere if you'll be using these commands a lot.
Then run the command again for the other sim you're wishing you edit relationships for:
sims.get_sim_id_by_name targetsimfirstname targetsimlastname
Make note of this sim's ID as well.
Add Relationship Bit
(This lets you modify the type of relations between two sims. It requires sim ID)
relationship.add_bit yoursimID targetsimID relationshipBit
You can not REMOVE a bit, you'll have to override it with another. For example setting family_husband_wife will override family_brother_sister
The available family relationshipBits are as follows:
mentioned their dead spouse was still showing as married:
, I have an issues where my sims husband has died. its now 3 sim weeks on and she cannot remarry as the game thinks she is already married. Is there a cheat code that can terminate her earlier relationship even though the sim is now dead?
The relationship.destroy cheat should fix this issue.
Destroy a relationship:
Now we destroy the relationship (because were a horrible person;)):
relationship.destroy yoursimID targetsimID