Download Latest Version fabby_random_provinces.zip (4.3 MB)
Email in envelope

Get an email when there's a new version of Fabby's Random Provinces

Home
Name Modified Size InfoDownloads / Week
fabby_random_provinces.zip 2014-04-13 4.3 MB
README.txt 2014-04-12 8.0 kB
Totals: 2 Items   4.3 MB 0
This mod comes with the location of countries randomized, and you can also re-randomize it yourself!

This mod was inspired by the "Random Provinces" mod (http://steamcommunity.com/sharedfiles/filedetails/?id=238049289) written by  britishbritish.
I decided I wanted to change a few things, and have the ability to constantly make new random maps, rather than just have the one.

The python script 'randomize_locations.py' does the randomization, for the lazy here is all you need to do is run the script. Running this may take
a little technical know-how but I've tried to make it as simple as possible.

Also, sourceforge link for people who hate Steam: https://sourceforge.net/projects/fabbysrandomprovinces/
This will probably not be updated as frequently as the workshop version.

+++++WARNING WARNING WARNING+++++
Good, that got your attention. This mod includes a script that REWRITES both country and province history files. By default it only does this
in the mod folder, but if you are a silly butt and run the script from your Steam EUIV directory will will modify the real files. DONT DO THAT. 

If you do then you will need to re-download the game/repair it via steam. 

You've been warned.

=====QUICK START=====
On PC:
I've included an exe, so this should be easy for you.

1) Go into /mod/fabby_random_provinces/dist and run randomize_locations.exe
2) This will open a black window for a few seconds, then the window will go away. 
The amount of time to run varies based on number of provinces per country from a few seconds to a minute.

If this exe does not run you may need to install the Microsoft Visual C++ Redistributable (http://www.microsoft.com/en-us/download/details.aspx?id=29)
Alternatively, you can just install python 2.7 or later and follow the Mac instructions below.

on Mac or Linux:
1) open up Terminal (it's in your applications folder).
2) navigate to the mod folder (you will need to unzip the mod first) by typing:
	cd /users/YourUsername/My Documents/Paradox Interactive/Europa Universalis IV/mod/fabby_random_provinces
obviously change the path to wherever your folder is located, I'm only guessing on this path. Feel free to tell me if it's right.
3) type the following:
	python randomize_locations.py
4) wait, the amount of time to run varies based on number of provinces per country from a few seconds to a minute.

=====WHAT THIS MOD DOES=====
1) Countries are randomly placed, and given a set number of provinces. All of those provinces will be in the same "region".
2) Each country is randomly assigned a religion, all their provinces are set to that religion. 
3) The religion a country gets is more likely to be that of any neighbors they have, so religions should be clustered together.
4) Formable nations (except Austria) are now formable by any nation with the appropriate provinces, culture requirements have been removed.
5) The HRE is gone.
6) Any provinces that were uncolonized in the base game have been randomly assigned a trade good, and have had their manpower and city size set to a given value.
7) There are still uncolonized provinces, most of the time, due to how I'm picking provinces. These will be distributed oddly. It is not a bug, but a feature.

=====WHAT THIS MOD DOES *NOT* DO=====
1) Province tax incomes are not rebalanced. If your country of choice is in northeastern North America your base tax will be much lower than if you start in the Caribbean.
2) Trade goods are only assigned once, they will have the same trade goods between randomizations, unless you manually replace the province files with the vanilla ones.
3) The trade goods are not region specific, as they should be, because I'm lazy. (You may end up with tea or chinaware in the new world.)
4) This mod does not, at the moment, change tech groups. You still have the natives malus if you pick the Cherokee, I may add this as an option to change later, if requested.
5) This mod does not promise to get you laid.

=====SETTINGS=====
You can modify some of the settings for the mod by changing the settings.txt file in the mod directory.
In this file spaces around equals signs matter. Because I'm lazy. 

1) provinces_per_country will set the number of provinces each country gets. The actual number a province gets
will vary somewhat. Sometimes if this is too big I've seen the generated countries crash EUIV, if this happens
try to regenerate the countries (i.e. run it again), if it continues set this to a smaller number. I have problems
with country size around 30 sometimes. If this option is very high you will often see one large country in each region, 
and a second smaller power only a few provinces large.


2) formable defines if formable countries are automatically made. If this is set to 'no' then no formable countries are generated
this means that the player can try to form them. This includes all formable nations except Austria. The culture requirements for
each nation have been removed, so anyone should be able to form Spain or England, given the correct provinces. If some of these 
do not work let me know. If this option is set to 'yes' then formable nations will be placed on the map, and therefore the player
will not be able to form those nations unless the original is removed.

=====RESETTING THE FILES=====
Sometimes you may want to completely reset the randomization, particularly to re-randomize trade goods, and possibly other things in the future.
To do this you just need to replace the province files.

Copy the province files from: Steam/steamapps/common/Europa Univeralis IV/history/provinces 
into the mod directory: mod/fabby_random_provinces/history/provinces
replace all the files that are there.
Run the ramdomizer as in the QUICK START section.

You can also reset the country files, by copying the /history/countries provinces from the EUIV Steam folder to the mod folder. This should not 
matter right now, but if you're having issues it might help, I don't know, I'm not a wizard.*

*Note that this does mean if you drop a new country file in here, like your custom country "Beartopia" it will get added to the world too.
You probably need to add the references in the other country relevant folders too, which I wont go into detail here. Check the EUIV wiki.

If you are having EUIV crash when trying to run the mod try doing this and re randomizing.

=====KNOWN ISSUES=====
If any of these happen to you LET ME KNOW, If you've re-run the randomizer please tell me what settings you used, and what version of Python you ran.
And please note any errors in /mod/fabby_random_provinces/randomization_errors.txt

*Larger country sizes may crash the game
	Fix: regenerate the randomization, and try again
*Does not work with random new world. Well... It will load, but the countries in the new world will be kinda weird.

=====PLANNED FEATURES=====
*your mileage may vary, depending on life and how lazy I am these may happen. I'm more likely to implement them if you, the people, really want them.
I'll set of a thread for requested features on the mod page for this where you can post those, rather than the general discussion.

*Vary the assigned country size.
*Randomly assign base tax from some distribution (Gauss? or something more exciting?), this may equalize country starts more. 
*Randomly assign manpower, right now most new world provinces will have fairly low manpower.
*Re-add the HRE to a random place on the map - I don't know how to set electors and emperor though, if you know how send me a message!
*Make countries provinces border each other, rather than just be in the same region. I can't figure out how to tell which provinces border each other, if you know tell me!

=====UPDATES=====
1.1 - Fixed sea tiles being assigned to countries, it also managed to get rid of uncolonized provinces most of the time.
1.0 - First release, and I'm calling it 1.0 'cause I'm ballsy like that
Source: README.txt, updated 2014-04-12