Jump to content

How to mod in additional colony adjectives and nouns?


Recommended Posts

I wanted to add some additional adjectives and nouns to the words used to create random colony names. Poking around, in the directory OxygenNotIncluded/OxygenNotIncluded_Data/StreamingAssets/Mods I found the files strings_preinstalled_[LANG]_klei.po and strings_template.pot. I tried changing the list of adjectives found in strings_template.pot and compiling it to strings_preinstalled_en_klei.po, but no dice.  I also tried putting the modified strings_template.pot  into the Mods directory, and still no change.  Is there any way to do what I'm aiming for?

You could try ONI-Modloader. If i'm not mistaken, the game has the strings hardcoded.

I've done something similar adding strings to the game. Have a look to the function the function Prefix in the class InsulatedPressureDoorMod:

https://github.com/javisar/ONI-Modloader/blob/master/ModLoader/InsulatedDoorsMod/InsulatedDoorsMod.cs

Namely you may have something like this:

    [HarmonyPatch(typeof(BaseNaming), "OnSpawn")]
    internal class ColonyNamesMod
    {
        private static void Prefix()
        {            
            Strings.Add("STRINGS.NAMEGEN.COLONY.ADJECTIVE.SCORCHING", "Scorching");            
        }
}

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...