Stellaris - Log effect doesn't properly work for loops

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

Iyur

icddppl
24 Badges
Apr 2, 2014
731
47
  • Crusader Kings II
  • Imperator: Rome
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Imperator: Rome Sign Up
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Cities: Skylines - Parklife
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Surviving Mars
  • 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

  • Lh_Mjr7-RJyZZqzF8owAew.png
    Lh_Mjr7-RJyZZqzF8owAew.png
    205,4 KB · Views: 10
Upvote 0

neptunehs

First Lieutenant
1 Badges
May 28, 2018
202
61
  • 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.