• 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(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
I've been creating some events recently, and I've stumbled upon a problem where there shouldn't be one. This is the event:

event = {
id = 2810
random = no
country = FRA
trigger = {
event = 2804
}
name = "bla bla"
desc = "bla bla"
picture = "anchsluss"

date = { day = 1 month = november year = 1936 }

action_a = { (bunch of commands)
}
action_b = { (bunch of commands)
}
}

This is the problem - I'm constantly getting a message saying "Unknown trigger type". I just don't get it because the trigger seems OK. Or am I missing something? I'd appreciate any help.
 
Last edited:

Atruejedi

General
98 Badges
Jun 24, 2003
2.171
62
  • War of the Roses
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Lead and Gold
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Darkest Hour
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Arsenal of Democracy
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III
If that's really the event, that's why you're having problems. Your actions are totally whack, yo. You don't even have any commands listed.

Try posting the actual event. Unless this really is it!
 

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
The list of commands exists, but it's long and I don't see any importance in that, since an "unknown trigger type" error is received every time. That's why I left it out. So it should be the trigger that is wrong. But here's the entire event, if that helps:

event = {
id = 2810
random = no
country = FRA
trigger = {
event = 2804
}
name = "bla bla"
desc = "bla bla"
picture = "anchsluss"

date = { day = 1 month = november year = 1936 }

action_a = {
name = "Demand the annexation of Belgium"
command = { type = trigger which = 105 }
command = { type = addcore which = 45 }
command = { type = addcore which = 50 }
command = { type = addcore which = 51 }
command = { type = addcore which = 52 }
command = { type = addcore which = 65 }
command = { type = addcore which = 68 }
command = { type = addcore which = 69 }
command = { type = addcore which = 70 }
command = { type = addcore which = 1095 }
command = { type = addcore which = 1142 }
command = { type = addcore which = 1071 }
command = { type = addcore which = 1072 }
command = { type = addcore which = 1073 }
command = { type = addcore which = 1074 }
command = { type = addcore which = 1143 }
command = { type = addcore which = 1144 }
command = { type = addcore which = 1127 }
command = { type = addcore which = 1098 }
command = { type = addcore which = 1063 }
command = { type = relation which = ENG value = -50 }
command = { type = relation which = ITA value = -10 }
command = { type = relation which = BEL value = -100 }
command = { type = domestic which = democratic value = -1 }
command = { type = domestic which = interventionism value = 1 }
}
action_b = {
name = "Do not create more tension"
command = { type = relation which = ENG value = 30 }
command = { type = relation which = BEL value = 25 }
command = { type = relation which = ITA value = 10 }
command = { type = dissent value = 5 }
}
}

Event 2804 works fine...
 
Last edited:

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
Fatality_ said:
err.. im not sure but i think that you should put the triggering to the event that should trigger it, not the one getting triggered :confused:

I know, and it is the event 2804 that triggers 2810, how would I otherwise know that 2804 works fine? ;)

P.S. I forgot to say that I'm receiving this error when the scenario is being loaded.
 

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
Atruejedi said:
I found it. Insert a = between year and 1936 :)

Oops...thanks for the help :eek:o
 

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
Emmm...Now I ran HOI2 and the problem is still there - this is the complete error message I'm receiving:

"--- ERROR: (Unknown Trigger Type)'desc= bla bla' Line = 141 file = db/events/france series of events.txt ---
Do you still want to continue?"

And when I click on "Ignore", the game crashes. :confused:
 

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
Atruejedi said:
Could you post the entire event again, everything included?

It's above, in my second post, I corrected that year = 1936 error.
 

Atruejedi

General
98 Badges
Jun 24, 2003
2.171
62
  • War of the Roses
  • Leviathan: Warships
  • The Kings Crusade
  • Magicka
  • Majesty 2
  • Majesty 2 Collection
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • The Showdown Effect
  • Victoria 2
  • Rome: Vae Victis
  • Warlock: Master of the Arcane
  • Lead and Gold
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Darkest Hour
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Commander: Conquest of the Americas
  • Arsenal of Democracy
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III
Zokan said:
It's above, in my second post, I corrected that year = 1936 error.

Is that really the name and description? I'd suggest you post the ENTIRE, NOT-TRIMMED for message boards event ;)

Or just edit your first post to reflect this and make sure you clarify it's the real, unedited event you're trying to use in-game. Can't deal with ambiguities when editing ;)
 

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
OK, here's the real, unedited event in my db/events folder which I'm trying to use:

event = {
id = 2810
random = no
country = FRA
trigger = {
event = 2804
}
name = "bla bla"
desc = "bla bla"
picture = "anchsluss"

date = { day = 1 month = november year = 1936 }

action_a = {
name = "Demand the annexation of Belgium"
command = { type = trigger which = 105 }
command = { type = addcore which = 45 }
command = { type = addcore which = 50 }
command = { type = addcore which = 51 }
command = { type = addcore which = 52 }
command = { type = addcore which = 65 }
command = { type = addcore which = 68 }
command = { type = addcore which = 69 }
command = { type = addcore which = 70 }
command = { type = addcore which = 1095 }
command = { type = addcore which = 1142 }
command = { type = addcore which = 1071 }
command = { type = addcore which = 1072 }
command = { type = addcore which = 1073 }
command = { type = addcore which = 1074 }
command = { type = addcore which = 1143 }
command = { type = addcore which = 1144 }
command = { type = addcore which = 1127 }
command = { type = addcore which = 1098 }
command = { type = addcore which = 1063 }
command = { type = relation which = ENG value = -50 }
command = { type = relation which = ITA value = -10 }
command = { type = relation which = BEL value = -100 }
command = { type = domestic which = democratic value = -1 }
command = { type = domestic which = interventionism value = 1 }
}
action_b = {
name = "Do not create more tension"
command = { type = relation which = ENG value = 30 }
command = { type = relation which = BEL value = 25 }
command = { type = relation which = ITA value = 10 }
command = { type = dissent value = 5 }
}

and the error:

"--- ERROR: (Unknown Trigger Type)'desc= bla bla' Line = 141 file = db/events/france series of events.txt ---
Do you still want to continue?"

Sorry for the confusion. I hadn't come up with the description yet, I'm only testing the events now :)
 

unmerged(28147)

General
Apr 21, 2004
1.896
0
Atruejedi said:
Try adding style = 0 after description. For example:



Honestly if it's not that, I'm stumped.

Could it be that he has trigger, event = 2804 in the triggers area? I know that trigger works as a command within an event to make an event fire, but not sure if it works in the triggers area.
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
sometimes the error is in the event above that (or below).

look at the preceeding event and see if there is an error in there. If not look at the event following this one (in the event file that is, not the event chain).

If you cant find that, post those two events as well.

Ayeshteni

EDIT: ah, yes, like the poster just above says - you are missing an } at the end after the bracket to end action_b you should have a bracket to end the event.
 

unmerged(28147)

General
Apr 21, 2004
1.896
0
Ayeshteni said:
sometimes the error is in the event above that (or below).

look at the preceeding event and see if there is an error in there. If not look at the event following this one (in the event file that is, not the event chain).

If you cant find that, post those two events as well.

Ayeshteni

EDIT: ah, yes, like the poster just above says - you are missing an } at the end after the bracket to end action_b you should have a bracket to end the event.

Yep that's it! I think this is a Eureka moment.
 

unmerged(30953)

Homophobus Balcanicus Vulgaris
Jun 22, 2004
1.107
0
I checked those two events you suggested, but I think that they're OK. Then I added style = 0 to the event, so now those three look like this:

event = {
id = 2808
random = no
country = FRA

name = "bla bla"
desc = "bla bla"
style = 0
picture = "factory"

action_a = {
name = "Very good"
command = { type = waketeam which = 1425 }
command = { type = wakeleader which = 24220 }
command = { type = wakeleader which = 24221 }
command = { type = wakeleader which = 24222 }
command = { type = wakeleader which = 24223 }
command = { type = wakeleader which = 24224 }
command = { type = wakeleader which = 24225 }
command = { type = wakeleader which = 24226 }
command = { type = wakeleader which = 24227 }
command = { type = wakeleader which = 24228 }
command = { type = wakeleader which = 24229 }
command = { type = wakeleader which = 24230 }
command = { type = wakeleader which = 24231 }
command = { type = wakeleader which = 24232 }
command = { type = wakeleader which = 24233 }
command = { type = wakeleader which = 24234 }
command = { type = wakeleader which = 24235 }
command = { type = wakeleader which = 24236 }
}
}


event = {
id = 2810
random = no
country = FRA
trigger = {
event = 2804
}
name = "bla bla"
desc = "bla bla"
style = 0
picture = "anchsluss"

date = { day = 1 month = november year = 1936 }

action_a = {
name = "Demand the annexation of Belgium"
command = { type = trigger which = 105 }
command = { type = addcore which = 45 }
command = { type = addcore which = 50 }
command = { type = addcore which = 51 }
command = { type = addcore which = 52 }
command = { type = addcore which = 65 }
command = { type = addcore which = 68 }
command = { type = addcore which = 69 }
command = { type = addcore which = 70 }
command = { type = addcore which = 1095 }
command = { type = addcore which = 1142 }
command = { type = addcore which = 1071 }
command = { type = addcore which = 1072 }
command = { type = addcore which = 1073 }
command = { type = addcore which = 1074 }
command = { type = addcore which = 1143 }
command = { type = addcore which = 1144 }
command = { type = addcore which = 1127 }
command = { type = addcore which = 1098 }
command = { type = addcore which = 1063 }
command = { type = relation which = ENG value = -50 }
command = { type = relation which = ITA value = -10 }
command = { type = relation which = BEL value = -100 }
command = { type = domestic which = democratic value = -1 }
command = { type = domestic which = interventionism value = 1 }
}
action_b = {
name = "Do not create more tension"
command = { type = relation which = ENG value = 30 }
command = { type = relation which = BEL value = 25 }
command = { type = relation which = ITA value = 10 }
command = { type = dissent value = 5 }
}
}


event = {
id = 105
random = no
country = BEL
trigger = {
random = 25
event = 2804
}
name = "bla bla"
desc = "bla bla"
style = 0
picture = "anchsluss"

date = { day = 1 month = january year = 1936 }
offset = 1
deathdate = { day = 30 month = december year = 1947 }

action_a = {
name = "Become part of the French Empire"
ai_chance = 20
command = { type = trigger which = 2811 }
}
action_b = {
name = "No way!"
ai_chance = 80
command = { type = dissent value = -10 }
command = { type = war which = FRA }
command = { type = relation which = ENG value = 25 }
command = { type = trigger which = 2812 }
}
}

Yet I'm still receiving the error message, only that now it says line 142 instead of 141, due to the adding of "style = 0" line:

"--- ERROR: (Unknown Trigger Type)'desc= bla bla' Line = 142 file = db/events/france series of events.txt ---
Do you still want to continue?"

I tried by removing the entire trigger line from the event, and, surprisingly, no errors occured. So it has to be something with the trigger line. I just don't get it. It seems as if it's a bug of some kind. :wacko:
 

Jebus

Son of Gob.
87 Badges
Oct 7, 2004
497
0
  • Rome: Vae Victis
  • Heir to the Throne
  • Europa Universalis III Complete
  • Iron Cross
  • March of the Eagles
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III Collection
  • Warlock: Master of the Arcane
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Crusader Kings III
  • Darkest Hour
  • Hearts of Iron II: Armageddon
  • Cities in Motion
  • Cities in Motion 2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Arsenal of Democracy
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For the Motherland
  • Hearts of Iron III
Obviously, HOI2 refuses to fire that event because that event is EVIL.

EVIL!


*EDIT* Also, it seems like your trigger ID's are simply wrong. Make sure they refer to the right event, ey'.
 

Ayeshteni

Jehanne's Slave
111 Badges
Jul 31, 2002
6.280
108
  • 500k Club
  • Europa Universalis III Complete
  • March of the Eagles
  • Europa Universalis III Complete
  • Penumbra - Black Plague
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Semper Fi
  • Sengoku
  • Victoria 2
  • Victoria 2: A House Divided
  • Rome: Vae Victis
  • 200k Club
  • Heir to the Throne
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Pride of Nations
  • Rise of Prussia
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Hearts of Iron IV: No Step Back
  • Europa Universalis III
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • A Game of Dwarves
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • For The Glory
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
well I am stumped.

Try this. Cut out the event. Try and load the game, see if it is the event which has the problem.

If the game loads successfully, then it is the event. In which case take out the trigger entirely. Then try and load the game. If it is sucessful something weird is happening (unless that event number in the trigger doesnt exist, maybe that is the problem)

If it isnt that that means that it ha....

AH I KNOW what it might be!!! How long is your 'desc' text. If you have the desc text in the event file there is a limit to how long it can be.

Take out the text in the desc line (keep it blah blah) and load up, I bet it works fine. You will either have to cut your text down or place it in one of the text files in the config folder. Try this first

Ayeshteni