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

Sobisonator

Imperatrix: Victoria lead dev
78 Badges
Jun 19, 2011
415
1.134
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Supreme Ruler 2020
  • Supreme Ruler: Cold War
  • Stellaris: Apocalypse
  • Victoria 2: A House Divided
  • Crusader Kings II: Charlemagne
  • Rome: Vae Victis
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Monks and Mystics
  • Knights of Honor
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Heir to the Throne
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Pride of Nations
  • Europa Universalis IV
Province setup converter

This tool lets you convert your mod's data contained in a province_setup.csv into the province setup txt format required in setup/provinces/00_default.txt

Simply run the script in your mod's /common/ folder and it will output a file called called GENERATED_SETUP.txt which you need to rename 00_default.txt and place in your mod's setup/main/ folder.

The numbers of the columns can be modified for those mods which add or remove pop types.

DOWNLOAD LINK: https://github.com/sobisonator/imperator-province-setup-converter
 
Last edited:
  • 2Like
Reactions:
I can't get the script to run. I downloaded Python's most recent version, and it still opens up then immediately quits.
 
@tsf4 That's expected behaviour - it should open up and immediately quit. I could add behaviour to keep open the command line if that's more user-friendly.

Did it generate a file called GENERATED_SETUP.txt in the folder you ran it in (which should be your mod's common folder)?
 
Yes! It worked now :)
 
When I run the program it opens and then closes (as is expected behavior), but it doesn't generate GENERATED_SETUP.txt. Do you have any guesses as to why that might be?
 
I don't think this works sadly. You need some data from 1.3 (province_terrain ) to even make this generate the file, and even then the file crash the game.
 
This should be working as long as you have a province_terrain file. I am not aware of any issues when you do have that file - but please let me know if you have any trouble doing so either via DM or in the thread.
 
Last person I spoke to whose game was crashing when using generated 1.4 setup had it doing so because they didn't have zeroed vanilla setup files in their main setup folder. This caused incompatibilities when the game tried to load both the mod and the vanilla setup, so make sure you have got empty vanilla files in place in your setup folder for anything you want to completely replace.