RimWorld

RimWorld

Diplomatic Marriage +
90 Comments
Ionfrigate12345  [author] 16 Jul @ 6:55am 
@mayonnaise Hi, under MIT license you can use any of my idea behind the mod, or any code or function to make your own mod. The github is public. Just don't simply duplicate my mod and claim to be yours.
mayonnaise 15 Jul @ 6:46pm 
hey, i was wondering if there was a way i could use the "permanent alliance" function of this mod in a mod idea of mine i'm brewing up? much thanks!
Wervdon 11 Jul @ 8:05am 
I was kind of hoping this would do something I did via cheats (character editor) in my last game. Diplo marriage (from more faction events) proposed, didnt want to lose the pawn but wanted to accept the marriage, said screw it she can move in with us -- just added my pawn and his new fiance back.

Funny thing was she was awful (bad ideology*, lots of disabled work types, etc.) but it still made things interesting and I kept my pawn.

*What was hillarous (and sad about it) was my pawn was already unhappy at being dumped/rejected a number of times (biggest reason I wanted to take the marriage for him). Then her ideology was one that had lovin set to never.
Ionfrigate12345  [author] 11 Jul @ 7:24am 
UPDATE:

The space maps from the new Odessy DLC are now also identified and behave in the same way of previous SOS2 & Rimnauts 2 space maps.
Nirahiel 18 Jun @ 11:57am 
Alright
Ionfrigate12345  [author] 18 Jun @ 11:55am 
@Nirahiel Hi sorry it's not that reason. I'm currently focusing on other mods, and especially on 1.6 update, some may require major change because of Odyssey to come. I'm not working on this mod for now, I'll check your suggestion later
Nirahiel 18 Jun @ 11:51am 
Sooo you don't like my suggestion ?
Ionfrigate12345  [author] 17 Jun @ 11:54am 
UPDATED to 1.6
Nirahiel 17 Mar @ 11:08am 
Would there be a way to either set or at least know how much time before a marriage is proposed, and know on a quick glance if we even have pawns that *could* marry ?
For example, a letter pops up :
"Your colonist <name>, child of your faction leader <name>, is now adult.
These factions may propose a diplomatic marriage for them :
* faction list, with estimated time before proposal *"

If we had no compatible faction before (not enough relation) but we do have enough now, maybe a different letter :
"The faction <name> now considers diplomatic marriages with your faction.
These pawns are eligible for diplomatic marriage :
*pawn list*
This faction will propose a marriage in roughly <time>"

(Also if it could be retro-active, meaning if you do code this and after I update the mod, any currently eligible pawn and faction will trigger the letter)
GVLT 11 Mar @ 6:05am 
Still have the problem with enemy attackers spawned during the event not attacking at all.
Also, may I suggest making this event a bit more variable with the ability to generate encounter map and control PA pawns during it?
Ionfrigate12345  [author] 18 Dec, 2024 @ 5:14pm 
@GVLT Depending on the progress of modded events. I can't guarantee
GVLT 18 Dec, 2024 @ 4:27pm 
Is the mod safe to remove mid-game? Judging by the Dub's Performance Analyzer it's on a heavier side.
Ionfrigate12345  [author] 28 Oct, 2024 @ 2:20pm 
@GVLT The logic is pretty complex, it depends on the other NPC pawn selected from world pawns pool and there is a match criteria including age difference. Just like real life or in CK you have no control of what others will propose.
Ionfrigate12345  [author] 28 Oct, 2024 @ 2:17pm 
@GVLT Yes it may disappear after save load if you dont reply. For this event since it will immediately remove a colonist out of your faction I prefer let player have some time to prepare so I used a prospondable message type. However this kind of message doesn't seem to be correctly serialized.
GVLT 23 Oct, 2024 @ 10:50am 
Also, I have a few questions: how pawn is chosen for proposal? Why I have to give up older and valuable sons while daughters are becoming old virgins?
Why does couple requiring help from raid always decide to just chill in the snow instead of going inside the house or home area at least?
GVLT 15 Oct, 2024 @ 3:12pm 
Is proposal supposed to dissappear after save load?
Ionfrigate12345  [author] 17 Sep, 2024 @ 2:40pm 
@然提携夜灯 我试试能否改成把在小地图上的NPC排除出候选名单

@Rhaenys This mod focus on marry-off, which means your pawn will leave to join an NPC ally faction yet you still need to worry about their safety to keep the union. If I let player ideology leader marry off, they will no longer be your leader for they are no longer player controlled pawn, unless I let the other side marry in, but marry-in is not a part of this mod for making your own pawn a VIP of the union will make the most important playstyle of this mod pointless. If you like marry-in, a mod called Romance on the Rim can do similar things
Rhaenys 17 Sep, 2024 @ 1:22pm 
Amazing, I am so sad I didn't know about this mod sooner. This is a new must for my medieval play games.

Do you have any plans to allow the players leader to marry the child of another leader? I know there would be an issue with leaders not spawning with family, but I am very willing to customize families of leaders in my saves, this feature would add so much!
然提携夜灯 16 Sep, 2024 @ 4:53am 
殖民地有其他派系的临时小人的时候,临时小人也会触发外交婚姻的事件。可以不同意,不同意减好感,但是同意的话就是宾客失踪任务失败,然后联姻的派系加好感。临时小人不应该触发这个事件。
然提携夜灯 13 Aug, 2024 @ 9:49pm 
@Ionfrigate12345 好了
Ionfrigate12345  [author] 13 Aug, 2024 @ 9:28pm 
@然提携夜灯 重新清理上传了一下,你可以取关几秒钟再重新订阅试试
然提携夜灯 13 Aug, 2024 @ 8:49pm 
主要问题是我之前排查了很久,mod列表很大,排查了两天发现是这dub's performance analyzer
会检测mod文件夹里是否有游戏原版的dll文件。然后恰好这个mod就有,而且是在log的最上面,我找了两天才找到进游戏就弹窗的原因。
然提携夜灯 13 Aug, 2024 @ 8:44pm 
@Ionfrigate12345 和dub's performance analyzer一起装就会检测。你可以看一下订阅后工坊的mod文件夹,里面的assemblies文件夹里有很多dll文件
Ionfrigate12345  [author] 13 Aug, 2024 @ 8:29pm 
@然提携夜灯 我并没有看到这类红字,是不是你的assemblies文件夹没清理干净?
然提携夜灯 13 Aug, 2024 @ 5:52pm 
mod文件中有原版游戏的dll文件,进游戏有一条红字提醒,虽然不影响游戏。
Ascaris 14 Jul, 2024 @ 1:58pm 
RimHUD is auto-deactivating this mod due to an error for me. Heres the report it gave out: https://pastebin.com/cxYrXaAq
Ionfrigate12345  [author] 7 Jul, 2024 @ 2:35pm 
For those who play DMP together with Dynamic Diplomacy:

I just updated the latter by adding a new feature called "Semi battle simulation", allowing you to join any battle sim between two NPC factions. The battle wont start until you arrive (unless timeout) so you now have another way to help your PA expand by winning the DD battle sim.

Later I may add some warning messages in DMP for all DD battle sims concerning your marriage union ally. But it's not a must have as long as you dont miss the DD popup messages.
wcpwnsuto 4 Jul, 2024 @ 5:56pm 
Awesome Update!
Ionfrigate12345  [author] 4 Jul, 2024 @ 10:03am 
A warning about the new ally takeover feature:

It may make vanilla settlement assault too easy with such ally reinforcement. It's recommended to use a mod making enemy faction base more powerful, such as Vanilla Faction Base Expanded or Powerful Faction Base
Ionfrigate12345  [author] 3 Jul, 2024 @ 10:32pm 
UPDATE:

Added a new option on radio station to ask reinforcement from PA faction when attacking a regular enemy settlement. This will make your PA takeover the settlement after victory, instead of destroying it as usual.

This feature allows you to help your PA expand much faster. You just need to attack an enemy settlement, once entering the map you can call PA in your colony to join you.

Does NOT work on Rimcities special settlements (city, citadel etc.). For Rimcities joint assault, there are other quests for this purpose.
Ionfrigate12345  [author] 1 Jul, 2024 @ 9:12pm 
I updated Readme in my github, including Chinese and French versions

The old one was written in the beginning of Beta, lots of new features are missing.
Ionfrigate12345  [author] 29 Jun, 2024 @ 2:32pm 
I changed abit how Global Alliance starts against your PA:

In previous version it counts only the ratio of total number of settlements, but now Rimcities special settlements (cities and citadels) contribute to more weight during the calculation whether your PA is enough powerful to be targeted by other factions.
Ionfrigate12345  [author] 29 Jun, 2024 @ 12:18pm 
UPDATE:

Add widgets to show info about current Permanent Alliance and temporary stay incident, if they are available, so that you won't be confused who is your permanent ally, which child you married off, or when they will leave your colony during a temporary stay.

The widgets are on the bottom right, just above icons panel, where it shows biomes and temperatures etc. The detailed info are shown only on mouse hover.
Ionfrigate12345  [author] 27 Jun, 2024 @ 11:35pm 
Also I mark EdB Prepare Carefully as incompatible. This mod is actually incompatible with alot of mods (some modders even refuse to debug if the bug reporter mentions that they use this mod), for it s known of destructive coding on pawn generator. With DMP it may reroll suits worn on your child/child in law once they leave your colony map and become world pawns. As a result, it will become pointless to arm them by the best tier armors and clothings for their survival of future battles. With Prepare Carefully they will all be lost the next time they come to your colony map.

For random NPC pawns suits rerolling may not be a problem, but for DMP it will void a major part of the feature.
Ionfrigate12345  [author] 27 Jun, 2024 @ 7:39pm 
UPDATE:

A small compatibility update for VEE (Vanilla Events Expanded), now the chances of most incidents of this mod can be configured dynamically in VEE, except Temporary Stay which uses complex and dynamic chance calculation.

Just pay attention to the quest Permanent Ally City Defense, the chance is tripled when the alliance is active against your PA (if you have both Rimcites and Dynamic Diplomacy) so setting to a higher value may make yourself too busy.
Glasninov 24 Jun, 2024 @ 9:30pm 
一个很有趣的mod:cozybethesda:
Ionfrigate12345  [author] 24 Jun, 2024 @ 8:47am 
UPDATE:

Rimnauts 2 Celestial bodies maps are also considered as SOS2 space maps.
Ionfrigate12345  [author] 23 Jun, 2024 @ 12:56pm 
UPDATE

A small update for more realistic chance calculation of Rimcities city defense quest:

When your permanent ally is targeted by the special variant of global military alliance in Dynamic Diplomacy, they will ask you much more often to help them defend their large cities (In another word, they will send you Rimcities city defense quest much more often)

Please note that this Rimcities quest may make them loose the city if you ignore or fail it, its how it works in "Vanilla" Rimcities
Ionfrigate12345  [author] 22 Jun, 2024 @ 1:42pm 
UPDATE

A small fix that I didnt think of for A Petition For Provisions patch:

Now the items request option is unavailable on SOS2 space map, just like other inappropriate mod events. The APFP delivery caravan NPC and their animals obviously don't have EVA suits protections
Ionfrigate12345  [author] 21 Jun, 2024 @ 8:09pm 
Just like previous updates, if your current save have both DMP and DD, you may experience a loading order changed warning after sorting the mod list, but its harmless.
Ionfrigate12345  [author] 21 Jun, 2024 @ 8:02pm 
UPDATE:

Now DMP can also collaborate with Dynamic Diplomacy (DD).

In DD, there is an event Global Military Alliance which triggers when one faction is too powerful and is about to conquer the whole planet, this event make all other factions ally themselves and declare war on the most powerful one.

With DMP + DD, your permanent ally may be targeted by a special DMP variation of alliance. Unlike DD which let only NPC fight themselves, the DMP version of alliance will make the whole world declare war on your permanent ally AND the player. If you use the features of Rimcities (or other mods of your choice) to help your PA to become too powerful, now you'll face the challenge against the whole world together with your PA.

Permanently hostile factions and the Empire may or may not join the alliance against you, depending on the mod config of DD (This mod reads the config of DD)

I also updated DD for some code improvement.
Ionfrigate12345  [author] 19 Jun, 2024 @ 9:40am 
UPDATE:

Integration done for A Petition For Provisions (APFP). The code of this mod is well organized so that I easily injected my Harmony patches. Didn't take me alot of time.

Details about how it works can be found in the tooltip of the new in-game mod config But to summerize in brief words:

1. Items requests become a privilege offered exclusively by your permanent ally. You can no longer make request to any non-hostile faction.

2. There is a CD after each successful transaction until you can make another request (my patch considers the moment when APFP caravan drop any goods as a successfuly trasaction).

3. The CD length depends on the power of your permanent ally, more precisely, on the percentage of their settlements over settlements of all factions on the world.

4. If Rimcities is installed, large cities are also counted as settlements during this calculation.

This way it will have real benefit to help your PA to conquer the world.
Ionfrigate12345  [author] 18 Jun, 2024 @ 7:31am 
UPDATE:

-Added Rimcities city defend quest as well.
- For Rimcities quests, fixed a bug causing quest to show incorrect description and look target
- Now the couple will likely to appear among NPC of your permanent ally in all Rimcities quests.

The version seems stable enough, I now remove the Beta tag.
Ionfrigate12345  [author] 16 Jun, 2024 @ 9:08pm 
If you want to help me test this event via dev mode, it can be triggered in

Enter World map-> Open Debug Action Menu -> Do Incident (World) -> DMP_Rimcities_PACombinedAssault

This quest is NOT prohibited if the player is on SOS2 space map, unlike most others
Ionfrigate12345  [author] 16 Jun, 2024 @ 8:53pm 
UPDATE:

As I said just promised days ago, this update introduces a BETA version with collaboration of Rimcities.

Now permanent ally may ask you to assault large cities of your common enemies, if you have Rimcities installed. The quest is fully from Rimcities, unless it's triggered by my mod and always given by your permanent ally. It wont interfere with the same quest in Rimcities and the chance is calculated independently in this mod.

If you have Rimcities, please place this mod after it (or use tools like Rimpy to sort again). This may change the mod loading order of your current save but is harmless despite the warning message

If you dont have Rimcities, this update wont have any change.

This is still a BETA for the test of collaboration with Rimcities. If works well, I'll make more content into this quest (making the couple guaranteed to appear in combat, for example), also more Rimcities events to come as new interactions with PA, such like city defense, assassination, etc
Short 13 Jun, 2024 @ 8:13pm 
this is great please keep up the work!
Ionfrigate12345  [author] 12 Jun, 2024 @ 2:52pm 
My idea to be done for the first post-beta version are to introduce some collaboration with other existing and popular mods (if they are installed):

- (Rimcities) The permanent ally has additional chance to ask you to help them attack a city. This is a Rimcities quest that my mod can directly trigger.

- (A petition for provisions) Only permanent ally will offer you these cheap goods at your choice and deliver them to your home. Other factions will simply deny your request. Also, failing to offer enough silver will have a chance to break the PA. Otherwise this mod is abit too OP.

I will try to achieve them with only harmony reflection (this way there wont be dependencies on these mods), but I need to dig abit into the code of these two mods to see if they are feasible.
Ionfrigate12345  [author] 12 Jun, 2024 @ 2:25pm 
UPDATE:

1. Fix a bug causing homesick (nostalgia) event still happening even the player only has SOS2 space map.

2. Fix several language texts in some popup letter titles making placeholders like {0} to appear
Ionfrigate12345  [author] 2 Jun, 2024 @ 7:08am 
@Narlindir It not an error message, its one of the console messages I output during Beta to monitor the status of permanent alliance and for the facility off debugging in case some weird bugs are reported by others. I ll hide them once beta is done.

If you need some explanation about this message, the script check regularily if you currently have a valid permanent alliance, INVALID_EMPTY means you dont have it. There are other status codes if you open the xml file
Narlindir 2 Jun, 2024 @ 6:45am 
https://gist.github.com/HugsLibRecordKeeper/adb643469c2bbf749967c743953558bb

getting quite a few errors from this:

DMP: Permanent Alliance Validity Check. Result code:INVALID_EMPTY
DMP: Permanent Alliance Validity Check. Result code:INVALID_EMPTY
DMP: Permanent Alliance Validity Check. Result code:INVALID_EMPTY