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

philanthropic19

Khan of Khans
36 Badges
Sep 13, 2013
485
766
  • Crusader Kings II
  • Cities in Motion 2
  • Magicka
  • Hearts of Iron III
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: The Republic
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Monks and Mystics
  • Cities: Skylines - Mass Transit
  • Age of Wonders III
  • Age of Wonders
  • Age of Wonders II
  • Crusader Kings II: Jade Dragon
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Crusader Kings II: Holy Fury
  • Prison Architect
  • Crusader Kings III
  • Hearts of Iron IV Sign-up
  • Cities: Skylines - Snowfall
  • Crusader Kings II: Conclave
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Magicka: Wizard Wars Founder Wizard
  • Cities: Skylines
  • Victoria 2
  • Stellaris
  • Cities: Skylines Deluxe Edition

Information​

I have verifed my game files (Steam only)​

Yes

I have disabled all mods​

Yes

I am running the latest game update​

Yes

Required​

Summary​

Using GetGlobalVariable in trait localization crashes the game during launch

Description​

This bug is related to the creation of mods. The game fails to launch and crashes during initial loading screen if one tries to use 'GetGlobalVariable' in the localization of a trait (name or description).

Here is an example of my code in the localization file:
l_english:
trait_my_new_trait: My New Trait
trait_my_new_trait_desc:0 "Something something does [GetGlobalVariable('some_variable_name').GetValue]"

This makes it impossible to use global variables in the names or descriptions of traits. Note: The same usage of GetGlobalVariable in places other than traits causes no issues.

I have attached a sample mod for your convenience that you can use to see the crash happening.

Steps to reproduce​

1. Create a mod.
2. Create a trait inside common/traits/.
3. Create localization for the trait in localization/english/myloc_l_english.yml and use "[GetGlobalVariable('some_cool_variable_name').GetValue]" in the localization.
4. Try to launch the game and notice that it crashes.
5. Remove the usage of GetGlobalVariable from the localization and notice that the crash no longer happens.

I have attached a sample mod for your convenience that you can use to see the crash happening.

Game Version​

1.9.1

Platform​

Windows

Additional Information​

Affected Feature​

  • Modding

Save Game​

View attachment crash_mod_unzip_me_in_mod_folder.zip

Other Attachments​

View attachment crash_mod_unzip_me_in_mod_folder.zip

 
Upvote 0