• 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.

YuRI898

Private
26 Badges
Sep 2, 2010
10
0
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Necroids
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Imperator: Rome - Magna Graecia
  • Stellaris: Federations
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Imperator: Rome Deluxe Edition
  • Stellaris: Megacorp
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Europa Universalis IV
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines
  • Victoria 2
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
Hi there! I'm trying to make a mod which creates a bunch of characters and also modifies the main families of a nation.

I'm modding \setup\main\00_default for the families (i'm adding one up with a new different id nº)

And \setup\characters\00whatever for the characters.
Once I create a couple of characters and assign him to the new families everything works but the relationship between them (trying a father-mother-son). They are shown in game but with no relationship between them whatsoever (for instance, the female character is married to another man -I guess randomly assigned-, and the kid -below 16 yo- seems to have no father nor mother).

I have copy-pasted the very same lines (with the exception of the character ID, of course) of the vanilla game (in families that work properly such as the Antigonids).

Any idea why?

Also, I'm trying to add a bloodline trait which is inherited (as some modder did already) which seems to work fine with the exception of the randomly kids created by the game at the start (who don't get the trait) Any idea of how this could be changed or, at least, how to decide a character I created does have not any ohter kid apart of the one I "design" for him?
 
Hi there! I'm trying to make a mod which creates a bunch of characters and also modifies the main families of a nation.

I'm modding \setup\main\00_default for the families (i'm adding one up with a new different id nº)

And \setup\characters\00whatever for the characters.
Once I create a couple of characters and assign him to the new families everything works but the relationship between them (trying a father-mother-son). They are shown in game but with no relationship between them whatsoever (for instance, the female character is married to another man -I guess randomly assigned-, and the kid -below 16 yo- seems to have no father nor mother).

I have copy-pasted the very same lines (with the exception of the character ID, of course) of the vanilla game (in families that work properly such as the Antigonids).

Any idea why?

Also, I'm trying to add a bloodline trait which is inherited (as some modder did already) which seems to work fine with the exception of the randomly kids created by the game at the start (who don't get the trait) Any idea of how this could be changed or, at least, how to decide a character I created does have not any ohter kid apart of the one I "design" for him?
Code:
38={
        first_name="Demetrios"
        nickname="NICKNAME_POLIORCETES"
        family = c:PRY.fam:Antigonid
        birth_date=416.9.12
        culture="macedonian"
        religion="roman_pantheon"
        father="char:37"
        mother="char:36"
        marry_character=char:17
        no_stats=yes
        add_martial=11
        add_charisma=5
        add_finesse=7
        add_zeal=3
        no_traits=yes
        add_trait="antigonids"
        add_trait="lustful"
        add_trait="confident"
        add_gold=800
        add_popularity=50
        give_office=office_marshal
        dna="rDusO4F+gX702vTaBOME4wJuAm4ChAKEAo4CjgKLAosChQKFBN8E3wKBAoEBZAFkAoYChgJuAm4CkQKRAoQChAOtA60CjAKMAm4CbgFZAVkCZgJmBMgEyAKVApUCcwJzAoECgQKEAoQCewJ7AokCiQOhA6ECcAJwAnICcgKHAocExQTFAm0CbQKSApIClQKVAoECgQJxAnECkQKRAn4CfgJ7AnsCdAJ0AoUChQJsAmwBXgFeAooCigJpAmkCmAKYAoMCgwJxAnEClAKUAn8CfwFkAWQCkwKTAosCiwKGAoYCaAJoApYClgJ3AncAbgBuAVsBWwBfAF8BWAFYAGoAagE0ATQBPgE+ApYClgDwAPABQQFBAC4ALgB/AH8AMgAyABMAEwDlAOUA6ADoAAsACwAVABUDTwNPAGAAYAB/AH8AtgC2ABYAFgERAREBWAFYAAoACgCGAIYCmgKaAJcAlwCZAJkBWwFbBJ4EngNPA08LoQuhAH8AfwJVAlUA7QDtAC4ALgWoAJsNQwDCAnAANAAAAAAAAAAAAAAAAA=="
    }
This is the setup defined for Demetrios, the son of Antigonus.
Here you can see that the Father and Mother have to be defined in the Children's section.
Code:
37={
        first_name="Antigonos"
        nickname="NICKNAME_MONOPHTHALMUS"
        family = c:PRY.fam:Antigonid
        birth_date=372.3.24
        culture="macedonian"
        religion="roman_pantheon"
        marry_character=char:36
        no_stats=yes
        add_martial=13
        add_charisma=8
        add_finesse=8
        add_zeal=8
        no_traits=yes
        add_trait="antigonids"
        add_trait="just"
        add_trait="disciplined"
        add_trait="one_eyed"
        add_gold=1000
        add_popularity=80
        c:PRY={
            set_as_ruler=char:37
        }
        dna="1aHVoZl8mXzO7M7sAm4CbgKEAoQCjgKOAosCiwKFAoUE3wTfAoECgQJtAm0ChgKGAm4CbgKRApEChAKEA60DrQKMAowCbgJuApECkQJmAmYEyATIApUClQJzAnMCdAJ0AncCdwJ7AnsCiQKJA6EDoQJwAnACcgJyAocChwTFBMUCbQJtApICkgKVApUCgQKBAnECcQKRApECfgJ+AnsCewJ0AnQChQKFAmwCbAFeAV4CigKKAmkCaQKYApgCgwKDAnECcQKUApQCfwJ/AWQBZAKTApMCiwKLAoYChgJoAmgClgKWAnkCeQFuAW4A2wDbAF8AXwFYAVgAagBqATQBNAE+AT4ClgKWAPAA8ADBAMECLgIuADIAMgB/AH8AnQCdAOUA5QDoAOgACwALABUAFQL4AvgAYABgALYAtgB/AH8AFgAWAREBEQFYAVgACgAKAIYAhgDFAMUAlwCXAJkAmQBbAFsEngSeA08DTwDtAO0DfQN9AH8AfwFqAWoALgAuAJsAmwWDAMICUAA0Ai8AjQAAAAAAAAAAAAAAAA=="
    }
and here is the coding for Antigonus. Notice how his marriage is defined here?
Bloodline traits are also defined like normal traits.
 
Code:
38={
        first_name="Demetrios"
        nickname="NICKNAME_POLIORCETES"
        family = c:PRY.fam:Antigonid
        birth_date=416.9.12
        culture="macedonian"
        religion="roman_pantheon"
        father="char:37"
        mother="char:36"
        marry_character=char:17
        no_stats=yes
        add_martial=11
        add_charisma=5
        add_finesse=7
        add_zeal=3
        no_traits=yes
        add_trait="antigonids"
        add_trait="lustful"
        add_trait="confident"
        add_gold=800
        add_popularity=50
        give_office=office_marshal
        dna="rDusO4F+gX702vTaBOME4wJuAm4ChAKEAo4CjgKLAosChQKFBN8E3wKBAoEBZAFkAoYChgJuAm4CkQKRAoQChAOtA60CjAKMAm4CbgFZAVkCZgJmBMgEyAKVApUCcwJzAoECgQKEAoQCewJ7AokCiQOhA6ECcAJwAnICcgKHAocExQTFAm0CbQKSApIClQKVAoECgQJxAnECkQKRAn4CfgJ7AnsCdAJ0AoUChQJsAmwBXgFeAooCigJpAmkCmAKYAoMCgwJxAnEClAKUAn8CfwFkAWQCkwKTAosCiwKGAoYCaAJoApYClgJ3AncAbgBuAVsBWwBfAF8BWAFYAGoAagE0ATQBPgE+ApYClgDwAPABQQFBAC4ALgB/AH8AMgAyABMAEwDlAOUA6ADoAAsACwAVABUDTwNPAGAAYAB/AH8AtgC2ABYAFgERAREBWAFYAAoACgCGAIYCmgKaAJcAlwCZAJkBWwFbBJ4EngNPA08LoQuhAH8AfwJVAlUA7QDtAC4ALgWoAJsNQwDCAnAANAAAAAAAAAAAAAAAAA=="
    }
This is the setup defined for Demetrios, the son of Antigonus.
Here you can see that the Father and Mother have to be defined in the Children's section.
Code:
37={
        first_name="Antigonos"
        nickname="NICKNAME_MONOPHTHALMUS"
        family = c:PRY.fam:Antigonid
        birth_date=372.3.24
        culture="macedonian"
        religion="roman_pantheon"
        marry_character=char:36
        no_stats=yes
        add_martial=13
        add_charisma=8
        add_finesse=8
        add_zeal=8
        no_traits=yes
        add_trait="antigonids"
        add_trait="just"
        add_trait="disciplined"
        add_trait="one_eyed"
        add_gold=1000
        add_popularity=80
        c:PRY={
            set_as_ruler=char:37
        }
        dna="1aHVoZl8mXzO7M7sAm4CbgKEAoQCjgKOAosCiwKFAoUE3wTfAoECgQJtAm0ChgKGAm4CbgKRApEChAKEA60DrQKMAowCbgJuApECkQJmAmYEyATIApUClQJzAnMCdAJ0AncCdwJ7AnsCiQKJA6EDoQJwAnACcgJyAocChwTFBMUCbQJtApICkgKVApUCgQKBAnECcQKRApECfgJ+AnsCewJ0AnQChQKFAmwCbAFeAV4CigKKAmkCaQKYApgCgwKDAnECcQKUApQCfwJ/AWQBZAKTApMCiwKLAoYChgJoAmgClgKWAnkCeQFuAW4A2wDbAF8AXwFYAVgAagBqATQBNAE+AT4ClgKWAPAA8ADBAMECLgIuADIAMgB/AH8AnQCdAOUA5QDoAOgACwALABUAFQL4AvgAYABgALYAtgB/AH8AFgAWAREBEQFYAVgACgAKAIYAhgDFAMUAlwCXAJkAmQBbAFsEngSeA08DTwDtAO0DfQN9AH8AfwFqAWoALgAuAJsAmwWDAMICUAA0Ai8AjQAAAAAAAAAAAAAAAA=="
    }
and here is the coding for Antigonus. Notice how his marriage is defined here?
Bloodline traits are also defined like normal traits.

That's the thing.
That's exactly the piece of code I copy-pasted, alas, with no desired result.

See:

xantipphos.jpg
Hermione.jpg
Cleisthenes.jpg


This is the code:

Code:
    909={
        first_name="Cleisthenes"
        family = c:ATH.fam:Alcmaeonidae
        birth_date=428.8.11
        culture="aegean"
        religion="roman_pantheon"
        no_stats=yes
        add_martial=9
        add_charisma=8
        add_finesse=7
        add_zeal=4
        no_traits=yes
        add_trait="righteous"
        add_trait="energetic"
        add_trait="loving"
        add_trait="alcmaeonidae"
        add_gold=100
        add_popularity=80
     }
    910={
        first_name="Hermione"
        family = c:ATH.fam:philaidae
        birth_date=429.9.15
        culture="aegean"
        religion="roman_pantheon"
        female=yes
        marry_character=char:909
        no_stats=yes
        add_martial=5
        add_charisma=4
        add_finesse=4
        add_zeal=4
        no_traits=yes
        add_trait="philaidae"
        add_gold=100
        add_popularity=80
    }
    911={
        first_name="Xanthippos"
        family = c:ATH.fam:Alcmaeonidae
        birth_date=445.8.11
        culture="aegean"
        religion="roman_pantheon"
        father="char:909"
        mother="char:910"
        no_stats=yes
        add_martial=4
        add_charisma=3
        add_finesse=2
        add_zeal=2
        no_traits=yes
        add_trait="alcmaeonidae"
        add_gold=100
        add_popularity=80
    }
}
 
Last edited:
The parenthesis at the end is the final one (since those characters were written at the end). Every vanilla txt do have it as well.
Are those families, the Alcmaeonidae and the Philaidae great families in the game? Also, are the characters your characters related to, reliably the same characters every time or different characters. Check their character ids for comparison.
 
Are those families, the Alcmaeonidae and the Philaidae great families in the game? Also, are the characters your characters related to, reliably the same characters every time or different characters. Check their character ids for comparison.
Those are (great) families I created (in setup/main/00_default).
I don't get what you mean by "same characters every time or different characters" :(
 
Last edited:
Those are (great) families I created (in setup/main/00_default).
I don't get what you mean by "same characters every time or different characters" :(
Every you start a new game, characters are randomly generated. When you repeatedly start new games using your mod, are the characters that are the spouse/parents/children of the characters you manually created, are they the same every time or are they different, and the main thing I'm looking for here is whether their character id numbers are the same. I'm trying to help you troubleshoot.
 
Every you start a new game, characters are randomly generated. When you repeatedly start new games using your mod, are the characters that are the spouse/parents/children of the characters you manually created, are they the same every time or are they different, and the main thing I'm looking for here is whether their character id numbers are the same. I'm trying to help you troubleshoot.

They are the same. They only change when I change something major in 00_ATH (they stick even if i change character ID) or in 00_default (such as the grand families order).
Otherwise the randomly generated spouses/children are the same whenever I start new games.
 
They are the same. They only change when I change something major in 00_ATH (they stick even if i change character ID) or in 00_default (such as the grand families order).
Otherwise the randomly generated spouses/children are the same whenever I start new games.
So, there's two places where Families have to be defined in 00_default.

Code:
#Athens
       11={
           key = "Demostenid"
           prestige=300
           culture=athenian
           owner=ATH
           color = 0
       }
       12={
           key = "Stratoklid"
           culture=athenian
           prestige=300
           owner=ATH
           color = 1
       }
       13={
           key = "Philaidae"
           culture=athenian
           prestige=500
           owner=ATH
           color = 2
       }
}


and the second place is in the country section where you have

Code:
ATH = {
            family = 11
            family = 12
            family = 13
            government = democratic_republic
            primary_culture = athenian
            religion = roman_pantheon
            diplomatic_stance=trading_stance
            capital = 416
         
            pantheon = {
         
            { deity = 164 }
            { deity = 165 }
            { deity = 105 }
            { deity = 167 }
         
            }
         
            treasures = { 55 79 }
     
            own_control_core =  {
            270 297 413 416 7799 7902 7897 7898
            }
        }

You must also keep in mind that Athens starts out with having only 3 great families, so adding a fourth one without removing one is probably not a good idea.

Also I noticed that when you defined your characters, you capitalized Alcmaeonidae and not philaidae. I'm not sure which, but one of those is wrong, though I'm not sure if that's enough to mess things up.
 
Last edited:
So, there's two places where Families have to be defined in 00_default.

Code:
#Athens
       11={
           key = "Demostenid"
           prestige=300
           culture=athenian
           owner=ATH
           color = 0
       }
       12={
           key = "Stratoklid"
           culture=athenian
           prestige=300
           owner=ATH
           color = 1
       }
       13={
           key = "Philaidae"
           culture=athenian
           prestige=500
           owner=ATH
           color = 2
       }
}


and the second place is in the country section where you have

Code:
ATH = {
            family = 11
            family = 12
            family = 13
            government = democratic_republic
            primary_culture = athenian
            religion = roman_pantheon
            diplomatic_stance=trading_stance
            capital = 416
      
            pantheon = {
      
            { deity = 164 }
            { deity = 165 }
            { deity = 105 }
            { deity = 167 }
      
            }
      
            treasures = { 55 79 }
  
            own_control_core =  {
            270 297 413 416 7799 7902 7897 7898
            }
        }

You must also keep in mind that Athens starts out with having only 3 great families, so adding a fourth one without removing one is probably not a good idea.

Also I noticed that when you defined your characters, you capitalized Alcmaeonidae and not philaidae. I'm not sure which, but one of those is wrong, though I'm not sure if that's enough to mess things up.

Yes!

This is my code for 00_default:

Code:
        #Athens
        11={
            key = "Philaidae"
            prestige=300
            culture=athenian
            owner=ATH
            color = 0
        }
        12={
            key = "Alcmaeonidae"
            culture=athenian
            prestige=200
            owner=ATH
            color = 1
        }
        13={
            key = "Stratoklid"
            culture=athenian
            prestige=500
            owner=ATH
            color = 2
        }
        74={
            key="Eumolpidae"
            owner=ATH
            culture = athenian
            prestige=200
            color = 3
        }

So I changed names of a couple Athenian families and added 1 extra (with its own ID nº), which works fine as well ingame but in terms of relationships/kids.

Code:
        ATH = {
            family = 11
            family = 12
            family = 13
            family = 74

Also, I changed 00_defines to let Local powers have 1 extra family.

I capitalized Philaidae now and still nothing...
 
Last edited:
What encoding are you using for these files?

I know that localization doesn't work right if it's not UTF-8-BOM, and all these quotations marks make me wonder if something similar is happening.

Make sure every file is encoded with UTF-8-BOM.
 
What encoding are you using for these files?

I know that localization doesn't work right if it's not UTF-8-BOM, and all these quotations marks make me wonder if something similar is happening.

Make sure every file is encoded with UTF-8-BOM.

Code:
    # FAMILY COUNT
    FAMILY_COUNT_MIGRANT_HORDE    = 3;
    FAMILY_COUNT_CITY_POWER        = 3;
    FAMILY_COUNT_LOCAL_POWER    = 4;
    FAMILY_COUNT_REGIONAL_POWER = 5;
    FAMILY_COUNT_MAJOR_POWER    = 5;
    FAMILY_COUNT_GREAT_POWER    = 6;

Regarding localization, I only "created" the localization/enlish/traits_I_english, I did not touch any other localization file. Should I created a character_names_I_english aswell? Is there any other file that might have the family names?

Code:
l_english:
 alcmaeonidae:0 "Blood of the Alcmaeonidae"
 alcmaeonidae_desc:0 "Cleisthenes, founder of democracy in Athens, or Pericles, its "First Citizen", were members of this aristocratic family which claim to descend from the mythological Alcmaeon, the great-grandson of Nestor.\n\n#G This trait can be passed on matrilineally or patrilineally.#!"
 philaidae:0 "Blood of the Philaidae"
 philaidae_desc:0 "They claim descent from Philaeos, son of Ajax, and have produced two of the most illustrious men in Athenian recent history: Miltiades the Younger, who defeated the Persians at the Battle of Marathon, and the stateman Cimon, one of the fathers of the Delian League.\n\n#G This trait can be passed on matrilineally or patrilineally.#!"
 eumolpidae:0 "Blood of Eumolpidae"
 eumolpidae_desc:0 "Descendants of Eumolpus, who was one of the first worshipers of Demeter at the Attica, they belong to a hereditary priesthood family which has been in control of the Eleusian Mysteries for centuries.\n\n#G This trait can be passed on matrilineally or patrilineally.#!"

I edited both files with Notepad++, and are encoded in UTF-8-BOM.
It works "right" in the sense it shows properly ingame.

(By the way, thanks A LOT for your help!)
 
Last edited:
Code:
    # FAMILY COUNT
    FAMILY_COUNT_MIGRANT_HORDE    = 3;
    FAMILY_COUNT_CITY_POWER        = 3;
    FAMILY_COUNT_LOCAL_POWER    = 4;
    FAMILY_COUNT_REGIONAL_POWER = 5;
    FAMILY_COUNT_MAJOR_POWER    = 5;
    FAMILY_COUNT_GREAT_POWER    = 6;

Regarding localization, I only "created" the localizaation/enlish/traits_I_english, I did not touch any other localization file. Should I created a character_names_I_english aswell? Is there any other file that might have the family names?

Code:
l_english:
 alcmaeonidae:0 "Blood of the Alcmaeonidae"
 alcmaeonidae_desc:0 "Cleisthenes, founder of democracy in Athens, or Pericles, its "First Citizen", were members of this aristocratic family which claim to descend from the mythological Alcmaeon, the great-grandson of Nestor.\n\n#G This trait can be passed on matrilineally or patrilineally.#!"
 philaidae:0 "Blood of the Philaidae"
 philaidae_desc:0 "They claim descent from Philaeos, son of Ajax, and have produced two of the most illustrious men in Athenian recent history: Miltiades the Younger, who defeated the Persians at the Battle of Marathon, and the stateman Cimon, one of the fathers of the Delian League.\n\n#G This trait can be passed on matrilineally or patrilineally.#!"
 eumolpidae:0 "Blood of Eumolpidae"
 eumolpidae_desc:0 "Descendants of Eumolpus, who was one of the first worshipers of Demeter at the Attica, they belong to a hereditary priesthood family which has been in control of the Eleusian Mysteries for centuries.\n\n#G This trait can be passed on matrilineally or patrilineally.#!"

I edited both files with Notepad++. Is that what you meant?
It works "right" in the sense it shows properly ingame.

(By the way, thanks A LOT for your help!)

I just added the family names and the character names in "character_names_I_english"

Code:
l_english:
 Cleisthenes:0 "Cleisthenes"
 Aristeides:0 "Aristeides"
 Anaxandridas:0 "Anaxandridas"
 Eumenes:0 "Eumenes"
 Demetrios:0 "Demetrios"
 Aristodemos:0 "Aristodemos"
 Diodorus:0 "Diodorus"
 Hippocleides:0 "Hippocleides"
 Cylon:0 "Cylon"
 Demosthenes:0 "Demosthenes"
 Nearchus:0 "Nearchus"
 Hermione:0 "Hermione"
 Xantippos:0 "Xantippos"
 Alcmaeonidae:0 "Alcmaeonidae"
 Eumolpidae:0 "Eumolpidae"
 Philaidae:0 "Philaidae"
 Stratoklid:0 "Stratoklid"

No result :(
 
Last edited:
I just added the family names and the character names in "character_names_I_english"

Code:
l_english:
 Cleisthenes:0 "Cleisthenes"
 Aristeides:0 "Aristeides"
 Anaxandridas:0 "Anaxandridas"
 Eumenes:0 "Eumenes"
 Demetrios:0 "Demetrios"
 Aristodemos:0 "Aristodemos"
 Diodorus:0 "Diodorus"
 Hippocleides:0 "Hippocleides"
 Cylon:0 "Cylon"
 Demosthenes:0 "Demosthenes"
 Nearchus:0 "Nearchus"
 Hermione:0 "Hermione"
 Xantippos:0 "Xantippos"
 Alcmaeonidae:0 "Alcmaeonidae"
 Eumolpidae:0 "Eumolpidae"
 Philaidae:0 "Philaidae"
 Stratoklid:0 "Stratoklid"

No result :(
Wait, which files did you make sure were encoded with UTF-8-BOM? I was suggesting to make sure that 00_default.txt and 00_ATH.txt were both encoded that way.
 
Hmm, Well I'm mostly out of ideas. My last few ideas are longshots. Try adding and removing the " " in the father =, mother =, and marry_character = . Make sure there aren't any unusual capitalizations in places there shouldn't be. Make you have the same number of { as } . Also, idk if this would do anything, but try defining the marriage in the father's text instead of the mother's.
 
Hmm, Well I'm mostly out of ideas. My last few ideas are longshots. Try adding and removing the " " in the father =, mother =, and marry_character = . Make sure there aren't any unusual capitalizations in places there shouldn't be. Make you have the same number of { as } . Also, idk if this would do anything, but try defining the marriage in the father's text instead of the mother's.
I've already tried removing the quotation marks in both father and mother, and also adding them in marry_character, with no result; and also addding the marriage line in both the father and even in both characters. I've tested both ways and still no result. Regarding capitalizations, I'll check again to see if there's any problem there.

Don't know what is wrong here at all :(

Thanks a lot for your help!