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

OldEnt

Captain
45 Badges
Aug 12, 2019
475
569
  • Magicka
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Synthetic Dawn
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis IV: Cradle of Civilization
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV
  • Cities: Skylines
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Europa Universalis IV: Third Rome
  • Stellaris: Megacorp
  • Europa Universalis IV: Pre-order
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Crusader Kings II


Subscribe on Steam
Subscribe on Paradox Mods

View source on GitHub: https://github.com/OldEnt/stellaris-version-checker

Determines Stellaris version in-game. Sets appropriate global flag for mods to use. Work in progress. Currently checks whether the game is >= 2.7 or <= 2.6.

Current global flags:
vchecker_2_7_and_up
vchecker_2_6_and_down

Flags available two days after the game start.

Useful if you want to solve Stellaris version compatibility issues or implement mod features differently for each game version.

Mods using vchecker functionality:
  • Void Dwellers Expanded - brings back Habitat Arcology decisions and proper habitat model swap (which needed change in 2.7+), making the mod backwards compatible with old 2.6*.

GitHub: https://github.com/OldEnt/stellaris-version-checker

It looks for version-specific trigger/modifier/effect configuration. See almost complete list here: https://github.com/OldEnt/stellaris-triggers-modifiers-effects-list

Fires automatically at start. If you wish to re-evaluate version run the following:
remove_global_flag = vchecker_version_checked
event vchecker.1
(this is a 'global' country event, fire for all)

Global flag in a 2.6 save:
9BB5C87AF725DF43EDD7F6E70E5064289F3E21EC


Global flag in the same save, but on 2.7 after re-evaluation:
DFDC213FB24C210A66927325BCAAD1318484C8F3


Run vchecker.100 for pop-up with game version shown.
2DD7EA28D8BA19F83AC763EE15462C60FDDAECA9


DD27E13DDCFB5A01A40FEC224987C094EB088939


See my other mods?

 
Wouw* No offense, but this is somehow really crazy! You using "every_pop" (which is global in 2.6) in a loop with "every_owned_pop"... (to set a flag on every pop in the galaxy as many times as you have own pops) alone is fully sick. But using this only to get the game version is just completely crazy!!!1 Sorry >D
And for 2.7 the same 8-o :

Code:
vchecker_every_galaxy_pop_effect_2_7_check = {
    every_owned_pop = {
        every_galaxy_pop = {
            set_pop_flag = vchecker_2_7_pop
        }
    }
}

EDIT: Why not simply use:
Code:
effect = {
    if = { limit = { any_playable_country = {count=all} }
    set_global_flag = vchecker_2_7_and_up
    log = "Count country: [This.GetName] version 2.7"
}

I also wonder there is no simple native command for this, as there exists the version console command.
 
Last edited:
Hi,
There is no loop, events fire only once at the begining of the game where the number of pops is miniscule and performance impact (for a single day) is non-existent. Granted, I could probably limit the scope to a single owned planet but that's just tweaking for an obscure mod hardly anyone will ever use I have no time for.

There is no native version command, that's the whole point of this mod. I needed to have one so I wrote it for my use.

It isn't for "just" getting a game version. Being able to check game version was for me a difference between having functional and broken mod.

any_playable_country trigger existed in 2.6.
Looking at the trigger list differences now again, i will probably change it to leader_age if I find some time, thanks.
 
Hi,
There is no loop, events fire only once at the begining of the game where the number of pops is miniscule and performance impact (for a single day) is non-existent. Granted, I could probably limit the scope to a single owned planet but that's just tweaking for an obscure mod hardly anyone will ever use I have no time for.

There is no native version command, that's the whole point of this mod. I needed to have one so I wrote it for my use.

It isn't for "just" getting a game version. Being able to check game version was for me a difference between having functional and broken mod.

any_playable_country trigger existed in 2.6.
Looking at the trigger list differences now again, i will probably change it to leader_age if I find some time, thanks.

Hey, I've tested this for 2.6 and 2.7, this command with "count" is not working in 2.6...
I mean not day loop, I mean this pop loop with multiplying : "every_" every_owned_pop = { every_galaxy_pop. (without limit or break)
Anyway, thanks for your ideas and mods too.
 
Hey, I've tested this for 2.6 and 2.7, this command with "count" is not working in 2.6...
I mean not day loop, I mean this pop loop with multiplying : "every_" every_owned_pop = { every_galaxy_pop. (without limit or break)
Anyway, thanks for your ideas and mods too.
Oh that's good to know! I will check it out and implement if you don't mind?