• 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.
Hello,i'm beginning in modding and i have problem with my first events :

#########################################################################
# America in 1936
#########################################################################
event = {
id = 3000000
random = no
country = USA

name = "America in 1936"
desc = "Since Secession war,the Union try to stay unit from nationalists separatists mouvements like californians;neo-england;or native groups...The economic crisis weaken more the federal states,but the chairman Roosvelt launch New Deal to rebuilding the nation.The elections are near,and the people is divised to know who will be the new president of United States...."
style = 2
picture = "news_paper"

date = { day = 2 month = january year = 1936 }
offset = 7
deathdate = { day = 8 month = january year = 1936 }

action_a = {
name = "Are we go to an second civil war ?"
}
}

The game doesn't crash but the event not apparese......
 
Hello,i'm beginning in modding and i have problem with my first events :

#########################################################################
# America in 1936
#########################################################################
event = {
id = 3000000
random = no
country = USA

name = "America in 1936"
desc = "Since Secession war,the Union try to stay unit from nationalists separatists mouvements like californians;neo-england;or native groups...The economic crisis weaken more the federal states,but the chairman Roosvelt launch New Deal to rebuilding the nation.The elections are near,and the people is divised to know who will be the new president of United States...."
style = 2
picture = "news_paper"

date = { day = 2 month = january year = 1936 }
offset = 7
deathdate = { day = 8 month = january year = 1936 }

action_a = {
name = "Are we go to an second civil war ?"
}
}

The game doesn't crash but the event not apparese......
Forgive me, but calling Roosevelt "chairman" is hilarious!
 
Hello,i'm beginning in modding and i have problem with my first events :

#########################################################################
# America in 1936
#########################################################################
event = {
id = 3000000
random = no
country = USA

name = "America in 1936"
desc = "Since Secession war,the Union try to stay unit from nationalists separatists mouvements like californians;neo-england;or native groups...The economic crisis weaken more the federal states,but the chairman Roosvelt launch New Deal to rebuilding the nation.The elections are near,and the people is divised to know who will be the new president of United States...."
style = 2
picture = "news_paper"

date = { day = 2 month = january year = 1936 }
offset = 7
deathdate = { day = 8 month = january year = 1936 }

action_a = {
name = "Are we go to an second civil war ?"
}
}

The game doesn't crash but the event not apparese......
The event doesn't appear because it has no valid action. Add an empty command to make the action valid and the event will appear:

action_a = {
name = "Are we go to an second civil war ?"
command = { }
}
}
 
One question, is there any command to make peace with the current state of affairs?

I'm playing a game with Japan in Kaiserreich, the world situation is quite interesting BUT I'd like to finish the Entente-Mitteleuropa war with the current borders they have. (As it would be a huge pain to search each province the Entente controls and things like that)

Thanks.
^^
 
One question, is there any command to make peace with the current state of affairs?

I'm playing a game with Japan in Kaiserreich, the world situation is quite interesting BUT I'd like to finish the Entente-Mitteleuropa war with the current borders they have. (As it would be a huge pain to search each province the Entente controls and things like that)

Thanks.
^^
No, there isn't.
 
Reading map\map_1\navaldist2.tbl... Done! (1380 naval provinces, Read distances = 1904400)

ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]
ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]
ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]
ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]
ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]
ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]
ERROR : Database Mismatch (type = 15001 / id 1 ) already used! [Dynamic]

So I want to fix these errors, however I am struggling to find where these errors actually are, because navaldist2.tbl is not a file in the map_1 folder. Does anyone know where it is?
 
I take it I am going to have to look through all the OOB's individually?
 
Last edited:
While I was working on the Grand Campaign trying to integrate some of the WW1 events from Darkest Hour Full, I got to Austria-Hungary and this happened as a result:
upload_2018-12-21_16-58-37.png

don't particularly know as to why it has multiple decisions for some decisions. If anybody could enlighten me as to why it is occurring and how to fix it, that would be great.

Whilst I was doing that I decided to attempt to add events to release Iraq and French Syria, those only got to showing the event popup with no effect occurring for some strange reason.
 
Had a go at writing a decision to increase IC for small countries to give them a fighting chance. It's early stages, but I used the public works decision as a template and...nothing happens (no immediate effect).

event = {
id = 90909180
random = no
tag = { ALB LIT LAT EST EGY IRQ AFG TIB }
decision = { atwar = no }
trigger = { ai = no }


name = "An Economic Miracle"
desc = "Our country has either suffered greatly or lacked fortune over its history. A strange Scotsman managed to gain an audience with our head of state, boasting a fortune and industry made up from 'a small loan of a million dollars'. He is promising to move to our great nation in exchange for low tax rates."
style = 2
picture = "public_jobs"

date = { day = 0 month = january year = 1930 }
offset = 30
deathdate = { day = 29 month = december year = 1963 }

action = {
name = "Welcome to our great nation!"
command = { type = construct which = IC where = -1 value = 4 }
command = { type = construct which = IC where = -1 value = 4 }
}
}

What's wrong with this? I just can't see it.
 
Well, it's not persistent so it can only fire once.
Giving 8 IC looks like a lot, but it's your event.

Check if the country has a valid province:
Constr: type = allow_building which = [building type] # Allow the construction of a certain building type.
type = construct which = [building type] where = [prov id/-1/-4] value = [additional size] # -1 is random owned valid* province. -4 is random owned valid* national province that already has a building of the same type of at least size 1.
*valid province for construction (checked for value > 0; for value < 0 only the existence of building in province is verified):
- province must be owned and controlled by the country
- building type must be allowed for construction (researched)
- province must be in supply
- any other building type restrictions apply too (like: infra > 30% for IC, restrictions for location and size of rocket and nuclear buildings, required beach for coastal fort and port for naval base)
 
Well, it's not persistent so it can only fire once.
Giving 8 IC looks like a lot, but it's your event.

Check if the country has a valid province:
Constr: type = allow_building which = [building type] # Allow the construction of a certain building type.
type = construct which = [building type] where = [prov id/-1/-4] value = [additional size] # -1 is random owned valid* province. -4 is random owned valid* national province that already has a building of the same type of at least size 1.
*valid province for construction (checked for value > 0; for value < 0 only the existence of building in province is verified):
- province must be owned and controlled by the country
- building type must be allowed for construction (researched)
- province must be in supply
- any other building type restrictions apply too (like: infra > 30% for IC, restrictions for location and size of rocket and nuclear buildings, required beach for coastal fort and port for naval base)

I had a look into it, but it appears that any decision that has either IC or Infrastructure built comes up as "no immediate effect". And when I make it fire an event that uses that type of command, it doesn't fire either.
 
I tested it in abyss and it works. The valid infrastructure threshold is actually 0.4 I believe. If the event finds an invalid random province it might halt. I suggest using 'where = -4'.
No clue why the alternate event would not build infrastructure other than if it finds a province out of supply.
 
Last edited:
I tested it in abyss and it works. The valid infrastructure threshold is actually 0.4 I believe. If the event finds an invalid random province it might halt. I suggest using 'where = -4'.
No clue why the alternate event would not build infrastructure other than if it finds a province out of supply.

Thanks. I actually did the infrastructure wrong, looking at it. Will test an event for infrastructure first, then try and add the IC

edit: nope. No difference, even using 'where = -4' in a country that has high infrastructure provinces. It simply doesn't recognize the command.
 
Last edited: