I found an error in my save file. It happened when CHI apparently (I didn't see it, but one can assume from the save game file) lost province 1608 to another country (CHN?). Anyway, the 1608 correctly disappeared from the "ownedprovinces" tag, and the "full" 1608 city tag correctly disappeared. However, the "mini" 1608 city tag remained. This crashed the game whenever it loaded the save file. I would have lost several hours of play if I didn't find this! Simply removing this "mini" city tag fixed the problem.
USING: EEP v.1.4.2 & eu2_107b_23rdjul_b.zip
If anybody knows what this "mini" city tag is, why it is in the save game file, or the implications of removing it, please let me know. Also, if anyone else is getting a broken save game file crash, let me know. I may be inclined to write a save file checker/fixer program for "mini" cities (and possibly "full" cities) not being with the appropriate country tag.
Here is the erroneous code (edited for brevity):
(Note that CHI does not own 1608, but has the 1608 "mini" city)
Here is how it looked the day before CHI lost 1608:
(note that CHI owns 1608 and has 2 versions of 1608 city)
Here is the erroneous "mini" city line that should NOT be in the CHI tag.
P.S. I refer to this tag as "mini" because it doesn't have the full city tag parameters. I'm not exactly sure, but maybe it's a colonial city. Any thoughts would be appreciated.
USING: EEP v.1.4.2 & eu2_107b_23rdjul_b.zip
If anybody knows what this "mini" city tag is, why it is in the save game file, or the implications of removing it, please let me know. Also, if anyone else is getting a broken save game file crash, let me know. I may be inclined to write a save file checker/fixer program for "mini" cities (and possibly "full" cities) not being with the appropriate country tag.
Here is the erroneous code (edited for brevity):
(Note that CHI does not own 1608, but has the 1608 "mini" city)
Code:
country = {
tag = CHI
ownedprovinces = { 1606 649 650 651 652 653 654 655 656 657 658 659 660 661 1544 1555
1556 1559 1560 1561 1562 1563 1564 1565 1566 1567 1549 1550 617 689 }
controlledprovinces = { 1606 649 650 651 653 654 655 656 657 658 660 661 1544 1555 1559
1562 1564 1566 617 1563 1556 659 689 }
nationalprovinces = { 1606 1608 645 646 647 648 649 650 651 652 653 654 655 656 657 658
659 660 661 1553 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 }
city = { name = "Zhangye" population = 4434.903 location = 1608 }
}
(note that CHI owns 1608 and has 2 versions of 1608 city)
Code:
country = {
tag = CHI
ownedprovinces = { 1606 1608 649 650 651 652 653 654 655 656 657 658 659 660 661 1544
1555 1556 1559 1560 1561 1562 1563 1564 1565 1566 1567 1549 1550 617 689 }
controlledprovinces = { 1606 649 650 651 653 654 655 656 657 658 660 661 1544 1555 1559
1562 1564 1566 617 1563 1556 659 689 }
nationalprovinces = { 1606 1608 645 646 647 648 649 650 651 652 653 654 655 656 657 658
659 660 661 1553 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 }
city = { name = "Zhangye" population = 4434.903 location = 1608 }
city = {
name = "Zhangye"
population = 22061.516
location = 1608
bailiff = yes
fortress = { level = 1.000 }
}
}
Here is the erroneous "mini" city line that should NOT be in the CHI tag.
Code:
city = { name = "Zhangye" population = 4434.903 location = 1608 }
P.S. I refer to this tag as "mini" because it doesn't have the full city tag parameters. I'm not exactly sure, but maybe it's a colonial city. Any thoughts would be appreciated.