Jump to content

Soldier Names (OpenXcom): Difference between revisions

From UFOpaedia
Redirected page to OpenXcom
Tag: New redirect
Undo revision 126444 by Hobbes (talk)
Tags: Removed redirect Undo
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
#REDIRECT [[OpenXcom]]
OpenXcom allows customization of the [[Soldier Name Stats|soldier names]] used when generating new soldiers. They are stored in the ''Data\SoldierName'' folder with a .nam extension.
 
== Format ==
 
Each file contains a set of soldier names stored in YAML format.
 
<pre>
lookweights:
  - 35
  - 35
  - 15
  - 15
maleFirst:
  - Austin
  - Calvin
  - Carl
  ...
femaleFirst:
  - Barbara
  - Catherine
  - Evelyn
  ...
maleLast:
  - Bradley
  - Bryant
  - Carr
  - ...
femaleLast:
  - ...
</pre>
 
When generating a name for a new soldier, a random first and last name are picked from a random set. If ''femaleFirst'' or ''femaleLast'' are omitted, then respectively ''maleFirst'' or ''maleLast'' are used for both genders.
 
Soldier names should only use [[Wikipedia:Romanisation|the basic Latin alphabet]], since they are shared among languages, to ensure everyone can read them.
 
Each .nam file also contains lookweights that affect the chance that each of the four default looks will be chosen- these follow the number order of the looks in the data files, so the first weight corresponds with look 0 for either gender, then look 1, etc...
 
== External Links ==
 
* [http://openxcom.org/forum/index.php/topic,205.0.html Soldier Names thread]
* [https://github.com/SupSuper/OpenXcom/tree/master/bin/common/SoldierName Latest Soldier Names in Github]
 
[[Category:OpenXcom]]

Latest revision as of 14:56, 10 March 2026

OpenXcom allows customization of the soldier names used when generating new soldiers. They are stored in the Data\SoldierName folder with a .nam extension.

Format

Each file contains a set of soldier names stored in YAML format.

lookweights:
  - 35
  - 35
  - 15
  - 15
maleFirst:
  - Austin
  - Calvin
  - Carl
  ...
femaleFirst:
  - Barbara
  - Catherine
  - Evelyn
  ...
maleLast:
  - Bradley
  - Bryant
  - Carr
  - ...
femaleLast:
  - ...

When generating a name for a new soldier, a random first and last name are picked from a random set. If femaleFirst or femaleLast are omitted, then respectively maleFirst or maleLast are used for both genders.

Soldier names should only use the basic Latin alphabet, since they are shared among languages, to ensure everyone can read them.

Each .nam file also contains lookweights that affect the chance that each of the four default looks will be chosen- these follow the number order of the looks in the data files, so the first weight corresponds with look 0 for either gender, then look 1, etc...

External Links