[feature request] Modifying Namegen.txt through StreamingAssets

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

[feature request] Modifying Namegen.txt through StreamingAssets

Post by herman2000 » Sun May 10, 2020 3:05 pm

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: 1150
Joined: Wed Sep 14, 2016 6:22 pm
Contact:

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

Post by TheLacus » Sun May 10, 2020 3:16 pm

I'll look into it. :)
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

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

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

Post by TheLacus » 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?
Mod System documentation - Learn how to create mods for Daggerfall Unity.
Modder Discussion - General help and discussion for the mod system.
Github Issues - Submit a bug report for the game, including the mod system.

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

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

Post by herman2000 » Sun May 10, 2020 8:43 pm

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

Post Reply