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

tuore

Caramelised Utopian
76 Badges
Mar 16, 2009
6.981
188
  • March of the Eagles
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • The Kings Crusade
  • Lost Empire - Immortals
  • Magicka
  • Crusader Kings II
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Supreme Ruler: Cold War
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Arsenal of Democracy
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Deus Vult
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Legacy of Rome
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Island Bound
  • 200k Club
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Wealth of Nations
  • Victoria 2
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Europa Universalis IV: Res Publica
  • Europa Universalis III Complete
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis IV: Art of War
Yes, that's what the game says when I remove ONE province from Spain. I have created Morocco, and the game loads up normally (I have to press "ignore" to every province owned by Spain and Morocco, though), but when I try to remove these provinces from Spain (already owned by Morocco), the game crashes and says "Scenario files had errors". Why? I have checked it through carefully, and I am 100% sure it is caused by the removal of the province's id from the Spain.inc file. Any ideas?
 
If you remove a province from one (spain) it needs to be adde to the other (Morocco).

What scenario are you editing?

Morocco's file already has the provinces defined, now I need to remove the provs from Spain. I'm editing my mod's scenario, and Spain's file is currently the same as the '36 SPR file.
 
Any ideas? Here are the provinces in spain.inc:
Code:
nationalprovinces      = { 334 332 333 339 338 341 343 346 347 349 350 351 352 353 354 342 355 340 330 331 356 329 357 535 536 537 961 962 963 964
                             965 348
                           }
  ownedprovinces         = { 334  332  333  339  338  341  343  346  347  349  350  351  352  353  354  342  355  340  330  331  356  329  357  535 
                             536  537  961  962  963  964  965  957          1091
                           }
  # Spanish Guinea
  controlledprovinces    = { 334  332  333  339  338  341  343  346  347  349  350  351  352  353  354  342  355  340  330  331  356  329  357  535 
                             536  537  961  962  963  964  965  957          1091
                           }

And here are the provinces of morocco.inc:
Code:
  nationalprovinces   = { 955 956 958 959 960 966 967 968 969 971 972 965 964 963 962 961 957 954 }
  ownedprovinces      = { 955 956 958 959 960 966 967 968 969 971 972 }
  controlledprovinces = { 957 954 955 956 958 959 960 966 967 968 969 971 972 }

With these settings, the game crashes. If I add prov 954 back to Spain, the game runs fine.
 
Last edited:
Why the gap in Spain's ownedprovinces & controlledprovinces?
Code:
957          1091
Was this where the 954 was?
Depending upon how it's being picked up by the code, the space could be the issue (a space might be the delimiter, like a comma in a CSV file). Try taking out the extra spaces. Like:
Code:
957 1091
This must be the '36 scenario since the name is spain.inc
 
Last edited:
Hmmm....
Luckily I brought my home laptop to work. Just started it up. I'll try to do the same as you and see what I can find out


EDIT: Can you post your morocco.inc?
 
Last edited:
Province 954 isn't owned by anyone. IIRC every province must be owned by exactly one country and controlled by exactly one country. (It can be a national province of as many countries as you like, or none.) This game isn't like EU3 where provinces don't have to be owned by anyone ;)
 
Province 954 isn't owned by anyone. IIRC every province must be owned by exactly one country and controlled by exactly one country. (It can be a national province of as many countries as you like, or none.) This game isn't like EU3 where provinces don't have to be owned by anyone ;)

Aaaahh, that's the problem! I had forgotten to copy the controlled provinces to the owned ones.
 
I've run into another problem. I created Israel as a country and removed the provinces from France and UK. I made sure to copy the exact same files and every province has an owned. When I launch the game, it says the same error again. But this time, if I press "Ignore", it doesn't crash, but loads the game and the countries and all just fine.
This time the only problem seems to be the error message. It causes no problems, but it's annoying.

Here are the countries' provinces, can you guys find anything strange?

UK:

Code:
ownedprovinces         = { 3    5    6    7    8    9    10   11   12   13   14   15   16   17   19   20   21   22   23   28   29   348  31   444 
                                                    
                                                    
                                                 1796   1802 1803
                               407  1813 1814 1820 1822 1504    913    915 
                             1065 1066 1069 1068 1067 1029 1028 1032 1031 1030 1040 1041
                             1349 1350 1351 1352 1353 1644 1646 1647 1315 758  891  871  873  806  807  808  809  897  538  652  653  664  665  666 
                             668  805  896  866  1147 1148 1816 1817 1136 1815 1132 1139 1062 1140 1141 1064 1060 1061 1059 1035 1036 1112 1111 1105
                             1124 1125 1104 1099 1129 1126 1128 1000 1001 1002 1008 1007 999  1009 1010 1011 1145 1085 1012 988  982  1622 1683 1684
                             1685 1686 1763 1761 1767 1768 1769 1770 1757 1759 1760 1752 1753 1754 1755 1758 575  576  1614 1611
                           }

France:

Code:
  ownedprovinces         = { 529  527  366  365  367  364  363  362  358  328  327  326  325  324  359  361  319  360  322  323  59   60   61   62  
                             63   318  317  316  73   72   64   53   44   43   18   54   42   55   41   56   57   58   32   33   34   35   36   37  
                             38   39   40   320  321  528  875  898  899                             
                                                           1862 1861 1863 1792 1793 1794  1037 973 
                             974  975  1083 1084 998  976  977  978  981  984  987  989  990  985  980  986  979  994  996  997  1005 1006 991  995 
                             993  1088 1082 1081 1080 1079 1086 1070 1078 1077 1087 1089 1092 1093 1075 1076 1134 1137 1135 1338 1339 1340 1337 1335
                             1336 1334 1333 1332 1341 1329 1328 1306 1326 1692 1691 1687 1690 1689 1688 1751 1003 1004
                           }

Israel:

Code:
  ownedprovinces      = { 1795 1797 1798 1799 406 404 }
 
Sorry, I can't see any errors.

Did you try to make another clean, unmodded installation of AoD, and then try it again? Maybe your current installation is somehow broken.

I'll check. I'll copy the vanilla AoD folder and then file by file add the modded parts in. I'll report back soon. It's annoying that the error message doesn't even tell which file has a problem.
 
Last edited:
I am having the same problem but with huge IC map. I don't know how to find the location of error among so many provinces. It would be very good if a tool would be available telling the root of problem.

While doing such province exchanges you should make them step by step. Remove some ids from nation a and add them immediately to nation b. Save and add the changes files by using e.g. JSGME to your game. By checking your changes shortly afterwards you'll be able to root out bugs and typos. If you've made dozens of changes at the same time you'll need a lot of luck to find your bug. ;)
 
While doing such province exchanges you should make them step by step. Remove some ids from nation a and add them immediately to nation b. Save and add the changes files by using e.g. JSGME to your game. By checking your changes shortly afterwards you'll be able to root out bugs and typos. If you've made dozens of changes at the same time you'll need a lot of luck to find your bug. ;)

not dozens, thousands, I drawed the present day borders on IC map. I think my bug have to be found out by players after the release. Thanks for the answer.