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

Emraldis

Colonel
41 Badges
May 23, 2016
1.101
111
  • Magicka
  • Cities: Skylines - Mass Transit
  • Crusader Kings II: Monks and Mystics
  • BATTLETECH
  • Surviving Mars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Shadowrun Returns
  • Shadowrun: Dragonfall
  • BATTLETECH: Flashpoint
  • Stellaris: Megacorp
  • Surviving Mars: First Colony Edition
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Cities: Skylines
  • Crusader Kings II: Way of Life
  • Magicka 2
  • Hearts of Iron IV: Cadet
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Cities: Skylines - Natural Disasters
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: The Republic
  • Crusader Kings II: The Old Gods
  • Age of Wonders III
  • Stellaris: Synthetic Dawn
  • Stellaris - Path to Destruction bundle
  • Crusader Kings II
I'm trying to make a traits extension mod for stellaris, and I've got the traits working and the icons working, but I can't seem to get the names and descriptions working right. I've read that I need to make a localization file, and I did, using the same format as the base game, in the same file tree, but it doesn't seem to do anything, the trait names and descriptions are still trait_desc and trait_name... Anyone have any advice for a budding stellaris modder?
 
Could you post the code of your localisation file please? Here is how I did it:
/Stellaris/mod/roleplaytraits/localisation/roleplaytraits_l_english

Code:
l_english:

 ####################################
 # Species Traits
 ####################################
 trait_mechanical_rp:0 "Mechanical"
 trait_mechanical_rp_desc:0 "§LMechanical beings can live anywhere due to no biological restrictions taking place.§!\n"
 trait_semisentient_ai:0 "Semi-Sentient AI"
 trait_semisentient_ai_desc:0 "§LThis form of AI is completely subservient, but therefore they are not as intelligent as their fully sentient counterparts.§!\n"
 trait_sentient_ai:0 "Sentient AI"
 trait_sentient_ai_desc:0 "§LThis form of AI is thoroughly sentient. They have an opinion on everything, but their intelligence is enormous because there are no restrictions.§!\n"
 trait_very_venerable:0 "Very Venerable"
 trait_very_venerable_desc:0 "§LMembers of this species can easily outlive most other organic beings.§!\n"
 trait_ultra_venerable:0 "Extremely Venerable"
 trait_ultra_venerable_desc:0 "§LThis species is known to live for several centuries with relative ease, outliving almost all organic life.§!\n"
 trait_millennial:0 "Millennial"
 trait_millennial_desc:0 "§LThese people live for more than a thousand years. Accidents are, naturally, exceptionally tragic in their civilisation.§!\n"
 trait_farmers_good:0 Good Farmers"
 trait_farmers_good_desc:0 "§LThis species has always lived from crops, and therefore they perfected the art of harvesting food.§!\n"
 trait_farmers_bad:0 "Bad Farmers"
 trait_farmers_bad_desc:0 "§LThis species is not used to having to harvest something, as they relied on wildlife (plants and small animals) to survive in their ancient past.§!\n"


Remember to convert it to UTF-8-BOM!!! Notepad++ automatically sets it to UTF-8. Go to Encoding and then choose UTF-8-BOM.

And then: File -> Save As -> choose YAML
 
This is my code, and it is definetly encoded correctly, I just checked. It is also the correct file type.
Code:
l_english:

####################################
# Traits
####################################

trait_swarming:0 "Swarming"
trait_swarming_desc:0 "This species effectivly spews out offspring, increasing population growth, but also food consumption.\n"
trait_aggressive:0 "Aggressive"
trait_aggressive_desc:0 "This species has aggressive tendancies, and is prone to acts of violence with only minor provocation. Other species tend to shy away.\n"
trait_violent:0 "Violent"
trait_violent_desc:0 "This species thrives off of random acts of brutality, usually inciting fear in other species.\n"
trait_sociable:0 "Sociable"
trait_sociable_desc:0 "This species enjoys being freindly towards others, this, and a dislike of violence does not go unnoticed by others.\n"
trait_benevolent:0 "Benevolent"
trait_benevolent_desc:0 "This species is always willing to help, but has an extreme distaste of violent acts, making them quite welcomed in the galactic community.\n"
trait_ephemeral:0 "Ephemeral"
trait_ephemeral_desc:0 "This species has a very short lifespan, an unfortunate side-effect of their evolution. As such, they will have to make up for their short lives in other ways.\n"
 
What's the name of your localisation file? You can name it anything you want but it has to have
_l_english
behind it

like so:
Code:
mymodlocalisation_l_english.yml

if it is correct can you post the error log?
C:\Users\name\Documents\Paradox Interactive\Stellaris\logs\error.log
 
  • 1
Reactions:
I actually had a bit of trouble with the localisation strings. It's largely an issue with Notepad++ and how it handles saves and formatting. To fix the saving for YAML in N++, go to:
Settings -> Preferences -> New Document - then make sure the UTF-8 save option is chosen - NOT UTF-8 without BOM.
Settings -> Preferences -> Tab Settings - then scroll down and select the YAML option.

If you want to go full hog with YAML you can also have the auto formatting in YAML:
Settings -> Style Configurator - then select YAML in the leftmost list.
 
Should also be able to copy an existing one from the game and rename it + delete the contents and put in your own. That way it has the exact same settings the game uses. That's how I do it anyway.
 
Should also be able to copy an existing one from the game and rename it + delete the contents and put in your own. That way it has the exact same settings the game uses. That's how I do it anyway.
Yeah that's what I did too. On a side note, I had forgotten the "_l_" in front of my "english" in the filename. Putting that in there fixed it, thanks!