Information
I have verifed my game files (Steam only)
YesI have disabled all mods
YesI am running the latest game update
YesRequired
Summary
Using GetGlobalVariable in trait localization crashes the game during launchDescription
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.1Platform
WindowsAdditional Information
Affected Feature
- Modding
Save Game
View attachment crash_mod_unzip_me_in_mod_folder.zipOther Attachments
View attachment crash_mod_unzip_me_in_mod_folder.zip
Upvote
0