puppet = { country = U46 country = GER # Malta is part of German Empire }I just can't find where I miss, even with notepad++ it looks like I balanced every bracket :\
- 1
puppet = { country = U46 country = GER # Malta is part of German Empire }I just can't find where I miss, even with notepad++ it looks like I balanced every bracket :\
Does the "#" work like "//" in C or like "*/"?
event = {
id = 1011
random = no
persistent = no
country = GRE
trigger = {
control = { province = 1057 data = GRE }
control = { province = 1076 data = GRE }
control = { province = 1077 data = GRE }
control = { province = 1078 data = GRE }
control = { province = 1079 data = GRE }
control = { province = 384 data = GRE }
control = { province = 385 data = GRE }
control = { province = 387 data = GRE }
control = { province = 388 data = GRE }
control = { province = 409 data = GRE }
}
}
name = "EVT_9005001_NAME"
desc = "EVT_9005001_DESC"
style = 2
picture = "news_paper"
action_a = {
name = "EVT_ELECTIONS_LEFT"
command = { type = addcore which = 1057 }
command = { type = addcore which = 1076 }
command = { type = addcore which = 1077 }
command = { type = addcore which = 1078 }
command = { type = addcore which = 1079 }
command = { type = addcore which = 384 }
command = { type = addcore which = 385 }
command = { type = addcore which = 409 }
command = { type = addcore which = 387 }
command = { type = addcore which = 388 }
What exactly is wrong with the name? I think it has to do with syntax because I have used the exact same name and description with other events.
Code:event = { id = 1011 random = no persistent = no country = GRE trigger = { control = { province = 1057 data = GRE } control = { province = 1076 data = GRE } control = { province = 1077 data = GRE } control = { province = 1078 data = GRE } control = { province = 1079 data = GRE } control = { province = 384 data = GRE } control = { province = 385 data = GRE } control = { province = 387 data = GRE } control = { province = 388 data = GRE } control = { province = 409 data = GRE } } } name = "EVT_9005001_NAME" desc = "EVT_9005001_DESC" style = 2 picture = "news_paper" action_a = { name = "EVT_ELECTIONS_LEFT" command = { type = addcore which = 1057 } command = { type = addcore which = 1076 } command = { type = addcore which = 1077 } command = { type = addcore which = 1078 } command = { type = addcore which = 1079 } command = { type = addcore which = 384 } command = { type = addcore which = 385 } command = { type = addcore which = 409 } command = { type = addcore which = 387 } command = { type = addcore which = 388 }
I originally had it that way but it kept freezing every time the loading bar completely filled. As it didn't state any errors in the debug, I copy-pasted a format of one of the events in Germany's folder.The problem is the trigger. You have an extra } too many just before name =. Or in other words, you have already closed out the event before you even get to name =
Well, as no one seems to be able to identify the problem, I will just revert to my original solution of attempting to mod the save. @novapaddy Thank you for your attempt to help and do you know which thread I would go to for help at modding a save?
But like I said, anytime I didn't use that extra }, it froze. I originally had it without that } as I said in the post right after Novapaddy.Novapaddy is correct. The trigger has an extra }.
Also, there are two } missing at the end (one to close the action, the other to close the event).
It doesn't crash, it freezes; and I know how to set the debugs and read them from the save debug file. That is the whole reason why I even knew that the problem with the other version was around the name; because it told me that was where the error was happening. This problem DOESN'T SHOW UP in save debug because it doesn't crash, it freezes and stops responding. Please do not make me repeat my previous sentences. It irritates me quite badly when I have to repeat myself.Let's try another approach, as you may have more than one problem here?
Are you definitely using the error checker, since the error in that event would definitely have been shown as multiple errors in the savedebug file?
You go to the settings.cfg file in the main dh folder and set it like this: 1 # Extra debug logs
Now when you load the game, it will highlight all the errors in the savedebug.txt file found underneath this file in that folder.
If your game is crashing right at the very end of the loading bar, it is likely to be a graphic problem (in my experience). Have you changed any images, loading screens? Have you used them as a .jpg file instead of the necessary .bmp file for instance?
not crashingbut it kept freezing every time the loading bar completely filled
But like I said, anytime I didn't use that extra }, it froze. I originally had it without that } as I said in the post right after Novapaddy.
The two } are at the end of the event in the file. I guess I just didn't go down far enough when I was copy-pasting it into the post.
It doesn't crash, it freezes; and I know how to set the debugs and read them from the save debug file. That is the whole reason why I even knew that the problem with the other version was around the name; because it told me that was where the error was happening. This problem DOESN'T SHOW UP in save debug because it doesn't crash, it freezes and stops responding. Please do not make me repeat my previous sentences. It irritates me quite badly when I have to repeat myself.
not crashing
And no, I haven't done anything at all with images. I barely know how to frankenstein events. I can't do anything with images.
Apologies if anything in this post sounds rude. I am merely trying to emphasize the important parts that you seem to have missed in my previous posts and there is very little way to do that when typing, unlike speech where tone would play into emphasization.
I know it is most definitely this event that is causing the problem because I have been writing these events as I need them. This event is to make my Greek ally stop giving away the land I gave it from the now puppet-Turkey. I guess I will try to rewrite it. Honestly, I am just trying to learn how to make events and, in the process, I have gained a new respect for modders. Doing this is tiring and takes hours to finish even one event.I know it is very frustrating when you have a problem but no solution. That club has a large membership.
OK, why not delimit that whole event with # before each line. Load it again and see what happens?
If it loads ok, I would remove that event, maybe even that event file is corrupted?
Rewrite the event from scratch?
If it does not load, and freezes again, and there is nothing in the savedebug, then you have another spare } somewhere.
Just work backwards going through all the stuff you worked on, to find it.
Unfortunately there is no other way but looking line by line. Done it myself a 100 times. Cheers
event = {
id = 7560201
random = no
country = SOV
style = 2
name = "The Two Mikhails"
desc = "Within the new Soviet state, two personalities have come to dominate domestic politics: Mikhail Frunze, old Bolshevik and military commander, and Mikhail Tukhachevsky, brilliant young strategist and passionate revolutionary. Frunze advocates autonomy, peace, and an integration of the soviet state into the world order while Tukhachevsky espouses continual revolution and class struggle. The bitterness and public hostility between the two men threatens to tear the new republic apart."
picture = "krtip_soviet_marshalls"
trigger = {
NOT = {
exists = RUS
}
OR = {
event = { id = 756030 days = 180 }
event = { id = 757000 days = 180 }
event = { id = 700003 days = 180 }
event = { id = 750016 days = 180 }
}
}
date = { day = 1 month = january year = 1937 }
offset = 10
deathdate = { day = 29 month = december year = 1970 }
action = {
name = "This might keep the peace..."
command = { type = dissent value = 10 }
command = { type = chiefofstaff which = 4007 }
command = { type = chiefofarmy which = 40844 }
}
}
Do the events referenced have a "save_date=yes" section? Otherwise, the trigger will never be true.I'm having an issue where this event won't fire. It should be triggered by any of several events that create the Soviet Union after 6 months but they are Russian events. Would this cause an issue?
Code:event = { id = 7560201 random = no country = SOV style = 2 name = "The Two Mikhails" desc = "Within the new Soviet state, two personalities have come to dominate domestic politics: Mikhail Frunze, old Bolshevik and military commander, and Mikhail Tukhachevsky, brilliant young strategist and passionate revolutionary. Frunze advocates autonomy, peace, and an integration of the soviet state into the world order while Tukhachevsky espouses continual revolution and class struggle. The bitterness and public hostility between the two men threatens to tear the new republic apart." picture = "krtip_soviet_marshalls" trigger = { NOT = { exists = RUS } OR = { event = { id = 756030 days = 180 } event = { id = 757000 days = 180 } event = { id = 700003 days = 180 } event = { id = 750016 days = 180 } } } date = { day = 1 month = january year = 1937 } offset = 10 deathdate = { day = 29 month = december year = 1970 } action = { name = "This might keep the peace..." command = { type = dissent value = 10 } command = { type = chiefofstaff which = 4007 } command = { type = chiefofarmy which = 40844 } } }
event ={
id = 2771030
random = no
country = SOV
style = 2
decision = {
exists = KYG
NOT = { exists = KAZ
exists = RUS
ispuppet = KYG
alliance = { country = ROV country = KYG }
}
}
decision_trigger = {
atwar = no
}
trigger = {
exists = KYG
NOT = {
exists = RUS
exists = KAZ
ispuppet = KYG
war = { country = SOV country = KYG }
alliance = { country = SOV country = KYG }
}
}
name = "Expanding into Turkestan"
desc = "With Alash Orda out of the way, only the Turkish state exists to prevent our total control of Central Asia. Though a direct invasion would certainly prove effective, an excuse would provoke less international protest."
decision_picture = "decision_afghanwar"
picture = "diplomatic_campaign"
date = { day = 1 month = may year = 1937 }
offset = 40
deathdate = { day = 29 month = december year = 1938 }
action_a = {
ai_chance = 10
name = "Invade!"
command = { type = war which = KYG }
command = { type = dissent value = 5 }
command = { type = belligerence which = SOV value = 10 }
}
action_b = {
ai_chance = 50
trigger = { not = { headofgovernment = 40844} } #frunze can't send himself
name = "Frunze could prove his usefulness. Send him in!"
command = { type = removeclaim which = 1097 where = SOV }
command = { type = removeclaim which = 1098 where = SOV }
command = { type = removeclaim which = 1099 where = SOV }
command = { type = removeclaim which = 1100 where = SOV }
command = { type = removeclaim which = 1102 where = SOV }
command = { type = removeclaim which = 1103 where = SOV }
command = { type = removeclaim which = 1104 where = SOV }
command = { type = removeclaim which = 1105 where = SOV }
command = { type = removeclaim which = 1106 where = SOV }
command = { type = removeclaim which = 1112 where = SOV }
command = { type = trigger which = 1771031 where = KYG when = 2 }
command = { type = make_puppet which = KYG }
}
action_c = {
ai_chance = 40
name = "Leave the Turks alone for now."
}
}
event ={
id = 2771031
random = no
country = KYG
style = 2
trigger = {
exists = KYG
event = 2771030
}
name = "The Soviet Coup."
desc = "Late last night a platoon of soldiers stormed the royal palace and killed our glorious leader. Bolshevik Mihail Frunze has descended from Moscow and installed himself President."
picture = "diplomatic_campaign"
date = { day = 1 month = may year = 1937 }
offset = 5
deathdate = { day = 29 month = december year = 1938 }
action = {
name = "Oh No!"
command = { type = dissent value = 15 }
command = { type = headofstate which = 521001 }
}
}
event ={
id = 2771032
random = no
country = KYG
style = 2
trigger = {
exists = KYG
event = 2771031
}
name = "To Coup a Coup."
desc = "A few days ago, Russian agents affected a coup in our beloved Turkestan. A Russian president now rules our proud people. This cannot start."
picture = "diplomatic_campaign"
date = { day = 1 month = may year = 1937 }
offset = 15
deathdate = { day = 29 month = december year = 1938 }
action_a = {
ai_chance = 100
name = "Kill Him!"
command = { type = headofstate which = 521001 }
command = { type = end_puppet }
command = { type = end_access which = SOV }
command = { type = relation which = SOV value = -100 }
command = { type = set_domestic which = democratic value = 2 }
command = { type = set_domestic which = political_left value = 3 }
command = { type = set_domestic which = freedom value = 2 }
command = { type = set_domestic which = free_market value = 2 }
command = { type = trigger which = 2771033 when = 3 }
}
action_b = {
ai_chance = 0
name = "It's too risky!"
command = { type = dissent value = 10 }
}
}
event ={
id = 2771033
random = no
country = SOV
style = 2
trigger = {
exists = KYG
event = 2771032
}
name = "Our Man in Bukhara"
desc = "The Turks have arrested Frunze and stormed the embassy. This outrage cannot be allowed to stand."
picture = "russiangroundmanuevres"
date = { day = 1 month = may year = 1937 }
offset = 15
deathdate = { day = 29 month = december year = 1950 }
action_a = {
ai_chance = 5
name = "They aren't worth it."
command = { type = dissent value = 5 }
}
action_b = {
ai_chance = 95
name = "Enough of this. Destroy them!"
command = { type = war which = KYG }
}
}
I would guess that either SOV is already at war with KYG or KYG gives military access to SOV, and since the command can't execute, the action doesn't appear.Having an issue with another event. Everything fires correctly, but the second option in the last event doesn't show up. I only get the "they aren't worth it" option.
Code:event ={ id = 2771030 random = no country = SOV style = 2 decision = { exists = KYG NOT = { exists = KAZ exists = RUS ispuppet = KYG alliance = { country = ROV country = KYG } } } decision_trigger = { atwar = no } trigger = { exists = KYG NOT = { exists = RUS exists = KAZ ispuppet = KYG war = { country = SOV country = KYG } alliance = { country = SOV country = KYG } } } name = "Expanding into Turkestan" desc = "With Alash Orda out of the way, only the Turkish state exists to prevent our total control of Central Asia. Though a direct invasion would certainly prove effective, an excuse would provoke less international protest." decision_picture = "decision_afghanwar" picture = "diplomatic_campaign" date = { day = 1 month = may year = 1937 } offset = 40 deathdate = { day = 29 month = december year = 1938 } action_a = { ai_chance = 10 name = "Invade!" command = { type = war which = KYG } command = { type = dissent value = 5 } command = { type = belligerence which = SOV value = 10 } } action_b = { ai_chance = 50 trigger = { not = { headofgovernment = 40844} } #frunze can't send himself name = "Frunze could prove his usefulness. Send him in!" command = { type = removeclaim which = 1097 where = SOV } command = { type = removeclaim which = 1098 where = SOV } command = { type = removeclaim which = 1099 where = SOV } command = { type = removeclaim which = 1100 where = SOV } command = { type = removeclaim which = 1102 where = SOV } command = { type = removeclaim which = 1103 where = SOV } command = { type = removeclaim which = 1104 where = SOV } command = { type = removeclaim which = 1105 where = SOV } command = { type = removeclaim which = 1106 where = SOV } command = { type = removeclaim which = 1112 where = SOV } command = { type = trigger which = 1771031 where = KYG when = 2 } command = { type = make_puppet which = KYG } } action_c = { ai_chance = 40 name = "Leave the Turks alone for now." } } event ={ id = 2771031 random = no country = KYG style = 2 trigger = { exists = KYG event = 2771030 } name = "The Soviet Coup." desc = "Late last night a platoon of soldiers stormed the royal palace and killed our glorious leader. Bolshevik Mihail Frunze has descended from Moscow and installed himself President." picture = "diplomatic_campaign" date = { day = 1 month = may year = 1937 } offset = 5 deathdate = { day = 29 month = december year = 1938 } action = { name = "Oh No!" command = { type = dissent value = 15 } command = { type = headofstate which = 521001 } } } event ={ id = 2771032 random = no country = KYG style = 2 trigger = { exists = KYG event = 2771031 } name = "To Coup a Coup." desc = "A few days ago, Russian agents affected a coup in our beloved Turkestan. A Russian president now rules our proud people. This cannot start." picture = "diplomatic_campaign" date = { day = 1 month = may year = 1937 } offset = 15 deathdate = { day = 29 month = december year = 1938 } action_a = { ai_chance = 100 name = "Kill Him!" command = { type = headofstate which = 521001 } command = { type = end_puppet } command = { type = end_access which = SOV } command = { type = relation which = SOV value = -100 } command = { type = set_domestic which = democratic value = 2 } command = { type = set_domestic which = political_left value = 3 } command = { type = set_domestic which = freedom value = 2 } command = { type = set_domestic which = free_market value = 2 } command = { type = trigger which = 2771033 when = 3 } } action_b = { ai_chance = 0 name = "It's too risky!" command = { type = dissent value = 10 } } } event ={ id = 2771033 random = no country = SOV style = 2 trigger = { exists = KYG event = 2771032 } name = "Our Man in Bukhara" desc = "The Turks have arrested Frunze and stormed the embassy. This outrage cannot be allowed to stand." picture = "russiangroundmanuevres" date = { day = 1 month = may year = 1937 } offset = 15 deathdate = { day = 29 month = december year = 1950 } action_a = { ai_chance = 5 name = "They aren't worth it." command = { type = dissent value = 5 } } action_b = { ai_chance = 95 name = "Enough of this. Destroy them!" command = { type = war which = KYG } } }
event = {
id = 446625
country = CGX
style = 2
picture = "alsaceorwar"
name = "The threat of Mongolia and Japan"
desc = "Japan and Russia have signed peace with one and another, with Germany distracted by Syndicalist Madness, we and the rest of Asia are ripe for Japanese hands to pick. In addition, Mongolia has conquered the Qing Dynasty, we will be next unless we ask Yunnan and the Legation Cities to unite with us. If they don't, China will fall."
action_a = {
ai_chance = 80
name = "We must do this, for the sake of China!"
command = { type = dissent value = -1 }
command = { type = relation which JAP = -75 }
command = { tyoe = relation which MON = -75 }
command = { type = trigger which = 446622 }
command = { type = trigger which = 446626 }
}
action_b = {
ai_chance = 20
name = "This is madness, we're safe"
command = { type = dissent value = 6 }
}
]
event = {
id = 446622
country = CYN
style = 2
picture = "alsaceorwar"
name = "The threat of Mongolia and Japan"
desc = "The AOG has realized that both Mongolia and Japan pose a threat to all of China, and since we have no industry to win a war against either, we would be crushed, but if we united with the AOG, we can make sure the people of China never fall to Mongolian Barbarism or Japanese Imperialism."
action_a = {
name = "German influence be damned, we must save China!"
command = { type = trigger which = 446627 }
}
]
event = {
id = 446627
country = CGX
style = 2
picture = "alsaceorwar"
name = "Yunnan agrees"
desc = "They have agreed to our proposal."
action_a = {
name = "Great!"
command = { type = inherit which = CYN }
}
]
event = {
id = 446626
country = EAF
style = 2
picture = "alsaceorwar"
name = "The threat of Mongolia and Japan"
desc = "The AOG has realized that both Mongolia and Japan pose a threat to all of China, seeing as we have no real military, we would be crushed, but if we were annexed by the AOG, we could at least make it the bloodiest road for either power to ever take."
action_a = {
name = "China wills it, we must do this"
command = { type = trigger which = 446628 }
}
]