• 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
61 Badges
Jun 11, 2012
395
431
  • Crusader Kings II
  • A Game of Dwarves
  • Stellaris: Synthetic Dawn
  • Stellaris: Lithoids
  • Age of Wonders III
  • Steel Division: Normand 44 - Second Wave
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Steel Division: Normandy 44 -  Back to Hell
  • BATTLETECH - Digital Deluxe Edition
  • BATTLETECH - Beta Backer
  • BATTLETECH - Backer
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • Shadowrun: Hong Kong
  • Surviving Mars: First Colony Edition
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Imperator: Rome
  • Hearts of Iron IV: Expansion Pass
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • BATTLETECH: Season pass
  • Knights of Pen and Paper 2
  • Battle for Bosporus
  • Stellaris: Federations
  • Hearts of Iron 4: Arms Against Tyranny
  • Stellaris: Nemesis
  • Crusader Kings III
  • Hearts of Iron IV: La Resistance
  • Knights of Pen and Paper +1 Edition
  • Hearts of Iron IV: By Blood Alone
  • 500k Club
  • Magicka: Wizard Wars Founder Wizard
  • Stellaris: Necroids
  • BATTLETECH: Heavy Metal
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Hearts of Iron IV: Cadet
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Stellaris - Path to Destruction bundle
  • Steel Division: Normandy 44
  • BATTLETECH
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.
 
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:
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!!! :)