EU Scenario Generator

WARNING: 
This utility modifies following files: 
    /DB/DiplomaticMatrix.csv    
    /DB/Province.csv
    /DB/Colonists.csv
    /DB/Traders.csv
    /DB/Revolt.csv
    /DB/Revolt.txt
    /DB/Goods.txt
    /DB/tax_stab.txt
and creates:
    /Scenarios/Random.eug
Use it on your own risk!

FEATURES:
 - every nation begins with one starting province
   (or several provinces if Accelerated Start is enabled)
 - starting province: random or historical 
 - religion in provinces: random or historical 
 - terrain and climate in provinces generated according to user settings
 - trade goods in provinces generated according to terrain, climate and continent specifics
 - CoT placement generated according to nation starting provinces
 - possibility to play with up to 90 nations! 
 - for each nation you can individually specify starting gold, tech, army, navy and so on
 - simple map editor where you can manually edit goods, terrain, climate and religion 
   in provinces
 - and much more...

New in this version:  
 - see version.txt

KNOWN PROBLEMS:
 - some nations have too 'hardcoded' AI and never expand if not placed in the
   right location (Russia - only in Siberia, Turkey, minor muslim nations - Asia, Africa, 
   Spain - America,Portugal - Brazil, Africa.., 
   Is there any way to override this AI (other then change of nation tag) ?
 - political map: in 'fantasia' mode only nations from original Fantasia 
   scenario have unique color. 
   Country borders will be better visible in fantasia mode if you copy
   colorscales.csv from archive to Map directory (orange is replaced with cyan).     
   All countries will have their own color if you enable 
   "Don't use FANTASIA mode" checkbox in GUI before generation.

INSTALLATION:
1. Unzip the files and copy them to EU Program folder
2. Start 'EUGenerator.exe'
3. Answer 'Yes' when program asks you to backup original files
4. Change what you want (e.g. select majors using triple-circles button). 
5. Press 'Run!' to create random scenario.
6. Quit EU Scenario Generator.
7. Start up the game and choose 'Random' from scenario list.
8. Play!

To play any original scenario on original map you must first 
restore original files 'DiplomaticMatrix.csv', 'Province.csv', 'colonist.csv' 
and 'traders.csv' from backup.
1. Start 'EUGenerator.exe'
2. Press 'File -> Restore orig. files' in the main menu

To play any original scenario (e.g Grand Campaign) with generated map:
1. Start 'EUGenerator.exe'
2. Press 'File -> Restore orig. files' in the main menu
3. Set generator to map-only mode: 
    main menu: 'Generator Mode -> Generate map only' 
4. Press Run! to create random map.

Generator is ICG compatible. If you want to use countries from Improved Grand 
Campaign press Nation Stats -> Use ICG stats. To do it permanently open EUGener.csv 
in text editor and change line: NationStats;0 to NationStats;1 .

MAP EDITOR:

If you want to use Map Editor you must first enable it in the Main Menu
(Map Editor -> Enabled). Map Editor is then shown automatically when you 
press Run! to generate scenario.
Usage of editor:
 Left click on map: select province, 
 Right click on map: center map, (you can use minimap too) 
 Buttons with color circles on right panel: select start location for majors
 Buttons in top-left box: switch among terrain/climate/goods/religion map
 Buttons on bottom of screen : edit provinces terrain/climate/goods/religion
 Multiselection: drag mouse over the map with left button pressed

Note: Due multiplayer reasons is information that editor is enabled visible
      in the game in country selection screen.

If you want to use editor permanently open EUGener.csv and change line:
EditorEnabled;0 to EditorEnabled;1


TROUBLESHOOTING:

If you experience (frequent) game crashes using generated scenario
at first check this rules:
1.  Always use latest version of game: from version 1.09 is the game very stable 
    (no single crash experianced during my testing), 
2.  Generator is multiplayer compatible, but you will have to make sure, 
    that every participant has exactly the same version of EU and all game 
    files are identical. 
    (Check if single player with the same scenario works OK.)

I have several reports about the blank map. Unfortunately I don't know why 
this error occurs on some systems :( 
However there is possibility to select starting provinces in 'blind'
mode. Just press one of color circle buttons on the right panel and then 
leftclick somewhere on the map (try it several times till the color circle
shows on map and province name shows in province info box.)
The game will work OK with generated scenario. 

If nothing of previous is your case please send me generated files:
Random.eug, DiplomaticMatrix.csv, Province.csv and Revolt.txt
(in zip archive) so I can easily reproduce the problem and correct it 
in the future versions.

This utility was tested but not with every setting, so test it!
Feel free to edit (in Excel or text editor) configuration files in /Config directory.
Any comments, suggestions and bugs (of course;)) please send to: 
moctezumaIam@hotmail.com. 

Latest version you can always find at http://www.geocities.com/moctezumaiam/.
