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

Sergeant
May 4, 2004
63
0
I am experimenting with events that do change the culture of a province. I am doing it over MyMap-AGCEEP version. The code I have started with is really simple, but it is giving me and error. The code is as follows:

#########################################################################
# Culture conversions
#########################################################################

event = {
id = 969013
random = yes
trigger = { domestic = { type = innovative value = 8 }
NOT { badboy = 2 }
}
name = "Culture change by means of prestige"
desc = "While culture changes would usually occur by means of force, prestige would also sometimes act as a culture change catalyzer."
style = 0

action_a = {
name = "OK"
command = { type = stability value = +1 }
command = { type = provinceculture which = -1 }
}
}

event = {
id = 969014
random = yes
trigger = { NOT { domestic = { type = innovative value = 4 } }
badboy = 10
}
name = "Culture change by means of sword"
desc = "culture changes would usually occur by means of force, with massive deportation and/or repression"
style = 0

action_a = {
name = "OK"
command = { type = stability value = -1 }
command = { type = provinceculture which = -1 }
command = { type = population which = -1 value = -2000 }
}
}

The error it prompts says something like unkown data defined in event database: name = "while culture...."

Am I doing something wrong? Anyone any idea?

Thanks in advance
 

sabular

Major
62 Badges
Mar 7, 2005
583
1
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis 4: Emperor
  • Europa Universalis III Complete
  • Deus Vult
  • Diplomacy
  • 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
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
HillForest said:
I am experimenting with events that do change the culture of a province. I am doing it over MyMap-AGCEEP version. The code I have started with is really simple, but it is giving me and error. The code is as follows:

#########################################################################
# Culture conversions
#########################################################################

event = {
id = 969013
random = yes
trigger = { domestic = { type = innovative value = 8 }
NOT { badboy = 2 }
}
name = "Culture change by means of prestige"
desc = "While culture changes would usually occur by means of force, prestige would also sometimes act as a culture change catalyzer."
style = 0

action_a = {
name = "OK"
command = { type = stability value = +1 }
command = { type = provinceculture which = -1 }
}
}

event = {
id = 969014
random = yes
trigger = { NOT { domestic = { type = innovative value = 4 } }
badboy = 10
}
name = "Culture change by means of sword"
desc = "culture changes would usually occur by means of force, with massive deportation and/or repression"
style = 0

action_a = {
name = "OK"
command = { type = stability value = -1 }
command = { type = provinceculture which = -1 }
command = { type = population which = -1 value = -2000 }
}
}

The error it prompts says something like unkown data defined in event database: name = "while culture...."

Am I doing something wrong? Anyone any idea?

Thanks in advance

It should be NOT = {...}, something I often forget myself.
 

unmerged(28665)

Sergeant
May 4, 2004
63
0
Culture change event bug

Thanks Sabula!!!

The issue you pointed was in fact wrong. I corrected it and I added some other corrections, specially related to the provinceculture and now looks like this

#########################################################################
# Culture conversions
#########################################################################

event = {
id = 969013
random = yes
trigger = { domestic = { type = innovative value = 8 }
NOT = { badboy = 2 }
}
name = "Culture change by means of prestige"
desc = "While culture changes would usually occur by means of force, prestige would also sometimes act as a culture change catalyzer."
style = 0

action_a = {
name = "OK"
command = { type = stability value = 1 }
command = { type = provinceculture which = -1 value = -1 }
}
}

event = {
id = 969014
random = yes
trigger = { NOT = { domestic = { type = innovative value = 4 } }
badboy = 10
}
name = "Culture change by means of sword"
desc = "culture changes would usually occur by means of force, with massive deportation and/or repression"
style = 0

action_a = {
name = "OK"
command = { type = stability value = -1 }
command = { type = provinceculture which = -1 value = -1 }
command = { type = population which = -1 value = -2000 }
}
}

It compiles correctly, but I try it to execute it and say that the command list A is invalid. What I am trying to do is to apply a change of culture of any of its provinces. Do you (or anyone else) see anything else wrong in here, please?

Thanks again in advance!!

NOTE: Oh, by the way, I don't know if anyone else could agree on adding such type of events in the game!!
 

Mazyrian

Señor Lich
1 Badges
Jul 19, 2005
333
0
  • Europa Universalis IV
Here is a event (scaled) in an AGC version that changed the culture of a random province, if it is of any help

# Fanaticism - a goody event for the big - by Peter Ebbesen
# Affects a random non state religion province regardless of culture.
event = {
id = 97319
random = yes
name = "Fanaticism"
desc = "The true faith was spread by the word of the faithful, bringing the divine to the unbelievers. Occasionally it was even strong enough to shatter the cultural ties of the converts, though not without a struggle."
style = 0
trigger = {
countrysize = 30
NOT = { countrysize = 200 }
}
action_a = {
name = "Welcome brothers!"
command = { type = religiousrevolt which = -1 }
command = { type = revolt which = -3 }
command = { type = conversion which = -3 }
command = { type = provinceculture which = -3 value = -1 }
command = { type = provincemanpower which = -3 value = 1 }
command = { type = provincetax which = -3 value = 1 }
command = { type = stability value = -1}
}
}

event = {
id = 99319
random = yes
name = "Fanaticism"
desc = "The true faith was spread by the word of the faithful, bringing the divine to the unbelievers. Occasionally it was even strong enough to shatter the cultural ties of the converts, though not without a struggle."
style = 0
trigger = {
countrysize = 200
}
action_a = {
name = "Welcome brothers!"
command = { type = religiousrevolt which = -1 }
command = { type = revolt which = -3 }
command = { type = conversion which = -3 }
command = { type = provinceculture which = -3 value = -1 }
command = { type = provincemanpower which = -3 value = 1 }
command = { type = provincetax which = -3 value = 1 }
command = { type = religiousrevolt which = -1 }
command = { type = revolt which = -3 }
command = { type = conversion which = -3 }
command = { type = provinceculture which = -3 value = -1 }
command = { type = provincemanpower which = -3 value = 1 }
command = { type = provincetax which = -3 value = 1 }
command = { type = stability value = -1}
}
}

It only worked for heretic provinces, though; but if you remove the first 3 lines in the action (you may want to add a revolt nevertheless to make it not so good) and change the -3 to -1 in the provinceculture command it should work for any province (although maybe even in same culture ones).
 

sabular

Major
62 Badges
Mar 7, 2005
583
1
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis 4: Emperor
  • Europa Universalis III Complete
  • Deus Vult
  • Diplomacy
  • 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
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
Mazyrian said:
(although maybe even in same culture ones).

As long as the culturechange is the first item in the commandlist, the event will only target non-primary culture provinces. I do not know what happens if it is not at the top. Note however that it can always trigger for non-primary state culture provinces.
 

unmerged(2456)

Pure Evil Genius
Mar 29, 2001
11.211
0
www.hero6.com
cultural conversion events will not be used as generic events. The engine now handles them as spread. If you want specific cases or have problem with specific province (not) converting, take it up in the appropriate thread.
 

unmerged(2456)

Pure Evil Genius
Mar 29, 2001
11.211
0
www.hero6.com
sabular said:
Sorry, but what do you mean with this? I thought apart from some specific cases (southern spain, western poland, ukraine, russia)no culture changes can occur?
If the culture of a province differs from the culture in province.csv, then cultural spread will occur based on stability and centralization of the country. Only the primary culture will spread this way.
 

unmerged(12680)

I'm Lazy.
Dec 12, 2002
2.818
1
Visit site
Wha-wha-WHAT?? Since what patch? I've been playing with the latest for a while now, (and with AGC-EEP of course), and I've never seen it happen!

More to the point, does this mean that events which already handle such issues (Neumark, the Sibir, Granada etc.) will be removed or reworked?
 

unmerged(2456)

Pure Evil Genius
Mar 29, 2001
11.211
0
www.hero6.com
anti_strunt said:
Wha-wha-WHAT?? Since what patch? I've been playing with the latest for a while now, (and with AGC-EEP of course), and I've never seen it happen!

More to the point, does this mean that events which already handle such issues (Neumark, the Sibir, Granada etc.) will be removed or reworked?
Since before 1.09. If you've played betas you should have seen this, if not you might not. You've probably never seen it because:
  • Stability is not constantly high. Not having it constantly high is a big factor.
  • Centralization isn't mexed out. Low centralization slows down spread (which is ironic, since at max centralization you remove any penalties from different culture.
  • You are owning provinces who's current culture matches the one in province.csv. If this is the case, nothing but events can change this.
Events that handle such issues should be removed if they are historic ones and natural culture spread is better (that except for Americas, uncolonized areas, and maybe some places here and there, a culture map of 1820 should be used imo). That way once the ending culture arrives, it won't keep switching.

Thus for fantasy Granada events, cultural conversion of Iberia should require events, but for Iberia, its best left to the engine. Also ones where ahistorical things arise, should also be handled by events.

For historical conversions, they should only be done for very specific circumstances and that have more to the event that a simple change of culture and related bonuses, FE: a temporary change in culture for whatever reason.
 

sabular

Major
62 Badges
Mar 7, 2005
583
1
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis 4: Emperor
  • Europa Universalis III Complete
  • Deus Vult
  • Diplomacy
  • 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
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
Jinnai said:
(which is ironic, since at max centralization you remove any penalties from different culture.)

This too is totally new for me, since when does this exist?
I can not recal ever having seen another penalty than 30% for having wrong culture, although I must admit I have not paid specific interst to it.
 

unmerged(2456)

Pure Evil Genius
Mar 29, 2001
11.211
0
www.hero6.com
sabular said:
This too is totally new for me, since when does this exist?
I can not recal ever having seen another penalty than 30% for having wrong culture, although I must admit I have not paid specific interst to it.
That was introduced sometime after 1.08 during the betas. Higher centralization lowers the penalty with max removing it altogether. Check the change logs.
 

sabular

Major
62 Badges
Mar 7, 2005
583
1
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Common Sense
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Pillars of Eternity
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Europa Universalis 4: Emperor
  • Europa Universalis III Complete
  • Deus Vult
  • Diplomacy
  • 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
  • Heir to the Throne
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Cities: Skylines
  • Europa Universalis III: Collection
Jinnai said:
That was introduced sometime after 1.08 during the betas. Higher centralization lowers the penalty with max removing it altogether. Check the change logs.

I quickly checked in an old save, from the latest 1.08 beta, max centralization -30% culture penalty.

I do know that, as sturmvogel mentions, non-european provinces with less than 5,000 inhabitants and no nationalism can change culture as long as their culture does not match the culture in province.csv
 

unmerged(12680)

I'm Lazy.
Dec 12, 2002
2.818
1
Visit site
Oh, so it's really just a colonial issue; no wonder I hadn't noticed it before, then.

EDIT: Nevertheless, this should require some reconsideration of the cultural setup of the province.csv file...
 

Avernite

Field Marshal
75 Badges
Apr 15, 2003
6.844
7.234
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Europa Universalis IV: Cossacks
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Federations
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Age of Wonders: Planetfall - Revelations
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Imperator: Rome
  • 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
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
Jinnai said:
If the culture of a province differs from the culture in province.csv, then cultural spread will occur based on stability and centralization of the country. Only the primary culture will spread this way.

actually, from what I know, the effect is centralization and stability independent entirely.

It merely happens in non-european provinces, with a different culture than their original, and then immediately (more or less) upon nationalism reaching 0. This is only, also, for cities with less than 5k inhabitants.
 

unmerged(2456)

Pure Evil Genius
Mar 29, 2001
11.211
0
www.hero6.com
Avernite said:
actually, from what I know, the effect is centralization and stability independent entirely.

It merely happens in non-european provinces, with a different culture than their original, and then immediately (more or less) upon nationalism reaching 0. This is only, also, for cities with less than 5k inhabitants.
Well the 5k thing might be true, but the nationalism isn't. the spread is indeed affected and documented in change logs that it is so, affected by the level of centralization.

The reason it happens outside europe really is because most of them have their province.csv and actual in-game culture the same, and if the 5k is to be true, its most of them are atleast 5k, but I have my doubts as there's nothing documented about that.

However, even if its true, there are still many non-colonies which are affected by this.
 

Avernite

Field Marshal
75 Badges
Apr 15, 2003
6.844
7.234
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Victoria 3 Sign Up
  • Stellaris: Necroids
  • Europa Universalis 4: Emperor
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings III: Royal Edition
  • Crusader Kings III
  • Europa Universalis IV: Cossacks
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Federations
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Age of Wonders: Planetfall - Revelations
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Imperator: Rome
  • 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
  • Imperator: Rome Deluxe Edition
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Stellaris: Ancient Relics
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • Majesty 2
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
1.08 changelog:
- Culture in conquered colonies will now change to an accepted one after the nationalism has faded.
- Culture changes in colonies now only happens in TRUE colonies, ie where culture is different from province's default culture.


this is the only thing I have also ever seen happen, and it is indeed instantaneous in defections as then no nationalism is involved.

These are also the ony ones I could find on it in 1.07, 1.08 and 1.09, so unless it existed before I ever found out, I do not know why you have such a radically different view on it.