• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Hanlein

Recruit
May 1, 2024
3
5
Hello there, idk where should i post this because i think its a bug but it is also modding related bug.

I tried to modify marriage_scripted_modifiers but It's not working for AI when fate of iberia dlc is enabled, I tried tons of times I am sure when fate of iberia dlc disabled its working fine for AI. How am i sure? Because of this code at the screenshot, AI should not arrange marriage or engagement with different heritages. So when fate of iberia enabled ai does not take into account because i see plenty of ai arrange with different heritages. But when fate of iberia disabled this code perfectly works because i dont see any, not even one ai arrange marriages with different heritages. To clear out things i should say -5000 modifier working for me as a human player no matter fate of iberia dlc is enabled or disabled, my issue is with AI to AI interactions, something in fate of iberia breaks this code.

(I have no other files in my mod's folders, I'm only working with marriage_scripted_modifiers file, and i have no other mods.)

Screenshot_162.png
 
When putting triggers inside a weight modifier, you don't need to add trigger = {}, the triggers go straight inside the modifier = {}. You can check the vanilla 00_marriage_scripted_modifiers.txt and compare.

And there's a better way to check than "I'm not seeing any ai arranging marriage with different heritages": Try arranging marriage between someone in your court and someone in a foreign court yourself. You should be able to literally see if the AI modifier is applied.
 
  • 1Like
Reactions:
When putting triggers inside a weight modifier, you don't need to add trigger = {}, the triggers go straight inside the modifier = {}. You can check the vanilla 00_marriage_scripted_modifiers.txt and compare.

And there's a better way to check than "I'm not seeing any ai arranging marriage with different heritages": Try arranging marriage between someone in your court and someone in a foreign court yourself. You should be able to literally see if the AI modifier is applied.
Thank you for help, i didn't know that.

And yes i checked if modifier applies, modifier applies as i am the actor as a human but when one ai court to another ai court arrange marriages they arrange like this modifier is not applied, i even change characters to see. Problem is; #1 AI is arranging with #2 AI but when i change character and play as #1 AI i broke their engagements and try to rearrange with same characters and i see -5000 modifier there, so #1 AI should not arrange from the beginning. So i assumed this modifier is not applying AI to AI interactions and trying disabling dlc's to figure out if it because one of dlc's then when i disabled fate of iberia it worked, i tried several times again to be sure and yes it was because fate of iberia dlc. I want other AI's to properly work too, i dont want this modifier for just players. I was dealing with this issue weeks and finally i figured out source problem but i dont know what should i do except disabling fate of iberia. I would appreciate any help. (I tried proper code without trigger ={} but still no fix)
 
Thank you for help, i didn't know that.

And yes i checked if modifier applies, modifier applies as i am the actor as a human but when one ai court to another ai court arrange marriages they arrange like this modifier is not applied, i even change characters to see. Problem is; #1 AI is arranging with #2 AI but when i change character and play as #1 AI i broke their engagements and try to rearrange with same characters and i see -5000 modifier there, so #1 AI should not arrange from the beginning. So i assumed this modifier is not applying AI to AI interactions and trying disabling dlc's to figure out if it because one of dlc's then when i disabled fate of iberia it worked, i tried several times again to be sure and yes it was because fate of iberia dlc. I want other AI's to properly work too, i dont want this modifier for just players. I was dealing with this issue weeks and finally i figured out source problem but i dont know what should i do except disabling fate of iberia. I would appreciate any help. (I tried proper code without trigger ={} but still no fix)
Do you want to ban cross-heritage marriage altogether? If so, you should probably modify the marriage interaction itself, not the ai acceptance modifiers
 
  • 1Like
Reactions: