What am I doing wrong?
I have created some events which I want to happend if Italy conquers Yugoslavia (creation of independent Croatia and dividing of the rest of the country to Bulgaria, Hungary, Germany and Italy, just as it was in 1941). The events I have saved as a text-file (labelled new.txt) and saved in the events-directory. In the text-file events I have added the line
event = "db\events\new.txt"
and I have also in the config-directory changed the text.csv file, and added the names and descsriptions for the new events.
Does anybody know why this doesn't work? When I try to load the game it either crash or a pop up menu says that it is some kind of Database Mismatch.
Where is the failure? Thanks for any help!
---
My file events.txt in Hearts of Iron\db directory looks like:
#
#
#
# The Hearts of Iron Events Database
#
# written by Henrik Fåhraeus
#
#
#
# New events
event = "db\events\new.txt"
# New events for 1.02
event = "db\events\102.txt"
# New events for 1.01
event = "db\events\101.txt"
# The nation specific historical events
event = "db\events\albania.txt"
event = "db\events\austria.txt"
event = "db\events\czechoslovakia.txt"
event = "db\events\communist_china.txt"
event = "db\events\nationalist_china.txt"
event = "db\events\denmark.txt"
event = "db\events\finland.txt"
event = "db\events\france.txt"
event = "db\events\vichy_france.txt"
event = "db\events\germany.txt"
event = "db\events\hungary.txt"
event = "db\events\italy.txt"
event = "db\events\japan.txt"
event = "db\events\lithuania.txt"
event = "db\events\poland.txt"
event = "db\events\romania.txt"
event = "db\events\slovakia.txt"
event = "db\events\nationalist_spain.txt"
event = "db\events\republican_spain.txt"
event = "db\events\sweden.txt"
event = "db\events\UK.txt"
event = "db\events\USA.txt"
event = "db\events\USSR.txt"
# Random events
event = "db\events\RandomEvents.txt"
----------------------------------------------------
Content of file new.txt in Hearts of Iron\db\events directory:
#########################################################################
# Independent Croatia
#########################################################################
event = {
id = 5001
random = no
country = ITA
trigger = {
owned = { province = 624 data = ITA }
owned = { province = 742 data = ITA }
owned = { province = 740 data = ITA }
owned = { province = 745 data = ITA }
owned = { province = 744 data = ITA }
owned = { province = 747 data = ITA }
owned = { province = 743 data = ITA }
NOT = {
OR = {
exists = YUG
exists = CRO
}
}
}
name = "EVT_5001_NAME"
desc = "EVT_5001_DESC"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "ACTIONNAME5001A" # Create Croatia
command = { type = independence which = CRO }
command = { type = trigger which = 5002 } # CRO
}
action_b = {
name = "ACTIONNAME5001B" # Let us take it all!
command = { }
}
}
#########################################################################
# Independent Croatia
#########################################################################
event = {
id = 5002
random = no
country = CRO
#Triggered by ITA5001
name = "EVT_5002_NAME"
desc = "EVT_5002_DESC"
style = 0
action_a = {
name = "ACTIONNAME5002A" # We got Independence!
command = { type = alliance which = ITA }
command = { type = alignment which = fascist value = 200 }
command = { type = manpowerpool value = 20 }
command = { type = supplies value = 200 }
command = { type = headofstate which = 30001 }
command = { type = headofgovernment which = 30002 }
command = { type = foreignminister which = 30003 }
command = { type = armamentminister which = 30004 }
command = { type = ministerofsecurity which = 30005 }
command = { type = ministerofintelligence which = 30006 }
command = { type = chiefofstaff which = 30007 }
command = { type = chiefofarmy which = 30008 }
command = { type = chiefofnavy which = 30009 }
command = { type = chiefofair which = 30010 }
}
}
#########################################################################
# Dividing Yugoslavia and Greece
#########################################################################
event = {
id = 5003
random = no
country = ITA
trigger = {
owned = { province = 741 data = ITA }
owned = { province = 755 data = ITA }
owned = { province = 872 data = ITA }
owned = { province = 570 data = ITA }
NOT = {
OR = {
exists = BUL
exists = HUN
exists = GER
}
}
}
name = "EVT_5003_NAME"
desc = "EVT_5003_DESC"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "ACTIONNAME5003A" # Dividing Yugoslavia and Greece
command = { type = secedeprovince which = GER value = 570 }
command = { type = secedeprovince which = BUL value = 755 }
command = { type = secedeprovince which = BUL value = 872 }
command = { type = secedeprovince which = HUN value = 741 }
}
action_b = {
name = "ACTIONNAME5003B" # Let us take it all!
command = { }
}
}
#########################################################################
# Dividing Yugoslavia and Greece
#########################################################################
event = {
id = 5004
random = no
country = GER
trigger = {
owned = { province = 741 data = GER }
owned = { province = 755 data = GER }
owned = { province = 872 data = GER }
owned = { province = 569 data = GER }
owned = { province = 743 data = GER }
owned = { province = 752 data = GER }
owned = { province = 753 data = GER }
NOT = {
OR = {
exists = BUL
exists = HUN
exists = ITA
}
}
}
name = "EVT_5004_NAME"
desc = "EVT_5004_DESC"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "ACTIONNAME5004A" # Dividing Yugoslavia and Greece
command = { type = secedeprovince which = ITA value = 569 }
command = { type = secedeprovince which = ITA value = 743 }
command = { type = secedeprovince which = ITA value = 752 }
command = { type = secedeprovince which = ITA value = 753 }
command = { type = secedeprovince which = BUL value = 755 }
command = { type = secedeprovince which = BUL value = 872 }
command = { type = secedeprovince which = HUN value = 741 }
}
action_b = {
name = "ACTIONNAME5004B" # Let us take it all!
command = { }
}
}
------------------------------------------
And this is how it looks in the text.csv file at Hearts of Iron\config:
EVT_5004_NAME;Dividing Yugoslavia and Greece;;;;;;;;;;x
EVT_5004_DESC;Yugoslavia and Greece are being divided between its neighbours.;;;;;;;;;;x
EVT_5003_NAME;Dividing Yugoslavia and Greece;;;;;;;;;;x
EVT_5003_DESC;Yugoslavia and Greece are being divided between its neighbours.;;;;;;;;;;x
EVT_5002_NAME;Independent Croatia;;;;;;;;;;x
EVT_5002_DESC;After the anti-fascist coup in Yugoslavia Italy attacked and defeated that country. The Italians prepared for a long occupation of Yugoslavia, but as more forces was needed elsewhere help was needed. The Italians could no longer trust the Serbs, which formed partisans in the forms of Reds and Chetniks. However the Croats was inclined to help if they got independence.;;;;;;;;;;x
EVT_5001_NAME;Independent Croatia;;;;;;;;;;x
EVT_5001_DESC;After the anti-fascist coup in Yugoslavia Italy attacked and defeated that country. The Italians prepared for a long occupation of Yugoslavia, but as more forces was needed elsewhere help was needed. The Italians could no longer trust the Serbs, which formed partisans in the forms of Reds and Chetniks. However the Croats was inclined to help if they got independence.;;;;;;;;;;x
EVT_5000_NAME;Oil from Romania;;;;;;;;;;x
I have created some events which I want to happend if Italy conquers Yugoslavia (creation of independent Croatia and dividing of the rest of the country to Bulgaria, Hungary, Germany and Italy, just as it was in 1941). The events I have saved as a text-file (labelled new.txt) and saved in the events-directory. In the text-file events I have added the line
event = "db\events\new.txt"
and I have also in the config-directory changed the text.csv file, and added the names and descsriptions for the new events.
Does anybody know why this doesn't work? When I try to load the game it either crash or a pop up menu says that it is some kind of Database Mismatch.
Where is the failure? Thanks for any help!
---
My file events.txt in Hearts of Iron\db directory looks like:
#
#
#
# The Hearts of Iron Events Database
#
# written by Henrik Fåhraeus
#
#
#
# New events
event = "db\events\new.txt"
# New events for 1.02
event = "db\events\102.txt"
# New events for 1.01
event = "db\events\101.txt"
# The nation specific historical events
event = "db\events\albania.txt"
event = "db\events\austria.txt"
event = "db\events\czechoslovakia.txt"
event = "db\events\communist_china.txt"
event = "db\events\nationalist_china.txt"
event = "db\events\denmark.txt"
event = "db\events\finland.txt"
event = "db\events\france.txt"
event = "db\events\vichy_france.txt"
event = "db\events\germany.txt"
event = "db\events\hungary.txt"
event = "db\events\italy.txt"
event = "db\events\japan.txt"
event = "db\events\lithuania.txt"
event = "db\events\poland.txt"
event = "db\events\romania.txt"
event = "db\events\slovakia.txt"
event = "db\events\nationalist_spain.txt"
event = "db\events\republican_spain.txt"
event = "db\events\sweden.txt"
event = "db\events\UK.txt"
event = "db\events\USA.txt"
event = "db\events\USSR.txt"
# Random events
event = "db\events\RandomEvents.txt"
----------------------------------------------------
Content of file new.txt in Hearts of Iron\db\events directory:
#########################################################################
# Independent Croatia
#########################################################################
event = {
id = 5001
random = no
country = ITA
trigger = {
owned = { province = 624 data = ITA }
owned = { province = 742 data = ITA }
owned = { province = 740 data = ITA }
owned = { province = 745 data = ITA }
owned = { province = 744 data = ITA }
owned = { province = 747 data = ITA }
owned = { province = 743 data = ITA }
NOT = {
OR = {
exists = YUG
exists = CRO
}
}
}
name = "EVT_5001_NAME"
desc = "EVT_5001_DESC"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "ACTIONNAME5001A" # Create Croatia
command = { type = independence which = CRO }
command = { type = trigger which = 5002 } # CRO
}
action_b = {
name = "ACTIONNAME5001B" # Let us take it all!
command = { }
}
}
#########################################################################
# Independent Croatia
#########################################################################
event = {
id = 5002
random = no
country = CRO
#Triggered by ITA5001
name = "EVT_5002_NAME"
desc = "EVT_5002_DESC"
style = 0
action_a = {
name = "ACTIONNAME5002A" # We got Independence!
command = { type = alliance which = ITA }
command = { type = alignment which = fascist value = 200 }
command = { type = manpowerpool value = 20 }
command = { type = supplies value = 200 }
command = { type = headofstate which = 30001 }
command = { type = headofgovernment which = 30002 }
command = { type = foreignminister which = 30003 }
command = { type = armamentminister which = 30004 }
command = { type = ministerofsecurity which = 30005 }
command = { type = ministerofintelligence which = 30006 }
command = { type = chiefofstaff which = 30007 }
command = { type = chiefofarmy which = 30008 }
command = { type = chiefofnavy which = 30009 }
command = { type = chiefofair which = 30010 }
}
}
#########################################################################
# Dividing Yugoslavia and Greece
#########################################################################
event = {
id = 5003
random = no
country = ITA
trigger = {
owned = { province = 741 data = ITA }
owned = { province = 755 data = ITA }
owned = { province = 872 data = ITA }
owned = { province = 570 data = ITA }
NOT = {
OR = {
exists = BUL
exists = HUN
exists = GER
}
}
}
name = "EVT_5003_NAME"
desc = "EVT_5003_DESC"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "ACTIONNAME5003A" # Dividing Yugoslavia and Greece
command = { type = secedeprovince which = GER value = 570 }
command = { type = secedeprovince which = BUL value = 755 }
command = { type = secedeprovince which = BUL value = 872 }
command = { type = secedeprovince which = HUN value = 741 }
}
action_b = {
name = "ACTIONNAME5003B" # Let us take it all!
command = { }
}
}
#########################################################################
# Dividing Yugoslavia and Greece
#########################################################################
event = {
id = 5004
random = no
country = GER
trigger = {
owned = { province = 741 data = GER }
owned = { province = 755 data = GER }
owned = { province = 872 data = GER }
owned = { province = 569 data = GER }
owned = { province = 743 data = GER }
owned = { province = 752 data = GER }
owned = { province = 753 data = GER }
NOT = {
OR = {
exists = BUL
exists = HUN
exists = ITA
}
}
}
name = "EVT_5004_NAME"
desc = "EVT_5004_DESC"
style = 0
date = { day = 1 month = january year = 1936 }
offset = 7 # Check for trigger conditions every seven days
deathdate = { day = 30 month = december year = 1947 }
action_a = {
name = "ACTIONNAME5004A" # Dividing Yugoslavia and Greece
command = { type = secedeprovince which = ITA value = 569 }
command = { type = secedeprovince which = ITA value = 743 }
command = { type = secedeprovince which = ITA value = 752 }
command = { type = secedeprovince which = ITA value = 753 }
command = { type = secedeprovince which = BUL value = 755 }
command = { type = secedeprovince which = BUL value = 872 }
command = { type = secedeprovince which = HUN value = 741 }
}
action_b = {
name = "ACTIONNAME5004B" # Let us take it all!
command = { }
}
}
------------------------------------------
And this is how it looks in the text.csv file at Hearts of Iron\config:
EVT_5004_NAME;Dividing Yugoslavia and Greece;;;;;;;;;;x
EVT_5004_DESC;Yugoslavia and Greece are being divided between its neighbours.;;;;;;;;;;x
EVT_5003_NAME;Dividing Yugoslavia and Greece;;;;;;;;;;x
EVT_5003_DESC;Yugoslavia and Greece are being divided between its neighbours.;;;;;;;;;;x
EVT_5002_NAME;Independent Croatia;;;;;;;;;;x
EVT_5002_DESC;After the anti-fascist coup in Yugoslavia Italy attacked and defeated that country. The Italians prepared for a long occupation of Yugoslavia, but as more forces was needed elsewhere help was needed. The Italians could no longer trust the Serbs, which formed partisans in the forms of Reds and Chetniks. However the Croats was inclined to help if they got independence.;;;;;;;;;;x
EVT_5001_NAME;Independent Croatia;;;;;;;;;;x
EVT_5001_DESC;After the anti-fascist coup in Yugoslavia Italy attacked and defeated that country. The Italians prepared for a long occupation of Yugoslavia, but as more forces was needed elsewhere help was needed. The Italians could no longer trust the Serbs, which formed partisans in the forms of Reds and Chetniks. However the Croats was inclined to help if they got independence.;;;;;;;;;;x
EVT_5000_NAME;Oil from Romania;;;;;;;;;;x