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

Idhrendur

Keeper of the Converters
109 Badges
Feb 27, 2009
12.350
4.697
  • Hearts of Iron IV Sign-up
  • Hearts of Iron 4: Arms Against Tyranny
  • Hearts of Iron IV: No Step Back
  • Hearts of Iron IV: By Blood Alone
  • Victoria 3 Sign Up
  • Stellaris: Nemesis
  • Crusader Kings II
  • Sengoku
  • Pillars of Eternity
  • Tyranny: Archon Edition
  • Europa Universalis IV
  • March of the Eagles
  • Victoria 2
  • 500k Club
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Colonel
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Crusader Kings III: Royal Edition
  • Commander: Conquest of the Americas
  • Darkest Hour
Excited at the thought of this converter? Looking to join the team? Or have some ideas for us to improve it? This is the place for you!

----------------
Links

Release Thread

----------------

Types of help needed
  • Programmers: we can always use more programmers. The converter itself is in C++, and the tools that go with it are in C#.
  • Map-staring experts: we do our best, but its likely there's a region you know well and can improve the mappings for.
  • Testers: Catching bugs and oddities earlier means they get fixed earlier. We automatically update the development release with all new work, so it's always worth checking. And if you have professional experience in testing, well, I'm sure we could be doing things far better. Tell me how!
  • Modders: We can always use help figuring out how things work, and how we can do them better. If you know how to mod EU4, we can use your help figuring it out. As well, there's always more room for flavor events, decisions, and the like.
  • Everyone: We can always handle more discussion on how things are converted. As well, I try to document implemented items over on the project wiki. And your encouragement helps more than you know!
 
Last edited:
I added more tags, if you want I will send you a file.
Yes, of course, feel free to upload the files here to the forum, or make a direct Pull Request to the Github project. We'll integrate them.
 
Thanx, I've merged in all corrections that I could. some of them, especially in India, would have caused issues with vic2 conversion so weren't included. You can grab the latest Barcelona build to verify.
 
Hello, I'm the author of Chinese Caliphates, & I would like to make my mod compatible with the converter. The mod doesn't add any new cultures, religions, or provinces, it just tracks the growth & spread of religions in China. I'm not sure if this is possible, but if importing global flags can be done, I could probably do the work of actually figuring out a way to change Chinese religions depending on the state of things in CK2
 
Hello, I'm the author of Chinese Caliphates, & I would like to make my mod compatible with the converter. The mod doesn't add any new cultures, religions, or provinces, it just tracks the growth & spread of religions in China. I'm not sure if this is possible, but if importing global flags can be done, I could probably do the work of actually figuring out a way to change Chinese religions depending on the state of things in CK2
So, you track the holder of china personally? Can you give some examples please about what is tracked and hopefully what you'd like to see exported?
 
The mod creates a global variable for how common each religion in game is in china, ex, global_chinese_catholics 33 or global_chinese_jains 107. It then uses those variables to set global flags which are referenced in events. So if Buddhists & Manicheans are both big minorities in china, Sunnis are a small minority, & Catholics have just arrived, instead of all new dynasties being guaranteed taoist there would be an ~18% chance for a new dynasty to be Buddhist. Ideally, the converter would look at either the flags or the global variables & use that to change the religious makeup of china, so that if ex. china has been majority Shiite for 200 years that is reflected in game.

I realize this is a lot to ask, so if there is any way to get the flags or variables from ck2 into eu4 I would be more than willing to script events that handle the religion changing myself.
 
The mod creates a global variable for how common each religion in game is in china, ex, global_chinese_catholics 33 or global_chinese_jains 107. It then uses those variables to set global flags which are referenced in events. So if Buddhists & Manicheans are both big minorities in china, Sunnis are a small minority, & Catholics have just arrived, instead of all new dynasties being guaranteed taoist there would be an ~18% chance for a new dynasty to be Buddhist. Ideally, the converter would look at either the flags or the global variables & use that to change the religious makeup of china, so that if ex. china has been majority Shiite for 200 years that is reflected in game.

I realize this is a lot to ask, so if there is any way to get the flags or variables from ck2 into eu4 I would be more than willing to script events that handle the religion changing myself.
Aside for changing chinese provinces owner/controller to actual dynasty, setting the emperor, and annexing the current western protectorate to them, we're careful not to change the actual variables of any non-CK2 provinces. However, I expect someone running your mod would indeed expect a change. What is it you'd, precisely, wish the output to be? To only change the chinese emperor or the religion in chinese provinces? (We already change the emperor so for historical 1337 bookmark we're importing Yuan as this:
government = monarchy
add_government_reform = celestial_empire
government_rank = 3
technology_group = chinese
religion = confucianism
primary_culture = chihan
capital = 1821
add_harmonized_religion = mahayana
1337.1.1= {
monarch = {
name = "Toghon Temür"
dynasty = "Borjigin"
adm = 6
dip = 4
mil = 6
birth_date = 1320.5.25
religion = buddhism
culture = mongol
}
}
 
Changing the religion of the provinces would be best.
Allright. Upload a sample save game with this tracker so I can see the variables and I can make a patch that would convert a number of them according to percentages in flags.
 
flags=
{
kcc_startup=1337.1.1
manicheans_in_china=1337.1.1
buddhists_in_china=1337.1.1
buddhist_china_one=1337.1.1
buddhist_china_two=1337.1.1
nestorians_in_china=1337.1.1
nestorian_china_one=1337.1.1
catholics_in_china=1337.1.1
sunnis_in_china=1337.1.1
sunni_china_one=1337.1.1
}
vars=
{
global_chinese_buddhists=60.000
global_chinese_catholics=10.000
global_chinese_manicheans=5.000
global_chinese_nestorians=30.000
global_chinese_sunnis=25.000
}

Breakpoints for flags are 20 for china_one (small minority), 40 for china_two (large minority), 100 for china_three (enormous minority), & 180 for china_four (majority religion)
Taoism isn't tracked since I assume that it would always have at least some followers; every other religion in the base game is except for generic paganism & unreformed pagans.
 

Attachments

  • EgyptTest.ck2
    4,5 MB · Views: 2
flags=
{
kcc_startup=1337.1.1
manicheans_in_china=1337.1.1
buddhists_in_china=1337.1.1
buddhist_china_one=1337.1.1
buddhist_china_two=1337.1.1
nestorians_in_china=1337.1.1
nestorian_china_one=1337.1.1
catholics_in_china=1337.1.1
sunnis_in_china=1337.1.1
sunni_china_one=1337.1.1
}
vars=
{
global_chinese_buddhists=60.000
global_chinese_catholics=10.000
global_chinese_manicheans=5.000
global_chinese_nestorians=30.000
global_chinese_sunnis=25.000
}

Breakpoints for flags are 20 for china_one (small minority), 40 for china_two (large minority), 100 for china_three (enormous minority), & 180 for china_four (majority religion)
Taoism isn't tracked since I assume that it would always have at least some followers; every other religion in the base game is except for generic paganism & unreformed pagans.
Do you have a list of all possible flags? It would be easier if the flags matched actual religion names so global_chinese_catholic = xx. Otherwise it can get messy, especially if someone uses a mod that adds religions.
 
  • has_global_flag = catholics_in_china
  • has_global_flag = catholic_china_one
  • has_global_flag = catholic_china_two
  • has_global_flag = catholic_china_three
  • has_global_flag = catholic_china_four
  • has_global_flag = cathars_in_china
  • has_global_flag = cathar_china_one
  • has_global_flag = cathar_china_two
  • has_global_flag = cathar_china_three
  • has_global_flag = cathar_china_four
  • has_global_flag = fraticellis_in_china
  • has_global_flag = fraticelli_china_one
  • has_global_flag = fraticelli_china_two
  • has_global_flag = fraticelli_china_three
  • has_global_flag = fraticelli_china_four
  • has_global_flag = waldensians_in_china
  • has_global_flag = waldensian_china_one
  • has_global_flag = waldensian_china_two
  • has_global_flag = waldensian_china_three
  • has_global_flag = waldensian_china_four
  • has_global_flag = lollards_in_china
  • has_global_flag = lollard_china_one
  • has_global_flag = lollard_china_two
  • has_global_flag = lollard_china_three
  • has_global_flag = lollard_china_four
  • has_global_flag = orthodoxy_in_china
  • has_global_flag = orthodox_china_one
  • has_global_flag = orthodox_china_two
  • has_global_flag = orthodox_china_three
  • has_global_flag = orthodox_china_four
  • has_global_flag = bogomilists_in_china
  • has_global_flag = bogomilist_china_one
  • has_global_flag = bogomilist_china_two
  • has_global_flag = bogomilist_china_three
  • has_global_flag = bogomilist_china_four
  • has_global_flag = monothelites_in_china
  • has_global_flag = monothelite_china_one
  • has_global_flag = monothelite_china_two
  • has_global_flag = monothelite_china_three
  • has_global_flag = monothelite_china_four
  • has_global_flag = iconoclasts_in_china
  • has_global_flag = iconoclast_china_one
  • has_global_flag = iconoclast_china_two
  • has_global_flag = iconoclast_china_three
  • has_global_flag = iconoclast_china_four
  • has_global_flag = paulicians_in_china
  • has_global_flag = paulician_china_one
  • has_global_flag = paulician_china_two
  • has_global_flag = paulician_china_three
  • has_global_flag = paulician_china_four
  • has_global_flag = miaphysites_in_china
  • has_global_flag = miaphysite_china_one
  • has_global_flag = miaphysite_china_two
  • has_global_flag = miaphysite_china_three
  • has_global_flag = miaphysite_china_four
  • has_global_flag = monophysites_in_china
  • has_global_flag = monophysite_china_one
  • has_global_flag = monophysite_china_two
  • has_global_flag = monophysite_china_three
  • has_global_flag = monophysite_china_four
  • has_global_flag = nestorians_in_china
  • has_global_flag = nestorian_china_one
  • has_global_flag = nestorian_china_two
  • has_global_flag = nestorian_china_three
  • has_global_flag = nestorian_china_four
  • has_global_flag = messalians_in_china
  • has_global_flag = messalian_china_one
  • has_global_flag = messalian_china_two
  • has_global_flag = messalian_china_three
  • has_global_flag = messalian_china_four
  • has_global_flag = jews_in_china
  • has_global_flag = jewish_china_one
  • has_global_flag = jewish_china_two
  • has_global_flag = jewish_china_three
  • has_global_flag = jewish_china_four
  • has_global_flag = samaritans_in_china
  • has_global_flag = samaritan_china_one
  • has_global_flag = samaritan_china_two
  • has_global_flag = samaritan_china_three
  • has_global_flag = samaritan_china_four
  • has_global_flag = karaites_in_china
  • has_global_flag = karaite_china_one
  • has_global_flag = karaite_china_two
  • has_global_flag = karaite_china_three
  • has_global_flag = karaite_china_four
  • has_global_flag = sunnis_in_china
  • has_global_flag = sunni_china_one
  • has_global_flag = sunni_china_two
  • has_global_flag = sunni_china_three
  • has_global_flag = sunni_china_four
  • has_global_flag = zikris_in_china
  • has_global_flag = zikri_china_one
  • has_global_flag = zikri_china_two
  • has_global_flag = zikri_china_three
  • has_global_flag = zikri_china_four
  • has_global_flag = yazidis_in_china
  • has_global_flag = yazidi_china_one
  • has_global_flag = yazidi_china_two
  • has_global_flag = yazidi_china_three
  • has_global_flag = yazidi_china_four
  • has_global_flag = ibadis_in_china
  • has_global_flag = ibadi_china_one
  • has_global_flag = ibadi_china_two
  • has_global_flag = ibadi_china_three
  • has_global_flag = ibadi_china_four
  • has_global_flag = kharijites_in_china
  • has_global_flag = kharijite_china_one
  • has_global_flag = kharijite_china_two
  • has_global_flag = kharijite_china_three
  • has_global_flag = kharijite_china_four
  • has_global_flag = shiites_in_china
  • has_global_flag = shiite_china_one
  • has_global_flag = shiite_china_two
  • has_global_flag = shiite_china_three
  • has_global_flag = shiite_china_four
  • has_global_flag = druze_in_china
  • has_global_flag = druze_china_one
  • has_global_flag = druze_china_two
  • has_global_flag = druze_china_three
  • has_global_flag = druze_china_four
  • has_global_flag = qarmatian_in_china
  • has_global_flag = qarmatian_china_one
  • has_global_flag = qarmatian_china_two
  • has_global_flag = qarmatian_china_three
  • has_global_flag = qarmatian_china_four
  • has_global_flag = hurufis_in_china
  • has_global_flag = hurufi_china_one
  • has_global_flag = hurufi_china_two
  • has_global_flag = hurufi_china_three
  • has_global_flag = hurufi_china_four
  • has_global_flag = zoroastrians_in_china
  • has_global_flag = zoroastrian_china_one
  • has_global_flag = zoroastrian_china_two
  • has_global_flag = zoroastrian_china_three
  • has_global_flag = zoroastrian_china_four
  • has_global_flag = mazdakis_in_china
  • has_global_flag = mazdaki_china_one
  • has_global_flag = mazdaki_china_two
  • has_global_flag = mazdaki_china_three
  • has_global_flag = mazdaki_china_four
  • has_global_flag = manicheans_in_china
  • has_global_flag = manichean_china_one
  • has_global_flag = manichean_china_two
  • has_global_flag = manichean_china_three
  • has_global_flag = manichean_china_four
  • has_global_flag = khurmaztas_in_china
  • has_global_flag = khurmazta_china_one
  • has_global_flag = khurmazta_china_two
  • has_global_flag = khurmazta_china_three
  • has_global_flag = khurmazta_china_four
  • has_global_flag = buddhists_in_china
  • has_global_flag = buddhist_china_one
  • has_global_flag = buddhist_china_two
  • has_global_flag = buddhist_china_three
  • has_global_flag = buddhist_china_four
  • has_global_flag = jains_in_china
  • has_global_flag = jain_china_one
  • has_global_flag = jain_china_two
  • has_global_flag = jain_china_three
  • has_global_flag = jain_china_four
  • has_global_flag = hindus_in_china
  • has_global_flag = hindu_china_one
  • has_global_flag = hindu_china_two
  • has_global_flag = hindu_china_three
  • has_global_flag = hindu_china_four
  • has_global_flag = norse_in_china
  • has_global_flag = norse_china_one
  • has_global_flag = norse_china_two
  • has_global_flag = norse_china_three
  • has_global_flag = norse_china_four
  • has_global_flag = tengri_in_china
  • has_global_flag = tengri_china_one
  • has_global_flag = tengri_china_two
  • has_global_flag = tengri_china_three
  • has_global_flag = tengri_china_four
  • has_global_flag = baltics_in_china
  • has_global_flag = baltic_china_one
  • has_global_flag = baltic_china_two
  • has_global_flag = baltic_china_three
  • has_global_flag = baltic_china_four
  • has_global_flag = finnish_in_china
  • has_global_flag = finnish_china_one
  • has_global_flag = finnish_china_two
  • has_global_flag = finnish_china_three
  • has_global_flag = finnish_china_four
  • has_global_flag = aztecs_in_china
  • has_global_flag = aztec_china_one
  • has_global_flag = aztec_china_two
  • has_global_flag = aztec_china_three
  • has_global_flag = aztec_china_four
  • has_global_flag = slavs_in_china
  • has_global_flag = slavic_china_one
  • has_global_flag = slavic_china_two
  • has_global_flag = slavic_china_three
  • has_global_flag = slavic_china_four
  • has_global_flag = africans_in_china
  • has_global_flag = african_china_one
  • has_global_flag = african_china_two
  • has_global_flag = african_china_three
  • has_global_flag = african_china_four
  • has_global_flag = zun_in_china
  • has_global_flag = zun_china_one
  • has_global_flag = zun_china_two
  • has_global_flag = zun_china_three
  • has_global_flag = zun_china_four
  • has_global_flag = hellenics_in_china
  • has_global_flag = hellenic_china_one
  • has_global_flag = hellenic_china_two
  • has_global_flag = hellenic_china_three
  • has_global_flag = hellenic_china_four
  • has_global_flag = bon_in_china
  • has_global_flag = bon_china_one
  • has_global_flag = bon_china_two
  • has_global_flag = bon_china_three
  • has_global_flag = bon_china_four
I'm not sure how many other mod creators have come forward, but just in case the folks at Christian Immersion or Ancient Religions are interested in this converter, here are the china flags for those religions.

##Ancient Religions
  • has_global_flag = egyptians_in_china
  • has_global_flag = egyptian_china_one
  • has_global_flag = egyptian_china_two
  • has_global_flag = egyptian_china_three
  • has_global_flag = egyptian_china_four
  • has_global_flag = atenics_in_china
  • has_global_flag = atenic_china_one
  • has_global_flag = atenic_china_two
  • has_global_flag = atenic_china_three
  • has_global_flag = atenic_china_four
  • has_global_flag = celts_in_china
  • has_global_flag = celtic_china_one
  • has_global_flag = celtic_china_two
  • has_global_flag = celtic_china_three
  • has_global_flag = celtic_china_four
  • has_global_flag = britannics_in_china
  • has_global_flag = britannic_china_one
  • has_global_flag = britannic_china_two
  • has_global_flag = britannic_china_three
  • has_global_flag = britannic_china_four
  • has_global_flag = prometheans_in_china
  • has_global_flag = promethean_china_one
  • has_global_flag = promethean_china_two
  • has_global_flag = promethean_china_three
  • has_global_flag = promethean_china_four
##Christian Immersion
  • has_global_flag = adoptionists_in_china
  • has_global_flag = adoptionist_china_one
  • has_global_flag = adoptionist_china_two
  • has_global_flag = adoptionist_china_three
  • has_global_flag = adoptionist_china_four
  • has_global_flag = free_spirits_in_china
  • has_global_flag = free_spirits_china_one
  • has_global_flag = free_spirits_china_two
  • has_global_flag = free_spirits_china_three
  • has_global_flag = free_spirits_china_four
  • has_global_flag = barlaamites_in_china
  • has_global_flag = barlaamite_china_one
  • has_global_flag = barlaamite_china_two
  • has_global_flag = barlaamite_china_three
  • has_global_flag = barlaamite_china_four
  • has_global_flag = judaizers_in_china
  • has_global_flag = judaizer_china_one
  • has_global_flag = judaizer_china_two
  • has_global_flag = judaizer_china_three
  • has_global_flag = judaizer_china_four
  • has_global_flag = mandeans_in_china
  • has_global_flag = mandean_china_one
  • has_global_flag = mandean_china_two
  • has_global_flag = mandean_china_three
  • has_global_flag = mandean_china_four
  • has_global_flag = chaldeans_in_china
  • has_global_flag = chaldean_china_one
  • has_global_flag = chaldean_china_two
  • has_global_flag = chaldean_china_three
  • has_global_flag = chaldean_china_four
  • has_global_flag = apollinarians_in_china
  • has_global_flag = apollinarian_china_one
  • has_global_flag = apollinarian_china_two
  • has_global_flag = apollinarian_china_three
  • has_global_flag = apollinarian_china_four
  • has_global_flag = yarsans_in_china
  • has_global_flag = yarsan_china_one
  • has_global_flag = yarsan_china_two
  • has_global_flag = yarsan_china_three
  • has_global_flag = yarsan_china_four
 
How do you guys handle estates?
If it's not in yet, I'd suggest assigning every province that's not the ruler's demesne to one.
Then, having a split chance for that province to be given to each estate (feudal rulers could follow something like 70%, 15%, 15% for it to go to the nobles, clergy and burghers respectively).
Of course, republics/theocracies vassals of count tier and above should have their provinces be given to the burghers/clergy independently of anything else.

That is for assigning provinces, but percentage wise it could still be used to calculate how much land to give away when 1.30 is released.
 
How do you guys handle estates?
If it's not in yet, I'd suggest assigning every province that's not the ruler's demesne to one.
Then, having a split chance for that province to be given to each estate (feudal rulers could follow something like 70%, 15%, 15% for it to go to the nobles, clergy and burghers respectively).
Of course, republics/theocracies vassals of count tier and above should have their provinces be given to the burghers/clergy independently of anything else.

That is for assigning provinces, but percentage wise it could still be used to calculate how much land to give away when 1.30 is released.

We have no control over which areas are stated. EU4 assigns states on its own. While we can add or remove specific estates in provinces, EU4 adds its own estates ontop as well, making a complete mess. Furthermore, the official converter did assign estates in this fashion, but then those provinces wouldn't get stated so in the end territories had estates one couldn't remove without destating already stated land. We don't want this kind of mess so we're not doing estates. Oh, also, 1.30 will remove estates from map entirely so the point is moot.
 
We have no control over which areas are stated. EU4 assigns states on its own. While we can add or remove specific estates in provinces, EU4 adds its own estates ontop as well, making a complete mess. Furthermore, the official converter did assign estates in this fashion, but then those provinces wouldn't get stated so in the end territories had estates one couldn't remove without destating already stated land. We don't want this kind of mess so we're not doing estates. Oh, also, 1.30 will remove estates from map entirely so the point is moot.
I see, no helping it then.
As for 1.30, assigning individual provinces to estates won't be an issue anymore, but you will likely be able to dictate the % of land they get, so maybe it's something to consider for then.
 
I'm not sure how many other mod creators have come forward, but just in case the folks at Christian Immersion or Ancient Religions are interested in this converter, here are the china flags for those religions.

Ok, time has come for your mod support. The way I can make this work is as follows:
Assuming 180 is threshold for religious majority, I'm taking total of 400 as a base, since we're adding also western protectorate into china. I'm ignoring all flags as they are not that helpful, and only looking at vars. I see vars named like:

Code:
global_chinese_catholics=10.000

What I can do is regex "catholic" out of that var by dropping "global_chinese_" and the trailing "s", and then for every var with score of 20 or more, assign score/400 provinces to that religion.

If you have vars where religion does not match this regex, change the vars. African come to mind as they are canonically west_african and not just african. var should be global_chinese_west_africans, or whatever they are named in ck2/common/religions/00_religions.txt.

Furthermore, I cannot convert provinces to a religion we're not supporting in our configurables/religion_map.txt. if your var regex doesn't match some ck2 religion found in that file, I'm ignoring it.

I hope this is ok and if you have additional input now is the time.