[feature request] Modifying Namegen.txt through StreamingAssets

Discuss modding questions and implementation details.
Post Reply
User avatar
herman2000
Posts: 17
Joined: Sun May 10, 2020 2:08 pm
Location: Dresden, Saxony, Germany
Contact:

[feature request] Modifying Namegen.txt through StreamingAssets

Post by herman2000 »

So an idea I had was to try and take a look at expanding the namegen-file. (Assets/Resources/Namegen.txt)
As I have been assured on the Discord server by BadLuckBurt, however, a loose file modification of this would not presently be possible - only a "hardcoded" forked build could do it currently. The best suggestion given was to post about it on the forums (which I am doing now) and see what comes of it. So… there ya go. :P
Last edited by TheLacus on Sat May 23, 2020 9:29 pm, edited 1 time in total.
Reason: sticky

User avatar
TheLacus
Posts: 1338
Joined: Wed Sep 14, 2016 6:22 pm

Re: [feature request] Modifying Namegen.txt through StreamingAssets

Post by TheLacus »

I'll look into it. :)

User avatar
TheLacus
Posts: 1338
Joined: Wed Sep 14, 2016 6:22 pm

Re: [feature request] Modifying Namegen.txt through StreamingAssets

Post by TheLacus »

We are already doing something similar for ItemTemplates. Mods can provide a file named ItemTemplates.json and its content is merged with load order. Specifically, there is a list of items identified by index property; mods can override existing items or add new one (documentation).

NameGen has a more complicated structure:

Code: Select all

{
    "Breton": {
        "setCount": 6,
        "sets": [
            {
                "setIndex": 0,
                "parts": [
                    "Theod",
                    "And",
                    "Bed",
                    "Per"
                ]
            }
        ]
    }
}
To better understand your request, you would like the ability to replace a list of parts at a specific index for a specific race?

User avatar
herman2000
Posts: 17
Joined: Sun May 10, 2020 2:08 pm
Location: Dresden, Saxony, Germany
Contact:

Re: [feature request] Modifying Namegen.txt through StreamingAssets

Post by herman2000 »

TheLacus wrote: Sun May 10, 2020 8:34 pm We are already doing something similar for ItemTemplates. Mods can provide a file named ItemTemplates.json and its content is merged with load order. Specifically, there is a list of items identified by index property; mods can override existing items or add new one (documentation).

NameGen has a more complicated structure:

Code: Select all

{
    "Breton": {
        "setCount": 6,
        "sets": [
            {
                "setIndex": 0,
                "parts": [
                    "Theod",
                    "And",
                    "Bed",
                    "Per"
                ]
            }
        ]
    }
}
To better understand your request, you would like the ability to replace a list of parts at a specific index for a specific race?
Well, essentially. What I want to do is to replace, or rather, expand on the list of names for a given race. In your example, the the first halves of male Breton names, I'd like to, say, add "Cren", "Asti", "Gast", "Ade" (as examples) to the existing list of "Theod", "And", "Bed", and Per".

User avatar
NikitaTheTanner
Posts: 356
Joined: Sun Oct 18, 2015 7:57 pm

Re: [feature request] Modifying Namegen.txt through StreamingAssets

Post by NikitaTheTanner »

Yeah, I've been thinking about the same thing. Want to expand from the small pool of Breton names that seem to repeat very often. Maybe instead of modifying Namegen.txt it would be possible to modify how the names are assigned and use a different source for the names?

Post Reply