Build 8177 Name Generator
JBobb
Member Posts: 29
This caught my eye in the patch notes:
The name generator tables for all races (including custom) are now configurable in racialtypes.2da.
How does this work? How do we create new custom tables? Assuming we can how are they supposed to be configured?
The name generator tables for all races (including custom) are now configurable in racialtypes.2da.
How does this work? How do we create new custom tables? Assuming we can how are they supposed to be configured?
0
Comments
You edit them with this tool. The standard ones are in templates.bif
nwnltr -p myFile.ltr
A simple double click does not work unfortunately. That would just execute the program without any file or anything, i.e. it closes again right away without doing anything.
- WIN+R to bring up a the run dialog
- Type "cmd" and press ENTER to start the command line
- Type "cd c:\path\to\ltrtool" to enter that directory
- Type "nwnltr" to get the list of commands
Check the nwvault page for few more command examples.echo kernogg hank cunvirnzald thesturrank thrakmadorn kalda ureth krelte kormach sagtebaz genost thogam krudolketh cradost robovaz brornis drerl cromgorn | nwnltr --build --generate=10 test.ltr
The | separates two commands. Output of the first one is input to the second one.
The first command is:
echo kernogg hank cunvirnzald thesturrank thrakmadorn kalda ureth krelte kormach sagtebaz genost thogam krudolketh cradost robovaz brornis drerl cromgorn
and it just outputs these orc sounding names.
The second command:
nwnltr --build --generate=10 test.ltr
builds a generator using those names, saves the generator (probability tables) to "test.ltr" file, and then prints 10 names using the new generator. You can try editing these sample names and see what comes out.
You can also save your names to a names.txt file (separate either by space or newline), and then feed it to the generator using the < sign, like this:
nwnltr --build --generate=10 test.ltr < names.txt
You need to have something to build those tables. Either give it a sample set of names to "teach" it, or manually edit the probabilities.
As for user friendliness, I understand typing commands is not fun, but even if there was a user interface, you'd still need to write out all the names to a file.
Great to see I can use a text file though, I hadn't considered that!