Imperator Development Diary - 15th of April

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

Nicolas-

Nc-Rm
32 Badges
Oct 24, 2015
746
1.677
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Nemesis
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Rome: Vae Victis
  • Victoria 2: A House Divided
  • Victoria 2
  • Europa Universalis IV
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Rome Gold
Ahhh hmmm I am not sure if that would be possible. I'd rather not go down the @THIS whatever route because its rather obtuse in what it actually is and working with in CK2 was not all that fun either lol, I'll look at trying a solution, I am sure there is some work around already with combining lists and variables and other magic but a cleaner one would be good.

Right, I think there may be workarounds. It was just an idea for the future. I doubt we'll need it anytime soon. We have a long way towards learning the game and mastering the new modding capabilities.

But thank you for all the new stuff :)
 

Ghesor

Recruit
16 Badges
Sep 24, 2017
3
0
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis IV
  • Magicka
  • Magicka: Wizard Wars Founder Wizard
  • Stellaris
  • Hearts of Iron IV: Cadet
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome
  • Prison Architect
  • Imperator: Rome Sign Up
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Victoria 3 Sign Up
just wanted to ask about it:
are pie charts moddable (i.e. you can show values in them)?
asking about it because they are hardcoded in Hearts Of Iron IV and they have way more potential in modding in Imperator.
 

cristofolmc

Banned
32 Badges
Mar 5, 2009
3.455
4.351
  • 500k Club
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Crusader Kings II
  • Rome Gold
  • Hearts of Iron IV Sign-up
  • Victoria 2
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Victoria 2: A House Divided
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Wealth of Nations
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Europa Universalis IV: Art of War
Saddly, I propably won't ever reach the enddate, cause, I never do, but would it be much work to add an option to keep playing? I can't speak for anyone else, but I like to keep playing after the game has oficially ended, even if it is just for the lulz.


You never play until the end date but you like to keep playing after the game jas officially ended? How does that work?
 

Kain2K

Captain
113 Badges
Mar 2, 2011
398
664
  • 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
  • Europa Universalis III Complete
  • Hearts of Iron IV: Field Marshal
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Galaxy Edition
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Reapers Due
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Stellaris: Apocalypse
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Stellaris: Nemesis
  • Cities: Skylines - Campus
  • Prison Architect
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Hearts of Iron IV: Expansion Pass
  • Victoria 2
  • Imperator: Rome Deluxe Edition
  • Surviving Mars: First Colony Edition
  • Warlock: Master of the Arcane
  • 500k Club
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: El Dorado
  • Stellaris: Megacorp
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
You never play until the end date but you like to keep playing after the game jas officially ended? How does that work?
Ok, let me rephrase that: I never reach the end date in Paradox games, because the endgame lag got too worse, or because I already conquered the world before that date, or what ever. In other sandbox games, Civilisation for example, I do reach the end date, and I do like to keep playing until I painted the map red, with the blood of my enemies... or with nuclear fallout, if Ghandi is still around (who doesn't like a little nuclear war now and then :D).
Besides, I can't imagine that I am the only one who would appreciate that option.
 

ToraktheNord

Second Lieutenant
40 Badges
Aug 15, 2015
186
676
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Jade Dragon
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Imperator: Rome Sign Up
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Victoria 3 Sign Up
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2: A House Divided
  • Victoria 2
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sunset Invasion
  • Europa Universalis IV
  • Victoria: Revolutions
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Ok, let me rephrase that: I never reach the end date in Paradox games, because the endgame lag got too worse, or because I already conquered the world before that date, or what ever. In other sandbox games, Civilisation for example, I do reach the end date, and I do like to keep playing until I painted the map red, with the blood of my enemies... or with nuclear fallout, if Ghandi is still around (who doesn't like a little nuclear war now and then :D).
Besides, I can't imagine that I am the only one who would appreciate that option.

Well, as said, since the end-date is moddable I would imagine that there would be one up on the workshop within hours or days of release
 

Jorlem

Field Marshal
118 Badges
May 9, 2012
4.562
4.049
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • 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
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • The Showdown Effect
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
Let me know if you've got any questions about the script math system.

Feel free to poke me about anything as well! :D
Not sure who to ask about this, so my apologies if I should've tagged someone else. Anyway, my question is: Is it possible to use existing in-game proportions as triggers? Specifically, I'm considering making a mod that provides a benefit/incentive for not going full monoculture, and for that I need some way to "see" how multicultural a city, province, or country actually is. There's those really nice looking pie charts in game for that info, so I'm wondering if it is possible to pull the info that feeds into those charts, and if an area is multicultural enough (maybe requiring non-slave minority culture pops to make up a third of the total pops in the area?), give the citizen pops in that area a boost to their research rate output or something.
 

-Vorenus-

Recruit
Apr 17, 2019
2
0
You got an example of targeted variables? In HoI a variable is a lot more limited in what it can contain, in Jomini a variable can be anything at all so not sure if that would cover your use case already.

The data system is the overarching grander system of everything in the gui and localization. The scripted gui is a specific subset of functions in the gui which link into the script system.
For modding needs the terms are relatively unimportant but for us there is a distinction.


Yep I've been talking a bit with him, the ability to do GetName etc is gonna be in but not for the first release, I had to work around some stuff to make it happen nicely same for displaying lists.
Arrays already exist in the script albeit called lists to keep them more in line with the script list terminology, I've got a prototype for them being shown in the gui which again will not be in for release but should be in "soon"

Is it possible to use GetName on saved scopes though? I think saved scopes are what used to be called event targets? Also are saved scopes local or global? If a character is saved as cool_person, is it saved within the scope of that country or is it global (as in there can be only one cool_person in the world or each country can have its own cool_person?)

Lastly, if someone wanted to mod the economy screen, would they use scripted GUIs or Data System?
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Not sure who to ask about this, so my apologies if I should've tagged someone else. Anyway, my question is: Is it possible to use existing in-game proportions as triggers? Specifically, I'm considering making a mod that provides a benefit/incentive for not going full monoculture, and for that I need some way to "see" how multicultural a city, province, or country actually is. There's those really nice looking pie charts in game for that info, so I'm wondering if it is possible to pull the info that feeds into those charts, and if an area is multicultural enough (maybe requiring non-slave minority culture pops to make up a third of the total pops in the area?), give the citizen pops in that area a boost to their research rate output or something.
You can iterate over pops somewhere and count how many meet a set condition to count them.

Is it possible to use GetName on saved scopes though? I think saved scopes are what used to be called event targets? Also are saved scopes local or global? If a character is saved as cool_person, is it saved within the scope of that country or is it global (as in there can be only one cool_person in the world or each country can have its own cool_person?)

Lastly, if someone wanted to mod the economy screen, would they use scripted GUIs or Data System?
Yes you can, you would something like [SCOPE.sC( 'cool_person' ).GetName].

They are locally saved in the top scope and are removed once the top scope ends. If you want to save something on a country or globally use variables.

The scripted guis is just a subset of the data system, the data system is the overarching system for the gui and the localization. The scripted gui is just a specific subset that handles linking the gui to script effects and triggers.
 

-Vorenus-

Recruit
Apr 17, 2019
2
0
You can iterate over pops somewhere and count how many meet a set condition to count them.


Yes you can, you would something like [SCOPE.sC( 'cool_person' ).GetName].

They are locally saved in the top scope and are removed once the top scope ends. If you want to save something on a country or globally use variables.

The scripted guis is just a subset of the data system, the data system is the overarching system for the gui and the localization. The scripted gui is just a specific subset that handles linking the gui to script effects and triggers.

Great!

I think I got it, if I understood correctly, as far as modding is concerned, the Data System that uses C++ stuff is used for modding only the look/design of the UI, whereas Scripted GUIs are used if new buttons need to be added with their own effects, correct?
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Great!

I think I got it, if I understood correctly, as far as modding is concerned, the Data System that uses C++ stuff is used for modding only the look/design of the UI, whereas Scripted GUIs are used if new buttons need to be added with their own effects, correct?
Sort of, the data system has things that can run specific code effects or evaluate code conditions. The scripted gui is only if you want to run something via the script system.
 

Jorlem

Field Marshal
118 Badges
May 9, 2012
4.562
4.049
  • Victoria 3 Sign Up
  • Crusader Kings III: Royal Edition
  • Imperator: Rome Deluxe Edition
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Battle for Bosporus
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • 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
  • Dungeonland
  • Europa Universalis III
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • The Showdown Effect
  • War of the Roses
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Humble Paradox Bundle
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mandate of Heaven
  • Surviving Mars
  • Hearts of Iron IV: Death or Dishonor
  • Tyranny - Bastards Wound
You can iterate over pops somewhere and count how many meet a set condition to count them.
Is there a way to limit that check to an area when a pop is added or removed from that area, and at game start? I can't help but worry that if I let it try to check constantly, there would be really bad lag. (As an aside, how does culture converting pops work, exactly? Does the game remove the pop being converted then add a pop with the change made back to the location the original pop was, or does the game actually alter the pop?)

Anyway, I believe what I'll want to do is do two iterations, one to add up the number of non-slave pops in a city, and the other to add up the number of pops that are not slaves and are not the country's primary culture, assigning both of these values their own variables. Then I'll need to divide the latter variable by the former, check if that value is greater than or equal to 0.34, then apply the modifier if it is.

Does that sound about right? Or is there some easier way of doing this that I'm missing?
 

Cheexsta

Veni, vidi, vici
60 Badges
Dec 22, 2005
2.894
59
  • Europa Universalis IV: Rights of Man
  • Rome: Vae Victis
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Europa Universalis: Rome Collectors Edition
  • Mount & Blade: Warband
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris Sign-up
  • Victoria 2: Heart of Darkness
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Third Rome
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Stellaris: Nemesis
  • Europa Universalis IV: Conquest of Paradise
  • 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
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Rome Gold
  • Victoria 2
Code:
every_character = {
   limit = {
        has_variable = is_modder
    }
    add_excitement = 9001
}

Side question: how moddable are mapmodes? Is it possible to add new mapmodes or modify existing ones?
 

egladil

Victoria 3 Tech Lead
Paradox Staff
80 Badges
Nov 4, 2010
35
288
  • Cities in Motion
  • Ship Simulator Extremes
  • Semper Fi
  • Rome Gold
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Res Publica
  • Majesty 2
  • The Kings Crusade
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III Complete
  • Rome: Vae Victis
  • Europa Universalis IV: Common Sense
  • Cities: Skylines
  • Tyranny: Archon Edition
  • Shadowrun: Dragonfall
  • Tyranny: Archon Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: El Dorado
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Conclave
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • Pillars of Eternity
  • Crusader Kings II: Horse Lords
  • Imperator: Rome Sign Up
  • Age of Wonders III
  • Europa Universalis IV: Third Rome
  • Crusader Kings III: Royal Edition
  • Shadowrun Returns
  • Crusader Kings Complete
  • Crusader Kings II: Jade Dragon
  • Hearts of Iron IV: Death or Dishonor
  • Knights of Honor
  • Victoria 2
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV
  • Stellaris: Distant Stars
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Stellaris: Humanoids Species Pack
  • Hearts of Iron IV: Expansion Pass
Side question: how moddable are mapmodes? Is it possible to add new mapmodes or modify existing ones?

The basic rules for coloring the map are in code due to performance reasons. But which colors are used in the different coloring modes can be set through defines, and new map modes can be created (or existing ones changed) with new combinations of coloring mode, map icons, names on map, and a bunch of zoom level and shading parameters.
 

blackninja9939

Experienced Programmer - Crusader Kings 3
Paradox Staff
78 Badges
Aug 28, 2013
2.401
7.847
  • Crusader Kings III
  • Stellaris: Federations
  • Battle for Bosporus
  • Stellaris: Nemesis
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Crusader Kings II
  • Crusader Kings II: Holy Fury
  • Imperator: Rome - Magna Graecia
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Old Gods
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Synthetic Dawn
  • Surviving Mars
  • BATTLETECH
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Monks and Mystics
  • Tyranny: Archon Edition
  • Europa Universalis IV: Rule Britannia
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Colonel
  • Stellaris Sign-up
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Imperator: Rome Sign Up
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Crusader Kings II: Conclave
  • Crusader Kings II: The Republic
  • Victoria 2
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Stellaris
  • Mount & Blade: Warband
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Sunset Invasion
Is there a way to limit that check to an area when a pop is added or removed from that area, and at game start? I can't help but worry that if I let it try to check constantly, there would be really bad lag. (As an aside, how does culture converting pops work, exactly? Does the game remove the pop being converted then add a pop with the change made back to the location the original pop was, or does the game actually alter the pop?)

Anyway, I believe what I'll want to do is do two iterations, one to add up the number of non-slave pops in a city, and the other to add up the number of pops that are not slaves and are not the country's primary culture, assigning both of these values their own variables. Then I'll need to divide the latter variable by the former, check if that value is greater than or equal to 0.34, then apply the modifier if it is.

Does that sound about right? Or is there some easier way of doing this that I'm missing?
No there is no hook in like an on action for when pops are removed, would be way too frequent. Checking pop percentages every day will give you bad performance yes.
Pretty sure it just changes the culture of the pop, does not make a new one and kill the old one.

That check would not need two iterations, you can just iterate over all pops once and do an if check inside, would likely be better performance as you are not building the list twice just once.
I am not sure if there is some smart game level trigger to check this stuff already, there might be.
 

rivtaldm

VeF Team; URP/GeS Creator
48 Badges
Jan 4, 2014
1.351
473
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Third Rome
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • March of the Eagles
  • Magicka
  • Hearts of Iron III
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Europa Universalis IV: Art of War
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis 4: Emperor
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Imperator: Rome Sign Up
  • Hearts of Iron IV: La Resistance
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Battle for Bosporus
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Together for Victory
  • Europa Universalis IV: Rights of Man
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Victoria 2
  • Europa Universalis IV
Not sure if this has been asked elsewhere:

Since the game is now been opened up to the streamers I wonder if Paradox would consider letting some of the established modders who A) have established definite intentions to make mods for Imperator:Rome and B) have pre-purchased the game, get access to start working a little early? Thought I might as well ask as the worst case is you say no and I wait to start working until the 25th (which is what I'm doing now anyway).