• 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.

NorwayBernd

Lt. General
17 Badges
Sep 21, 2011
1.314
3
  • Darkest Hour
  • Europa Universalis III: Chronicles
  • Battle for Bosporus
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • 500k Club
  • Cities: Skylines
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Crusader Kings II
I tried to add some extra events for Germany (about them adding cores in Poland), but I can't get them to fire when they're supposed to in-game nor using the console. I've included them here; could any (relatively) experienced modders take a look at them and tell me what I'm doing wrong wrong?

Trying them out in the 1933 scenario, by the way.

View attachment 51659


EDIT: just noticed I posted it in the wrong forum. Thanks to the mod for moving it.
 
Last edited:
line 146 :
NOT = {
esists = POL
}

line 303 :
NOT = {
esists = POL
}

----------------

You also seem to have a lot of unnecessary trigger checks for example the not have xxx core. Germany wont have cores on a said province, it might have a claim but it can never have a core unless added via event.

otherwise I noticed no other errors
 
D'oh. That's what you get for copying lines from other events. Thanks.
And the seemingly excessive core checks are there just in case I make other, similar events that otherwise would conflict.


EDIT: Okay, corrected that, but still there's something wrong. Apparently, there's something wrong in line 271:
Code:
action_b = {

I really can see nothing wrong with that line, what on earth is the matter?
 
Last edited:
Action_A from just a few lines above it is missing a closing }

Code:
action_a = {
ai_chance = 90 
name = "Very well"
command = { type = belligerence value = 10 }
[b]}[/b] <---- missing this

action_b = {
ai_chance = 10
name = "No! We will not expand the Greater German Reich to include these lands!"

command = { type = belligerence value = -10 }
command = { type = sleepevent which = 80501 }
}
 
Ah, thanks. Was confused since the CTD report said there was something wrong with line 271, and I didn't think about that being a possibility.

E: Okay, now there's apparently a missing closing tag in the very last event, according to the CTD report. However, it IS there!
 
Last edited:
Yes. Though I'm doing these tests by adding the coding into a pre-existing events file (I have the file itself (additional_Germany.txt) saved somewhere else.)
 
Try using Notepad++, select a language like Java, and go to View->Fold all and then unfolding the brackets (click the + button next to the line numbers) to see where you are missing a close bracket.
 
As of now, my only Internet access is via a very limited mobile broadband and my phone, and thus I cannot download any big files such as programs like Notepad++ until I get back home, which will be late tomorrow afternoon or evening.
What Limith describes there sounds like a very simple process for anyone with Notepad++, though I obviously cannot do it because I don't have it and don't have any realistic means of downloading it. If someone with it could do that and post the results, it would be greatly appreciated.
I have already fixed several typos in addition to the corrections posted here, so no need to fix those unless you want to.


EDIT: Okay, figured that out and fixed it. However, there's a new problem:
I copied additional_germany.txt into Mods\Darkest Hour\db\events where all other event files are, but they won't fire even when I use the console. (I had done the previous tests by simply pasting the text into a pre-existing file.)

I did include the line
Code:
event = "db\events\additional_germany.txt"
in the events.txt file, but it still does not work. Why?
 
Last edited:
There also seems to be a problem with getting events 80500 and 80501 to fire. I want to do so the events fire four and three years after events 80400 and 80401, respectively. However, that doesn't happen.