Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

EU4 To Vic2: Pop Cultures and Religions

Idhrendur edited this page Mar 15, 2016 · 2 revisions
  1. The converter uses the Vic2 pops files to build an initial idea of what the world's population is like for each province. The (old) pops get recorded. The total world population is added up. The ratio of slaves to total population in the province is recorded (by noticing both slave pop types, and any pops whose culture start with 'afro_', as some regions have only freed slaves in default Vic2, but might be more appropriate with slaves in a converted game). Any minority pops (as defined in minorityPops.txt) are recorded.
  2. When reading the EU4 save, a demographic picture of each province is developed (and come the next release, there is a somewhat different picture for upper class, middle class, and lower class pops). This tracks culture and religion shifts in the province. This is saved as a bunch of pop ratios, where each ratio has a culture, a religion, and how much of the total population (in the relevant class) has that culture and religion.*
  3. Each Vic2 province gets a bunch of Vic2 demographics based on the EU4 ratios. This is where culture conversion happens, with slave culture.**
  4. Then the converter goes through every Vic2 country.
  5. The country then goes through every province it owns.
  6. The province then goes through every demographic it has.
  7. If the 'Convert pop totals' option was selected, the total population of the province is changed, or else the original province population is used. This number will be multiplied by the relevant ratio in the demographic under consideration when actual pops are made in a few steps.
  8. The exact pop types are figured out and recorded as a series of ratios of the total province population. There's some clever work for things like craftsmen, clerks, and capitalists where we want a specific number to come out in the end.
  9. The slave proportion is used to create a number of slave pops which are given the appropriate slave culture. Whether or not slavery is allowed is ignored (more on this in a moment).
  10. For each other pop type (except farmers and laborers), the recently calculated ratios are used to create the actual pops.
  11. Any leftover pops are made into farmers.
  12. Some code that's currently disabled potentially outputs a bunch of stats on the just created pops.​
  13. The province then combines all pops that are the same (so type, religion, and culture all match) as well as removing all pops with less than one person.
  14. The province then replaces pops with the appropriate minorities (which can be of any pop type).
  15. The province then attempts to combine pops again.​
  16. The country would then spit out a ton of stats on its pops, but that code is turned off too.​
  17. The mod is actually saved in the end.
  18. When Vic2 starts a new game, it considers whether or not slavery is allowed in each country. If it's not, then any slave pops are automatically turned into farmers.
  19. When Vic2 starts a new game, it considers whether a province needs farmers or laborers. If there are pops of the wrong type, it turns them into the right type.

Sooo…having the slave pops in the files is necessary for the converter to know whether or not there should be slaves (or descendants of slaves with a different culture than the usual population) in the provinces. It's not a system I particularly like, but all our experiments to come up with something better failed. However, I can make changes, such as making it so unowned provinces don't have slaves, and could maybe even change the culture of slave pops to match the rest of the pops. I think that would help us avoid most of the nonsense that might otherwise result.

  • So an Eu4 province might have these ratios: Culture: English | Religion: Protestant | Upper ratio: 0.9 | Middle ratio 0.9 | Lower Ratio: 0.4 Culture: English | Religion: Catholic | Upper Ratio: 0.05 | Middle ratio: 0.05 | Lower Ratio: 0.3 Culture: Scottish | Religion: Catholic | Upper Ratio: 0.05 | Middle ratio: 0.05 | Lower ratio: 0.3​ ** A corresponding Vic2 province might have these demographics (if we hadn't donw some early fixes to the culture mappings) Culture: British | Slave culture: afro_caribeno | Religion: Protestant | Upper ratio: 0.9 | Middle ratio 0.9 | Lower Ratio: 0.4 Culture: British| Slave culture: afro_caribeno | Religion: Catholic | Upper Ratio: 0.05 | Middle ratio: 0.05 | Lower Ratio: 0.3 Culture: British| Slave culture: afro_caribeno | Religion: Catholic | Upper Ratio: 0.05 | Middle ratio: 0.05 | Lower ratio: 0.3​

##Previous Discussions
1 2 3 4 5 6 7 8 9 [10] (https://forum.paradoxplaza.com/forum/index.php?threads/the-eu4-to-v2-converter-project.707362/page-180#post-20584023)

##Links EU4 To V2
Home

Clone this wiki locally