[Question] How do I get technology localisation to show up?

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

ShadowDragon868

Captain
34 Badges
Jun 11, 2012
395
431
  • Crusader Kings II
  • A Game of Dwarves
  • Stellaris - Path to Destruction bundle
  • BATTLETECH: Heavy Metal
  • Steel Division: Normandy 44
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Knights of Pen and Paper 2
  • Magicka: Wizard Wars Founder Wizard
  • 500k Club
  • Knights of Pen and Paper +1 Edition
  • Magicka 2
  • Pillars of Eternity
  • Magicka
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
So, I'm trying to make a little tech mod. I've got all the mod entries apparently sorted out... Apparently.

I've got a localisation file that ends in _l_english.yml with text strings begun with a space. For example...

Code:
 tech_shadowdragon_bellicosity_1:0 "Bellicosity I"
 tech_shadowdragon_bellicosity_1_desc:0 "If you send a Deneban fleet officer to a xenosciences conference, she's going to be upset at being surrounded by aliens."

Is matched to

Code:
tech_shadowdragon_bellicosity_1 = {
   cost = @tier1cost4
   area = society
   category = { statecraft }
   is_rare = no
   tier = 1
   prerequisites = { "tech_galactic_ambitions" }
   modifier = { max_rivalries = 1 }
   
   weight = @tier1weight4
   weight_modifier = {
     modifier = {
       NOT = {
         research_leader = {
           has_trait = "leader_trait_expertise_statecraft"
           area = society
         }
       }
     factor = 0.25
     }
   }
   
   ai_weight = {
     modifier = {
       factor = 1.25
       research_leader = {
         has_trait = "leader_trait_expertise_statecraft"
         area = society
       }
     }
   }
}

The actual tech seems to be working fine, but it won't display the proper name and description.
 

ShadowDragon868

Captain
34 Badges
Jun 11, 2012
395
431
  • Crusader Kings II
  • A Game of Dwarves
  • Stellaris - Path to Destruction bundle
  • BATTLETECH: Heavy Metal
  • Steel Division: Normandy 44
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Surviving Mars: Digital Deluxe Edition
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Knights of Pen and Paper 2
  • Magicka: Wizard Wars Founder Wizard
  • 500k Club
  • Knights of Pen and Paper +1 Edition
  • Magicka 2
  • Pillars of Eternity
  • Magicka
  • Heir to the Throne
  • Divine Wind
  • Europa Universalis III: Chronicles
  • Europa Universalis III
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
Okay, I found the problem.

If your localisation strings do not show up and you cannot find any flaws in your file, check the encoding.

Stellaris won't load a yml file encoded in ANSI, which is what Notepad++ defaults to when you change the file extension from .txt to .yml. You need to go to Encoding and change it to UTF-8-BOM.
 
  • 1
Reactions:

SolarGuy

General
43 Badges
Aug 12, 2015
1.944
1.833
  • Stellaris
  • Stellaris Sign-up
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Distant Stars Pre-Order
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Federations
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Cities: Skylines - After Dark
  • Stellaris: Synthetic Dawn
Okay, I found the problem.

If your localisation strings do not show up and you cannot find any flaws in your file, check the encoding.

Stellaris won't load a yml file encoded in ANSI, which is what Notepad++ defaults to when you change the file extension from .txt to .yml. You need to go to Encoding and change it to UTF-8-BOM.
OMG thank you so so so so extremely much!!! :)