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. 