• Victoria 3 - Sign up now!

    The journey begins, sign up now and get a special in-game item when the game is released.


  • Crusader Kings III Available Now!

    The realm rejoices as Paradox Interactive announces the launch of Crusader Kings III, the latest entry in the publisher’s grand strategy role-playing game franchise. Advisors may now jockey for positions of influence and adversaries should save their schemes for another day, because on this day Crusader Kings III can be purchased on Steam, the Paradox Store, and other major online retailers.


    Real Strategy Requires Cunning
  • Crusader Kings II Expansion Subscription

    Subscribe to the CK II Expansion and enjoy unlimited access to 13 major expansions and more!


Divine

Programmer
Super Moderator
33 Badges
Dec 26, 2005
565
929
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
I've added a log trigger and a log effect to help with debugging scripts. I'm quoting a post I did in another thread with example usage.

There's no good reason why it doesn't exist. I've added a trigger and an effect that has the same syntax:
Code:
log = "My log message. Something happened for [This.GetName]."
Which would print "[09:23:04][effect_impl.cpp:16662]: [2200.1.1] Log command triggered from effect in file: events/colony_events.txt line: 2283. My log message. Something happened for Earth." as an output to the game.log file. Do note that the game.log file is wiped every time you start the game.

I think most of the localisation functions should be available for the output.
 
  • 2
Reactions:

Divine

Programmer
Super Moderator
33 Badges
Dec 26, 2005
565
929
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
I can see the value of the variables by this comand?
Not as it is now on Stellaris. The architecture of variables has changed a bit from the previous projects. If I get time on my hand I'll try to make sure that it also works on Stellaris.
 

hadaev

Colonel
24 Badges
Sep 7, 2012
972
207
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Stellaris: Necroids
  • Crusader Kings III
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Dragonfall
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Magicka
So, looks like something broken in variables

Line minerals > "auto_build_cost" work as "auto_build_cost" = 0

My test event:
Code:
country_event = {
    id = autobuild.55
    title = "autobuild.3.name"
    desc = "autobuild.3.desc"
    picture = GFX_evt_alien_city
    #is_triggered_only = yes   
    hide_window = yes   
    immediate = {
        set_variable = {
            which = "auto_build_cost"
            value = 500
        }
        if = {
            limit = {
                check_variable = {
                    which = "auto_build_cost"
                    value = 500
                }
            }
            add_minerals = -4
            add_energy = 200
        }
        if = {
            limit = {
                minerals > "auto_build_cost"
            }
            add_minerals = -4
            add_energy = -250
        }
        }
    }
 

Divine

Programmer
Super Moderator
33 Badges
Dec 26, 2005
565
929
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Unfortunately we can't use variables as a right hand side value for triggers or effects even where it would make sense. Our current architecture prohibits an easy solution to the problem. It is something we understand would be very valuable and we will try to figure out a solution.
 
  • 1
Reactions:

Divine

Programmer
Super Moderator
33 Badges
Dec 26, 2005
565
929
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
- You can now get the value of a script variable to localized text. eg [event_target:my_planet.my_variable] (This means that variable values will now be printable with the log trigger/effect)
- Events now have support for an "after = { }" - effect field that executes after any event option is executed as opposed to the "immediate = { }" effect field.
- Added modifier weapon_type_strike_craft_speed_mult
 
Last edited:
  • 2
Reactions:

Swizzlewizzle

First Lieutenant
7 Badges
May 6, 2016
214
49
  • Magicka
  • Stellaris
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Megacorp
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
Divine can you please edit your posts to reflect whether a feature is actually in the current released version of the game or not? It's a bit confusing looking back and trying to determine if new features are in the current version or are waiting for a new major version, etc..
 
  • 2
Reactions:

LogicSequence

Lightwave Alien
22 Badges
Sep 25, 2006
450
10
  • Stellaris: Synthetic Dawn
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Ancient Space
  • Surviving Mars
  • BATTLETECH
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Cities: Skylines - After Dark
  • Cities: Skylines
  • Magicka
  • Crusader Kings II
Hello Divine,

I was wondering if you could possibly pass this bug along to the devs for us. Basically right now modders can't create new kinds of stars with custom nebula and star light colors because there is no way to link a new star to a file in gfx/worldgfx. There is an entry in the files that suggests where a link should occur, but it does not work unless you use one of the existing star classes. This thread i made goes into detail about it and should explain it well to yourself and the devs: https://forum.paradoxplaza.com/foru...s-with-custom-light-and-nebula-colors.956033/ . If you could pass this along to them so that we might get a fix, that would be great!
 

Guilliman88

Planet Modifier Guy
41 Badges
Mar 21, 2015
539
410
  • Magicka
  • Stellaris
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Apocalypse
  • BATTLETECH - Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Season pass
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Deluxe edition
  • Age of Wonders: Planetfall Premium edition
  • Age of Wonders: Planetfall Season pass
  • Stellaris: Lithoids
  • BATTLETECH: Heavy Metal
  • Stellaris: Federations
  • Crusader Kings III
  • Stellaris: Necroids
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Cities: Skylines - After Dark
  • Cities: Skylines - Snowfall
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Mass Transit
  • BATTLETECH
  • Surviving Mars
  • Age of Wonders III
  • Stellaris: Ancient Relics
  • Stellaris: Synthetic Dawn
  • Crusader Kings II
  • Age of Wonders: Planetfall - Revelations
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome

hadaev

Colonel
24 Badges
Sep 7, 2012
972
207
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Stellaris: Necroids
  • Crusader Kings III
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Dragonfall
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Magicka
Seems like is_same_species counts my species what I genetically modified, but does not count the ones that appear by the event (human superiror).
 

Divine

Programmer
Super Moderator
33 Badges
Dec 26, 2005
565
929
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Divine can you please edit your posts to reflect whether a feature is actually in the current released version of the game or not? It's a bit confusing looking back and trying to determine if new features are in the current version or are waiting for a new major version, etc..
I'm not always in the loop when patch-schedules are changing or other things as I'm connected to four different projects at the moment. Unfortunately the changelog might get reformatted before release, so your best bet is to search for handles of effects or functions from posts in this thread in the changelog which should indicate if they've been implemented in the released version.

Hello Divine,

I was wondering if you could possibly pass this bug along to the devs for us. Basically right now modders can't create new kinds of stars with custom nebula and star light colors because there is no way to link a new star to a file in gfx/worldgfx. There is an entry in the files that suggests where a link should occur, but it does not work unless you use one of the existing star classes. This thread i made goes into detail about it and should explain it well to yourself and the devs: https://forum.paradoxplaza.com/foru...s-with-custom-light-and-nebula-colors.956033/ . If you could pass this along to them so that we might get a fix, that would be great!
I'll make sure that this is in our bug database.

Seems like is_same_species counts my species what I genetically modified, but does not count the ones that appear by the event (human superiror).
That sounds like a bug. I'll try to find some time to add species identity support to the create_species effect.
 
  • 1
Reactions:

Divine

Programmer
Super Moderator
33 Badges
Dec 26, 2005
565
929
  • Semper Fi
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • Victoria: Revolutions
  • For the Motherland
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2 - Signup Campaign
  • Stellaris Sign-up
  • Crusader Kings II
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV
  • Divine Wind
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Diplomacy
  • 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
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
- Events now have support for an "after = { }" - effect field that executes after any event option is executed as opposed to the "immediate = { }" effect field.
- You can now get the value of a script variable to localized text. eg [event_target:my_planet.my_variable]
- Renamed count_ships trigger to count_fleet_ships to better reflect what it actually evaluates.
- Added a new count_ships trigger which evaluates on ships in the entire galaxy.
 
  • 1
Reactions:

FullMetalFox

Second Lieutenant
16 Badges
Jun 21, 2016
108
99
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Synthetic Dawn
Hello Divine, if you have some time available, could you take a look at the linking between star classes and skyboxes? Right now its impossible to add a Skybox to a new Star Class, it simply refuses any world tag identifier that isnt one of the vanilla classes. Thanks in advance!
 

hadaev

Colonel
24 Badges
Sep 7, 2012
972
207
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Stellaris: Necroids
  • Crusader Kings III
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Stellaris: Megacorp
  • Shadowrun: Dragonfall
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Stellaris Sign-up
  • Stellaris
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Magicka
That sounds like a bug. I'll try to find some time to add species identity support to the create_species effect.
Also this event have bug: it can fire on pc_nuked planet, but instead of humans I got mushrooms with adaptability to tropical planets.
 
Last edited:

FullMetalFox

Second Lieutenant
16 Badges
Jun 21, 2016
108
99
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Synthetic Dawn
Any chance that we could get a Mod related version of
Code:
host_has_dlc = "name"  # Checks if the host has a certain dlc enabled
local_has_dlc = "name"  # Checks if the host has a certain dlc enabled

I tried using a Mods Name, the one set in descriptor.mod, but that always returned false.
This would be very usefull for split mods and would enable us to change how two parts of a mod work together.
For example an Anomaly Reward, if mod xyz is enabled get tech from mod xyz, else some research points.

Kind regards!
 

Zarathustra_the

Lt. General
81 Badges
Nov 3, 2011
1.637
979
  • Victoria 2: A House Divided
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • King Arthur II
  • The Kings Crusade
  • Magicka
  • Cities in Motion
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Semper Fi
  • Naval War: Arctic Circle
  • Victoria 2: Heart of Darkness
  • Warlock 2: The Exiled
  • Europa Universalis IV: Third Rome
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Reapers Due
  • For the Motherland
  • 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
  • Hearts of Iron III
  • 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
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Magicka 2: Ice, Death and Fury
  • Crusader Kings II: Conclave
  • Stellaris
  • Warlock: Master of the Arcane
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
- Events now have support for an "after = { }" - effect field that executes after any event option is executed as opposed to the "immediate = { }" effect field.
- You can now get the value of a script variable to localized text. eg [event_target:my_planet.my_variable]
- Renamed count_ships trigger to count_fleet_ships to better reflect what it actually evaluates.
- Added a new count_ships trigger which evaluates on ships in the entire galaxy.


@Divine any chance the after = {} can get ported into HOI IV and CKII?