Stellaris - Log effect doesn't properly work for loops

Stellaris - Log effect doesn't properly work for loops

  • 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

Iyur

icddppl
20 Badges
Apr 2, 2014
729
45
  • Crusader Kings II
  • Imperator: Rome
  • Stellaris: Apocalypse
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Cities: Skylines - Parklife Pre-Order
  • Stellaris: Humanoids Species Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Cities: Skylines
  • Stellaris: Synthetic Dawn
  • Cities: Skylines Deluxe Edition
Description
Log effect doesn't work for loops

Game Version
[2.2.2]

What version do you use?
[8b3a]

What expansions do you have installed?
Megacorp

Do you have mods enabled?
Empty mode where I'm testing log command.

Please explain your issue is in as much detail as possible.
I've noticed that any log effects doesn't work for loop instances, like every_planet, every_owned_leader, using while structures and so on. Whilst game effects, like set_name works fine.

Steps to reproduce the issue.
Code:
country_event = {
    id = irm.91
    hide_window = yes
    is_triggered_only = yes

    immediate = {
        every_owned_leader = {
            limit = { leader_class = governor }
                set_name = "leader"
                log = "leader"                    # try to log this
                this = { log = "leader_" }        # 2nd test
                leader = { log = "leader__" }    # 3d test
        }
    }

}
Code:
[14:07:43][effect_impl.cpp:17973]: [2284.3.7] Log command triggered from effect in file: events/irm.txt line: 107. leader
[14:07:43][effect_impl.cpp:17973]: [2284.3.7] Log command triggered from effect in file: events/irm.txt line: 108. leader_
[14:07:43][effect_impl.cpp:17973]: [2284.3.7] Log command triggered from effect in file: events/irm.txt line: 109. leader__
> it has to be at least 3 "leader" rows in game logs...

Upload Attachment
 

Attachments

neptunehs

Second Lieutenant
1 Badges
May 28, 2018
187
0
  • Stellaris
Yes,I find same thing.

Code:
country_event = {
    id = nep_test.18
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        always = no
    }
   
    immediate = {
        every_planet = {
            limit = {
                OR = {
                    is_colony = yes
                    is_under_colonization = yes
                    is_colonizable = yes
                }
            }
            log = 1
        }
        every_planet = {
            limit = {
                colonizeable_planet = yes
            }
            log = 2
        }
    }
}
only output 2 lines.
but
Code:
country_event = {
    id = nep_test.18
    hide_window = yes
    is_triggered_only = yes

    trigger = {
        always = no
    }
   
   
    immediate = {
        every_planet = {
            limit = {
                OR = {
                    is_colony = yes
                    is_under_colonization = yes
                    is_colonizable = yes
                }
            }
            root = {
                change_variable = { which = 1_num value = 1 }
            }
        }
        every_planet = {
            limit = {
                colonizeable_planet = yes
            }
            root = {
                change_variable = { which = 2_num value = 1 }
            }
        }
        log = "[This.1_num]"
        log = "[This.2_num]"
    }
}
works well.