So, I briefly mentioned this in another post, but since this is a problem that has plagued tons of mods, I'd like to discuss it and find ways to deal with it.
The problem arises out of the "initialize_aristocracy" function and related scripts. If you change the number of lords, ladies, add in new factions, there seems to be an issue with it not generating ages, relationships, families, or other things very well.
For me, I have in my module_constants, this...
Originally, in 1776, we had 22 lords in the first faction, 20 lords in factions 2-6, then 5 lords in five other factions, and 10 lords in the last. There were as many ladies for each faction as there were lords, plus a few extra for daughters.
The problem I'm having is that people's ages are appearing as things like -19, -129, 9, 15, -276, etc. I have some lords related to people in other factions. I have some lords with "she" as their title.
None of the constants have been changed.
I assumed this problem was due to each faction not having 20 lords/20 ladies, so I changed that. Now the problem's even worse and in the "Notes" "Characters" screen, clicking on some of the pretenders, some lords, some ladies, causes the game to crash to the desktop.
Every lady and lord is correctly assigned to their faction, but the patriarchs are often fathers of sons in other factions (for instance, I have a Dutch General who is the son of an Iroquois father. The father's age is 19, the son's is -29).
I know this has been a serious issue for many mods and some have gone so far as to just remove the entire function. I actually really like the marriage function, and the family relations. With the Diplomacy Mod we have in, it makes familial relationships seem more real and life-like.
My questions are:
1. Am I doing something wrong?
2. Is there a way to make this work with extra factions? (we have 12)
3. Are there ways to deal with this?
I'm sorta new to the Module System, but I'm not new to Python.
Thanks in advance, and I appreciate any help you offer. It's really, really stumping me.
Celestialred
The problem arises out of the "initialize_aristocracy" function and related scripts. If you change the number of lords, ladies, add in new factions, there seems to be an issue with it not generating ages, relationships, families, or other things very well.
For me, I have in my module_constants, this...
kingdom_titles_male_begin = "str_faction_title_male_player"
kingdom_titles_female_begin = "str_faction_title_female_player"
kingdoms_begin = "fac_player_supporters_faction"
kingdoms_end = "fac_kingdoms_end"
npc_kingdoms_begin = "fac_kingdom_1"
npc_kingdoms_end = kingdoms_end
bandits_begin = "trp_bandit"
bandits_end = "trp_black_khergit_horseman"
kingdom_ladies_begin = "trp_knight_1_1_wife"
kingdom_ladies_end = "trp_heroes_end"
#active NPCs in order: companions, kings, lords, pretenders
pretenders_begin = "trp_kingdom_1_pretender"
pretenders_end = kingdom_ladies_begin
lords_begin = "trp_knight_1_1"
lords_end = pretenders_begin
kings_begin = "trp_kingdom_1_lord"
kings_end = lords_begin
companions_begin = "trp_npc1"
companions_end = kings_begin
active_npcs_begin = "trp_npc1"
active_npcs_end = kingdom_ladies_begin
active_npcs_including_player_begin = "trp_kingdom_heroes_including_player_begin"
original_kingdom_heroes_begin = "trp_kingdom_1_lord"
heroes_begin = active_npcs_begin
heroes_end = kingdom_ladies_end
soldiers_begin = "trp_farmer"
soldiers_end = "trp_town_walker_1"
kingdom_titles_female_begin = "str_faction_title_female_player"
kingdoms_begin = "fac_player_supporters_faction"
kingdoms_end = "fac_kingdoms_end"
npc_kingdoms_begin = "fac_kingdom_1"
npc_kingdoms_end = kingdoms_end
bandits_begin = "trp_bandit"
bandits_end = "trp_black_khergit_horseman"
kingdom_ladies_begin = "trp_knight_1_1_wife"
kingdom_ladies_end = "trp_heroes_end"
#active NPCs in order: companions, kings, lords, pretenders
pretenders_begin = "trp_kingdom_1_pretender"
pretenders_end = kingdom_ladies_begin
lords_begin = "trp_knight_1_1"
lords_end = pretenders_begin
kings_begin = "trp_kingdom_1_lord"
kings_end = lords_begin
companions_begin = "trp_npc1"
companions_end = kings_begin
active_npcs_begin = "trp_npc1"
active_npcs_end = kingdom_ladies_begin
active_npcs_including_player_begin = "trp_kingdom_heroes_including_player_begin"
original_kingdom_heroes_begin = "trp_kingdom_1_lord"
heroes_begin = active_npcs_begin
heroes_end = kingdom_ladies_end
soldiers_begin = "trp_farmer"
soldiers_end = "trp_town_walker_1"
Originally, in 1776, we had 22 lords in the first faction, 20 lords in factions 2-6, then 5 lords in five other factions, and 10 lords in the last. There were as many ladies for each faction as there were lords, plus a few extra for daughters.
The problem I'm having is that people's ages are appearing as things like -19, -129, 9, 15, -276, etc. I have some lords related to people in other factions. I have some lords with "she" as their title.
None of the constants have been changed.
I assumed this problem was due to each faction not having 20 lords/20 ladies, so I changed that. Now the problem's even worse and in the "Notes" "Characters" screen, clicking on some of the pretenders, some lords, some ladies, causes the game to crash to the desktop.
Every lady and lord is correctly assigned to their faction, but the patriarchs are often fathers of sons in other factions (for instance, I have a Dutch General who is the son of an Iroquois father. The father's age is 19, the son's is -29).
I know this has been a serious issue for many mods and some have gone so far as to just remove the entire function. I actually really like the marriage function, and the family relations. With the Diplomacy Mod we have in, it makes familial relationships seem more real and life-like.
My questions are:
1. Am I doing something wrong?
2. Is there a way to make this work with extra factions? (we have 12)
3. Are there ways to deal with this?
I'm sorta new to the Module System, but I'm not new to Python.
Thanks in advance, and I appreciate any help you offer. It's really, really stumping me.
Celestialred