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

unmerged(739)

General
Jan 20, 2001
2.482
0
Visit site
EU2 caused an invalid page fault in
module EU2.EXE at 0177:0043b550.
Registers:
EAX=060f2fa0 CS=0177 EIP=0043b550 EFLGS=00010206
EBX=02c4e688 SS=017f ESP=00b3f080 EBP=0000000c
ECX=00000000 DS=017f ESI=02bc1760 FS=687f
EDX=00000008 ES=017f EDI=073b1a50 GS=0000
Bytes at CS:EIP:
8b 51 08 8b 44 24 04 3b c2 75 05 32 c0 c2 04 00
Stack dump:
00549012 00000008 073b1a50 02c4e688 073b1c30 00000005 01000008 00000000 00000008 073b1c30 00548f71 00000007 073b1c30 005446f6 02c4e688 072673e0

Anybody know what happened?
 
Can you explain what you were doing when this happened.
 
How heavy an edit did you do? Did you back up the file first?

If you can tell me where your edits were and/or have both the original and edited version e-mail them to me and I'll take a look.

C-Rex...you can throw this over into support and I'll play with it. No promises since it's an edit/file mod but I may be able to put my finger on it fairly quickly.
 
Originally posted by Uglyduck
Thats what I like - teamwork:)

Although it sounds like en edit error to me....
Me too...having done so more than once myself. :p
 
Originally posted by Gen. Wolfe
I was editing a scenario (changing fort levels, colony populations etc.) and then I loaded the scenario up and then the message came up and the game crashed.
Come to think of it...

Out of curiosity, is this a manually created/edited scenario or are you using the EU2 scenario editor?

I'm assuming this is a crash-on-load situation so you may not be able to give me a save game. If you can get one, great! It should be easy to find the problem. If not then we're in for some more interesting entertainment.

For the purposes of this exercise, let's pretend that you've called your custom scenario "custom". In all of the following, substitute whatever name you've actually called it for "custom". Here's what we'll do:

Go to the C:\....\Europa Universalis 2\Scenarios folder. You should see three "new" items in this folder that you've created for your scenario: a folder called "custom" and two files called custom.inc and custom.eug.

Start by e-mailing the inc and eug files to me. I have a feeling that the error won't be there, but it's worth having a look and won't take me very long. I may not get the opportunity to do so until later in the day, though, depending on how my afternoon goes.

In the interim, you get to do the nasty part...try the following:

1. open custom.inc in Notepad (or any word processor). Go down to the bottom of the file and you'll see a bunch of lines that read something like:
  • include = "scenarios\custom\custom_bad.inc"
    include = "scenarios\custom\custom_bay.inc"
    include = "scenarios\custom\custom_dan.inc"
    include = "scenarios\custom\custom_eng.inc"
    include = "scenarios\custom\custom_fra.inc"
    include = "scenarios\custom\custom_gen.inc"
    ...etc.

2. Open the custom folder and make sure that every file listed in that series of include statements above is actually in the folder. If you’ve got an include statement above that points to a file that doesn’t exist then that will definitely be a problem.

3. Now, one by one, you’ll have to look at the individual countries’ inc files. Here’s a really cut down example that I’ve pulled out of one of the scenario folders:

  • Code:
    [color=yellow]
    # France #
    
    country = { 
        tag = FRA 
        ai = "france.ai" 
        policy = { 
            date = { year = 0 month = january day = 0 } 
            aristocracy = 7
            centralization = 7
            innovative = 3
            mercantilism = 2
            offensive = 5
            land = 6
            quality = 6
            serfdom = 6
        } 
        colonialattempts = 5 
        colonialnation = yes 
        major = no 
        dynamism = 2
        colonists = 1 
        treasury = 300 
        income = 0 
        inflation = 0.200000 
        merchants = 1.983333 
        religion = { 
            type = catholic 
        } 
        culture = { type = french }
        diplomacy = { 
            relation = { tag = ENG value = -140 } 
    
    [/color][color=white]<snip….long list>[/color][color=yellow]
    
            relation = { tag = CHI value = -200 } 
            relation = { tag = NIP value = -200 } 
            relation = { tag = MOG value = -200 } 
        } 
        changedreligion = no 
        knownprovinces = { 
     
    	        	231 232 233 234 235 236 237 238 239 240 241 242 243 244 
    		245 246 247 248 249 250 251 252 253 254 255 256 257 258 
    [/color][color=white]<snip…possibly a long list of known provinces>[/color][color=yellow] 
    		1294 1323 1324 1325 1328 1329 1330 1359 1360 1365 1366 1368 
    		1373 1375 1378
    	} 
    
        ownedprovinces = { 110 112 115 116 119 121 182 376 382 383 384 385 386 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 } 
        controlledprovinces = { 110 112 115 116 119 121 182 376 382 383 384 385 386 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 } 
        nationalprovinces = { 374 375 376 379 382 383 384 385 386 387 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 } 
    
        city = { 
            name = "Paris" 
            population = 170000
            location = 385 
            barrack = yes 
            fortress = { level = 2 } 
            capital = yes 
            bailiff = yes
            courthouse = yes
            manufactory = luxury 
        } 
    [/color][color=white]<snip…possibly a long list of cities>[/color][color=yellow]
        city = { 
            name = "Cayenne" 
            population = 300
            location = 182 
        } 
    
    	tradingpost = { name = "Fort des Pentagouets" level = 1 location = 112 } 
    	tradingpost = { name = "Fort Beauséjour" level = 1 location = 115 } 
    	tradingpost = { name = "Tadoussac" level = 1 location = 121 } 
    
        landunit = { 
            id = { type = 9424 id = 28 } 
            name = "Royal Army" 
            location = 385 
            infantry = 28000 
            cavalry = 5000 
            artillery = 40 
        } 
        landunit = { 
            id = { type = 9424 id = 30 } 
            name = "Army of the South" 
            location = 422 
            infantry = 22000 
            cavalry = 4000 
            artillery = 20 
        } 
        navalunit = { 
            id = { type = 9424 id = 32 } 
            name = "Ponant Fleet" 
            location = 925 
            warships = 32 
            galleys = 0 
            transports = 1 
        } 
        navalunit = { 
            id = { type = 9424 id = 34 } 
            name = "Levant Fleet" 
            location = 988 
            warships = 5 
            galleys = 24 
            transports = 1 
        } 
        landunit = { 
            id = { type = 9424 id = 5547 } 
            name = "Regiment de Canada" 
            location = 110 
            infantry = 2000 
            cavalry = 0 
            artillery = 0 
        } 
        technology = { 
            land = {  level = 21 value = 0 } 
            naval = {  level = 20 value = 0 } 
            stability = {  level = 1 value = 0 } 
            trade = {  level = 5 value = 0 } 
            infra = {  level = 5 value = 0 } 
            group = latin 
        } 
    }[/color]
    You’ll have to check this line by line looking for anything incorrectly formatted, typos, etc.

    4. Now the other killer (time-wise): it’s possible that you’ve got the same province in more than one inc file as either owned or controlled by two countries so “ideally” you need to double check this by keeping a running list of who owns and who controls what. Also keep an eye out for a country “owning” or “controlling” a sea area (which it can’t do…it can know them, but not control them).

    My guess is that somewhere in the above you’ll either find that you’ve forgotten an opening or closing bracket, have accidentally made a typo, etc. The error message you’re getting is almost certainly a case where eu2.exe is encountering data that is of the wrong type, or conflicting data, or missing data. The other possibility is that it’s encountering a situation where two different countries either own or control the same province.

    Let’s start with that and see what we can find out. :)
 
____________________________________________________
____________________________________________________
# Netherlands #

country = {
tag = HOL
ai = "aon_holland.ai"
colonialattempts = 30
colonialnation = yes
major = no
colonists = 2
cancelledloans = 0
extendedloans = 0
treasury = 190
inflation = 0.100
merchants = 3.900333
religion = { type = reformed }
culture = { type = dutch }
diplomacy = {
relation = { tag = FRA value = 200 refusetrade = no }
relation = { tag = POM value = 200 refusetrade = no }
}
changedreligion = no

knownprovinces = { 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 822 38 39 40 41 43 49 50 54 62 63 64 68 85 86 87 102 103 104 110 112 116 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 178 179 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 215 217 222 221 220 219 223 224 225 231 232 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 641 642 643 645 646 647 649 650 651 652 653 654 655 656 657 659 660 661 664 665 666 667 668 670 671 675 676 679 680 681 682 683 684 685 686 687 688 1331 1362 1470 1469 690 691 692 693 697 698 699 700 703 706 707 709 710 711 712 716 732 733 734 735 736 737 738 739 740 741 742 744 745 746 800 801 802 803 804 805 806 809 817 818 819 821 834 833 839 840 841 842 843 860 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 896 897 898 899 900 901 902 903 906 905 904 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 944 958 959 962 963 961 960 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1028 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1095 1096 1097 1098 1199 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1167 1168 1169 1170 1171 1173 1172 1173 1174 1179 1180 1181 1182 1183 1184 1187 1188 1185 1186 1189 1190 1191 1193 1194 1202 1204 1205 1206 1207 1208 1209 1210 1211 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1238 1239 1240 1241 1249 1250 1251 1252 1253 1254 1255 1263 1264 1331 1337 1340 1341 1342 1357 1358 1362 1349 1348 1375 1374 1376 1335 1365 1329 1366 1328 1360 1325 1324 1359 1323 1330 1332 1336 1345 1346 1347 1350 1351 1352 1353 1354 1355 1356 1363 1364 1368 1373 1375 1382 1385 1444 1392 1393 1434 1395 1399 1427 1421 1422 1460 1458 1459 1461 1361 1390 1394 1433 1455 1429 1426 1430 1423 1424 1425 1428 1391 1401 1397 1420 1418 1462 1419 1416 1417 1415 1414 1413 1435 1432 1431 1453 1437 1454 1443 1389 1446 1447 1448 1452 1451 1412 117 823 820 816 756 765 811 714 715 713 694 810 1378 705 509 799 181 1400 701 704 778 677 708 702 1609 1610 1611 1612 1613 233 798 797 796 795 794 793 792 791 790 789 788 787 786 785 784 783 782 780 781 779 776 775 774 773 772 771 770 769 768 767 764 766 763 762 757 759 760 761 755 754 753 500 501 502 503 504 505 506 507 508 532 533 534 535 672 673 674 689 695 696 678 1344 1343 1265 1212 1266 1267 1269 1268 1262 1270 1310 1271 722 724 725 726 723 1312 731 1313 1272 1273 1274 1338 717 718 1227 1228 719 1225 1339 1224 1226 1230 1161 1094 45 46 48 47 53 55 65 69 84 88 90 83 71 67 56 52 59 60 72 73 51 57 1481 44 42 61 66 70 113 115 114 111 1472 105 109 121 122 123 124 832 118 119 120 101 100 89 99 91 1369 1370 1568 1569 78 76 94 95 1372 1371 79 93 74 58 75 77 80 82 81 92 97 98 106 108 107 96 }
ownedprovinces = {
181 146 337 338 339 340 377 378 380 153 680 681 701 702 703 704 706 707 708 709 710 711 713 714 715 698 699 716
}
controlledprovinces = {
181 146 337 338 339 340 377 378 380 153 680 681 701 702 703 704 706 707 708 709 710 711 713 714 715 698 699 716
}
nationalprovinces = { 181 146 337 338 339 340 153 680 681 701 702 703 704 706 707 708 709 710 711 713 714 715 698 699 716 679 682 705 700 719
}
city = {
population = 450000
location = 339
shipyard = yes
fortress = { level = 3 date = { year = 1492 month = january day = 1 } increase = no }
bailiff = yes
courthouse = yes
cityrights = yes
capital = yes
}
city = {
name = "Surinam"
population = 6785
location = 181
fortress = { level = 2 }
}
city = {
name = "St Maarten"
population = 2250
location = 146
fortress = { level = 2 }
}
city = {
population = 350000
location = 380
fortress = { level = 2 }
bailiff = yes
courthouse = yes
cityrights = yes
manufactory = goods
barrack = yes
shipyard = yes
}
city = {
name = "Willemstad"
population = 6500
location = 153
fortress = { level = 2 }
}
city = {
name = "Brussel"
population = 450000
location = 378
fortress = { level = 2 }
bailiff = yes
courthouse = yes
cityrights = yes
barrack = yes
}
city = {
population = 35000
location = 377
fortress = { level = 2 }
bailiff = yes
courthouse = yes
cityrights = yes
}
city = {
population = 100000
location = 338
fortress = { level = 2 }
bailiff = yes
courthouse = yes
cityrights = yes
}
city = {
population = 65000
location = 337
fortress = { level = 2 }
bailiff = yes
courthouse = yes
cityrights = yes
}
city = {
name = "Rotterdam"
population = 55000
location = 340
fortress = { level = 2 date = { year = 1492 month = january day = 1 } increase = no }
bailiff = yes
courthouse = yes
cityrights = yes
manufactory = goods
}
city = {
name = "Bandung"
population = 25000
location = 701
fortress = { level = 2 }
}
city = {
name = "Batavia"
population = 45000
location = 702
fortress = { level = 4 }
bailiff = yes
}
city = {
name = "Yogyakarta"
population = 16500
location = 703
fortress = { level = 2 }
}
city = {
name = "Surabaya"
population = 25000
location = 704
fortress = { level = 2 }

}
city = {
name = "Sumbawa"
location = 710
population = 500
fortress = { level = 2 }
}
city = {
name = "Kalimantan"
location = 700
population = 600
fortress = { level = 2 }
}
city = {
name = "Ende"
population = 12500
location = 711
fortress = { level = 2 }
}
city = {
name = "Ujung Pandang"
population = 15250
location = 708
fortress = { level = 2 }

}
city = {
name = "Kendari"
population = 8500
location = 709
fortress = { level = 2 }

}
city = {
name = "Palu"
population = 15000
location = 707
fortress = { level = 2 }

}
city = {
name = "Manado"
population = 14000
location = 706
fortress = { level = 2 }
bailiff = yes
}
city = {
name = "Buru"
population = 6750
location = 714
fortress = { level = 2 }

}
city = {
name = "Ambon"
population = 11500
location = 715
fortress = { level = 2 }

}
city = {
name = "Tidore"
population = 7000
location = 713
fortress = { level = 2 }

}
city = {
name = "Padang"
location = 680
population = 600
fortress = { level = 2 }
}
city = {
location = 681
population = 600
fortress = { level = 2 }
}
city = {
location = 716
population = 600
fortress = { level = 2 }
}
city = {
name = "Palangkaraya"
location = 698
population = 554
fortress = { level = 2 }
}
city = {
location = 699
population = 622
fortress = { level = 2 }
}


landunit = {
id = { type = 96424 id = 135 }
name = "Home Army"
location = 339
infantry = 40000
cavalry = 10000
artillery = 20
}
landunit = {
id = { type = 96424 id = 300 }
name = "Armee"
location = 702
infantry = 30000
cavalry = 0
artillery = 20
}
navalunit = {
id = { type = 9424 id = 301 }
name = "Dutch East Indies Fleet"
location = 702
warships = 16
galleys = 0
transports = 10
}
navalunit = {
id = { type = 9424 id = 302 }
name = "Dutch Fleet"
location = 339
warships = 36
galleys = 0
transports = 10
}
technology = {
land = { level = 57 value = 0 }
naval = { level = 50 value = 0 }
stability = { level = 3 value = 0 }
trade = { level = 8 value = 0 }
infra = { level = 8 value = 0 }
group = latin
}
}

____________________________________________________
____________________________________________________

Here is the file...this is the only one I edited and no none of the other countries own any of these provinces...
 
Am I correct in assuming that this is the inc file from the scenario folder? If so I see one thing right away...you're missing the DP starting settings. The file should start:
Code:
[color=yellow]
country = { 
    tag = HOL 
    ai = "aon_holland.ai"
    policy = { 
        date = { year = 0 month = january day = 0 } 
        aristocracy = 2
        centralization = 7
        innovative = 7
        mercantilism = 0
        offensive = 1
        land = 5
        quality = 5
        serfdom = 2
    } 
    colonialattempts = 30 
    colonialnation = yes 
    major = no 
    colonists = 2 
    cancelledloans = 0

[/color][color=white]etc[/color]
Try adding that into the file and let me know if it runs...

Edit: ...further perusal seems to suggest that the DP settings aren't critical since they'll simply default to base otherwise.
 
Last edited:
Got it! :cool:

I pasted your file to confirm that it does indeed crash (and it does) so I spent some time comparing the hol.inc that's included with the AoN download to your file.

Here's your problem...

The following are listed as controlled provinces (the same as in the AoN scenario)
Code:
[color=yellow]
controlledprovinces = { 
181 146 337 338 339 340 377 378 380 153 680 681 701 702 703 704 706 707 708 709 710 711 713 714 715 698 699 716 
} 
[/color]

The following is lower down in your city listing
Code:
[color=yellow]
city = { 
name = "Sumbawa" 
location = 710 
population = 500 
fortress = { level = 2 } 
} [/color][color=red]
city = { 
name = "Kalimantan" 
location = 700 
population = 600 
fortress = { level = 2 } 
} [/color][color=yellow]
city = { 
name = "Ende" 
population = 12500 
location = 711 
fortress = { level = 2 } 
} 
[/color]
Somehow you've suddenly added in province #700 into your city listing except you don't own it! You'd better give it back to whoever rightfully owns it. :p (I didn't bother checking who that was...if you want to keep it then that's your job ;))

I then deleted the province #700 from your list and tried again...worked like a charm. :cool:

Enjoy. :)

EDIT: Note...you've populated a number of those former trading posts to below 700 as well so they'll show up as level whatever colonies until the population builds up again...I presume that's what you intended.

If you do want to keep #700 then you'll have to find out who (if anyone) owns it now and remove it from their "owned" list and remove the city/colony/trading post from their city list. Then add it to your owned list and presto, it's yours.
 
Last edited:
Originally posted by Gen. Wolfe
Thanks T, works perfectly now. I pit the fool who don't listen to T! :D

yep, he's great :)
I'm certainly glad he was here, 'cause with me you would have ended in scenario forum in no time :D

I'm not good at scenario editing and I prolly wouldn't have spotted that little mistake :)

but I'm learning too :D (and he's the one on training :p )
 
LOL! I figured that maybe you'd asked the good general to administer a pop quiz to see if I could spot the error or whether I'd get frustrated and toss it over to the scenario forum to figure out. :p Took me a while, though, since there were all sorts of little oddities with the file (AoN, sub-700 pop in a city, no DP settings, etc. :eek: ).

Fortunately I've done a fair bit of editing and event scripting so I'm pretty comfortable with that stuff. It's some of the more obscure tech stuff that's going to take me a while to figure out...I don't work with DirectX much at the office so it's a bit foreign to me. Now give me some RIP software, an ICC profiler and a 500Mb eps file and I'll be happily at home. :)