Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customizing the name lists?
#1
I did a google search on this and it came up with a partial answer that linked to a site that appears to no longer exist.  I'm wanting to focus the names that are generated a little better by faction and remove name lists I can't even pronounce.  I just don't understand the numbers in the appropriate4 files to make the changes.  How do I customize the name lists?
Reply
#2
Going from Memory here...

The first number is the chance, the higher the number the more chance there is of that name appearing. The second is the link to the ancestry.

So Last name Adams,725,1 would be 725 chances out of ??? to generate that last name and its US ancestry.
Reply
#3
Pretty much what Hammer wrote.

I don't particularly like how the current name generation system works, but it's okay for what it is supposed to be doing and coding a significantly better replacement would take way too much effort better spent elsewhere. If you have any ideas about what "a little better by faction" generation entails, feel free to tell us though. Who knows, you might convince us to redesign the system anyway.
Reply
#4
Well the system is fine for what it is right now.  It already has different weights across 30 some odd name lists.  Every faction can have names form across the world.  MY problem is that all too often I get a name like Sjifknarg.  I cant pronounce it,  and thus I don't get attached to the character at all.  What I'm wanting to do is more heavily weight it by faction based on their stereotype with a small chance of just generating from name lists I can pronounce and completely remove the name lists I cant pronounce.
For example:

Kurita:  90 percent weighted towards a Japanese name. 10 percent the other English/French/German
Liao: 60 percent weighted towards a Chinese name.  30 percent wgthd towards Russian.  10 percent the other English/French/German
Steiner: 90 percent Gernam  10 percent other


This is the chart I'm loosely going by:

Draconis Combine - Japanese ----- Swedenese, Arabic, English
Federated Suns - English ----- French, German, Hindi, Russian
Capellan Confederation - Mandarin ----- English, Russian, Scottish, Gaelic, Hindi, Arabic
Free Worlds League - English ----- Spanish, Greek, Romanian, Urdu
Lyran Alliance - German ----- Scottish, Gaelic, Italian, Swedish, English
Free Rasalhague Republic - Swedish ----- English, Japanese, Swedenese, German
Taurian Concordat - English ----- Spanish, French
Magistracy of Canopus - English ----- Spanish, Greek, Romanian, Urdu
Outworlds Alliance - English ----- Japanese, French

What I'm trying to do is figure out how to read the existing files so I can weight them to my own tastes.  For example this is the current Kurita file.

1,U.S.,10,100,40,40,40,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
2,English,5,60,100,20,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
3,Scottish,3,60,20,100,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
4,Irish,3,60,20,20,100,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
5,German,5,40,10,1,1,100,20,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
6,Dutch,2,40,10,1,1,20,100,20,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
7,Scandanavian,15,40,10,1,1,20,20,100,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
8,French,3,40,10,1,1,1,1,1,100,10,10,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
9,Italian,3,40,10,1,1,1,1,1,10,100,10,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
10,Hispanic,5,40,10,1,1,1,1,1,10,10,100,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
11,Portugese,2,40,10,1,1,1,1,1,10,10,10,100,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
12,Russian,3,40,10,1,1,1,1,1,1,1,1,1,100,20,10,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
13,Slavic,4,40,10,1,1,1,1,1,1,1,1,1,20,100,10,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
14,Polish,2,40,10,1,1,1,1,1,1,1,1,1,10,10,100,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
15,Romanian,1,40,10,1,1,1,1,1,1,1,1,1,1,1,1,100,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
16,Finnish,1,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,100,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
17,Albanian,1,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,1,1,1,1,1,1,1,1,40,1,1,1,1,1,1
18,Serbian,1,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,1,1,1,10,1,1,1,40,1,1,1,1,1,1
19,Greek,3,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,1,1,1,1,1,1,40,1,1,1,1,1,1
20,Turkish,2,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,10,20,1,1,1,40,1,1,1,1,1,1
21,Armenian,1,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,10,100,1,1,1,1,40,1,1,1,1,1,1
22,Arabic,10,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,20,1,1,40,1,1,1,1,1,1
23,African,7,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,100,1,1,40,1,1,1,1,1,1
24,Pakistani,3,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,1,100,20,40,1,1,1,1,1,1
25,Indian,5,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,20,100,40,1,1,1,1,1,1
26,Japanese,20,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,100,10,1,1,1,1,1
27,Korean,3,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,100,1,1,1,1,1
28,Chinese,5,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,100,1,1,1,1
29,Vietnamese,2,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,100,10,1,1
30,Indonesian,2,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,10,100,1,1
31,Polynesian,1,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,100,1
32,Filipino,2,40,10,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,40,1,1,1,1,1,100


Now I still need to go in and see which of those languages are causing me the most trouble but also I'm wanting to overall weight this thing so the primary language is far more dominant.  The problem is I can't read that.  There is no guide or documentation on what the numbers mean.
Reply
#5
Sadly, the most complete documentation is simply the documentation of the responsible Java class file ...

Quote:Files are located in Configuration.namesDir(). All files are comma-delimited text files.

The masterancestry.txt file shows the correspondence between the different ethnic names and their numeric code in the database. This file is currently not actually read in by MM, but is provided as a reference. The same numeric code must be used across all of the files listed below. Currently the numeric codes must be listed in exact sequential order (i.e. no skipping numbers) for the program to work correctly.

The name database is located in three files: firstname_males.txt, firstname_females.txt, and surnames.txt. There ar three comma-delimited fields in each of these data files: fld1,fld2,fld3
•fld1 - The name itself, either a male/female first name or a surname.
•fld2 - a frequency weight to account for some names being more common than others. Currently this is not being used.
•fld3 - the numeric code identifying the "ethnic" group this name belongs to.


Faction files are located in Configuration.namesDir()/factions. The name that is given before ".txt" is used as the key for the faction. The faction files will have varying number of fields depending on how many ethnic groups exist. The faction file does two things. First, it identifies the relative frequency of different ethnic surnames for a faction. Second, it identifies the correspondence between first names and surnames. This allows, for example, for more Japanese first names regardless of surname in the Draconis Combine. There should be a line in the Faction file for each ethnic group.
•fld1 - the id for the ethnic group
•fld2 - the ethnic group name. Not currently read in, just for easy reference.
•fld3 - The relative frequency of this ethnic surname in the faction.
•fld4-fldn - These fields identify the relative frequency of first names from an ethnic group given the surname listed in fld1.
Reply
#6
actually that answers my question

•fld1 - the id for the ethnic group
•fld2 - the ethnic group name. Not currently read in, just for easy reference.
•fld3 - The relative frequency of this ethnic surname in the faction.
•fld4-fldn - These fields identify the relative frequency of first names from an ethnic group given the surname listed in fld1.

That not only explains it it tells me how to add additional name lists.  Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  NPE whilst customizing a Crab 27b, looks like its from MML not from MekHQ... ralgith 15 2,549 01-09-2012, 05:54 PM
Last Post: ralgith
  Customizing units in MekHQ? RotaryRockStar 2 1,653 05-22-2011, 05:57 PM
Last Post: Taharqa

Forum Jump:


Users browsing this thread: 1 Guest(s)