I have small problem with my mod (which I create from late november 2009
) ... I TOTALLY don't know why my cultures don't want to work.
But lets approach to a problem systematically.
1. My cultures.txt file, from mod's DB dir, looks that:
and so on - slovak, russian, lithuanian, belarusian and ukrainian cultures... All that cultures are assigned to proper provinces in provinces.txt file too.
All looks well... but it don't work...
2. When I'm starting the mod, there is a announcement about error:
"Assertion failed: Error in DB: no valid culture"
3. When I ignore this and start scenario, there are plenty of errors:
"Assertion failed: ERROR: (Unknown culture) 'type = polish' Line 16 file = scenarios\379\379_ALK.inc " (and so on with all my inc files from scenario dir)
My typical inc file looks that (all looks well for me):
4. When I check moddebug.txt from Logs dir, there is record:
there is also other data about errors in files connected with cultures in moddebug.txt:
I have no idea what do I wrong and why my cultures don't want to work... And because cultures don't want to work my countries don't have nation cultures, my province don't show buildings and don't have cultures too...
Maybe someone can help me and tell me what I do wrong...
Files from my mod (cultures.txt, cultures.csv, colorscales_cultures.txt, moddebug.txt) you can find there -> http://www.filefront.com/15370153/cultures problem.rar
If more files will be neded to check I will upload they too...
If we are in cultures theme i have an ask - can I name culture (culture's tag) like I want? Or culture's tags are predefined (like in Eu2)?
And second question - this time about time in game - where I must change a scenario start date, to start game before 1419? (I changed it in scenario .eeg file [startyear and startdate] and scenario .inc file [global data - startdate] but this dosn't work). Can I start in year 0?
Many thanks for help
But lets approach to a problem systematically.
1. My cultures.txt file, from mod's DB dir, looks that:
polish = {
city = MIN
buildings = MIN
color = Green
}
german = {
city = MIN
buildings = MIN
color = LightBlue
}
czech = {
city = MIN
buildings = MIN
color = Yellow
}
and so on - slovak, russian, lithuanian, belarusian and ukrainian cultures... All that cultures are assigned to proper provinces in provinces.txt file too.
All looks well... but it don't work...
2. When I'm starting the mod, there is a announcement about error:
"Assertion failed: Error in DB: no valid culture"
3. When I ignore this and start scenario, there are plenty of errors:
"Assertion failed: ERROR: (Unknown culture) 'type = polish' Line 16 file = scenarios\379\379_ALK.inc " (and so on with all my inc files from scenario dir)
My typical inc file looks that (all looks well for me):
# Aleksandrów Kujawski #
country = {
tag = ALK
ai = "default_ai.txt"
colonialattempts = 0
colonialnation = no
major = no
colonists = 0
cancelledloans = 0
extendedloans = 0
treasury = 100
inflation = 0
merchants = 0.083333
religion = { type = catholic }
culture = { type = polish }
diplomacy = { }
knownprovinces = { 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 191 192 193 194 195 196 197 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 700 701 702 703 704 705 706 707 708 709 710 711 712 713 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 }
ownedprovinces = { 919 }
controlledprovinces = { 919 }
nationalprovinces = { 919 }
city = { fortress = { level = 1 }
population = 8000
location = 919
capital = yes
}
landunit = { }
technology = {
stability = { level = 2 value = 0 }
infra = { level = 1 value = 50 }
trade = { level = 1 value = 50 }
land = { level = 1 value = 0 }
naval = { level = 1 value = 0 }
}
4. When I check moddebug.txt from Logs dir, there is record:
and so on...mod_file.cpp:43 Opened moddir file "mods\tr\db\cultures.txt" with mode "r".
Culture.cpp:161 Expected tag as value: city = "MIN"
Culture.cpp:161 Expected tag as value: buildings = "MIN"
Culture.cpp:239 Missing information for culture definition - Got this: polish = {
city = "MIN"
buildings = "MIN"
color = "Green"
}
Culture.cpp:161 Expected tag as value: city = "MIN"
Culture.cpp:161 Expected tag as value: buildings = "MIN"
Culture.cpp:239 Missing information for culture definition - Got this: german = {
city = "MIN"
buildings = "MIN"
color = "LightBlue"
}
Culture.cpp:161 Expected tag as value: city = "MIN"
Culture.cpp:161 Expected tag as value: buildings = "MIN"
Culture.cpp:239 Missing information for culture definition - Got this: czech = {
city = "MIN"
buildings = "MIN"
color = "Yellow"
}
Culture.cpp:161 Expected tag as value: city = "MIN"
Culture.cpp:161 Expected tag as value: buildings = "MIN"
Culture.cpp:239 Missing information for culture definition - Got this: slovak = {
city = "MIN"
buildings = "MIN"
color = "Blue"
}
there is also other data about errors in files connected with cultures in moddebug.txt:
and so on... but I copied colorscales_cultures.txt from vanilla... I didn't change anything in this file...mod_file.cpp:43 Opened moddir file "mods\tr\db\map\colorscales\colorscales_cultures.txt" with mode "r".
frontsettings.cpp:1495 Header not taken in account: Purple = {
color = {
255
170
170
0
}
color = {
170
40
160
20
}
color = {
140
20
130
35
}
color = {
80
20
10
64
}
}
frontsettings.cpp:1495 Header not taken in account: Green = {
color = {
255
250
230
0
}
color = {
220
240
180
20
}
color = {
80
150
90
50
}
color = {
40
110
70
64
}
}
frontsettings.cpp:1495 Header not taken in account: LightBlue = {
color = {
180
210
255
0
}
color = {
80
150
225
12
}
color = {
60
100
190
40
}
color = {
10
20
40
64
}
}
I have no idea what do I wrong and why my cultures don't want to work... And because cultures don't want to work my countries don't have nation cultures, my province don't show buildings and don't have cultures too...
Maybe someone can help me and tell me what I do wrong...
Files from my mod (cultures.txt, cultures.csv, colorscales_cultures.txt, moddebug.txt) you can find there -> http://www.filefront.com/15370153/cultures problem.rar
If more files will be neded to check I will upload they too...
If we are in cultures theme i have an ask - can I name culture (culture's tag) like I want? Or culture's tags are predefined (like in Eu2)?
And second question - this time about time in game - where I must change a scenario start date, to start game before 1419? (I changed it in scenario .eeg file [startyear and startdate] and scenario .inc file [global data - startdate] but this dosn't work). Can I start in year 0?
Many thanks for help