Skip to content

Localization (MCD, TMD, SMD)

ArthurHeitmann edited this page Jul 7, 2024 · 3 revisions

Files

TMD

Many text elements and especially dynamic long text are in TMD files.

Fonts are in data009.cpk\font\font_XX.dat FTB files. To modify a font, open FTB files. See below for font generation settings.

Locations:

  • data009.cpk\txtmess\txt_[...].dat\
  • data100.cpk\txtmess\txt_[...].dat\

MCD

Remaining static UI text.

Font data is included in each MCD file. If new letters are used that were previously not in the mcds font texture, a new texture has to be generated. And if letters are used, that are not supported by the game (new languages for example), a ttf font file has to be used to add new characters. Switch to the "Font overrides" tab and see below for font generation settings.

Locations:

  • data002.cpk\core\coreui.dat\MessCommon.mcd
  • data009.cpk\ui\ui_[...].dat\
  • data100.cpk\ui\ui_[...].dat\

SMD

For subtitles in movie cutscenes.

Locations:

  • data009.cpk\subtitle\subtitle[...].dat\
  • data100.cpk\subtitle\subtitle[...].dat\

Ruby

All dialog text and popup messages are in ruby files

Locations:

Click to show all
  • data002.cpk\core\nier2blender_extracted\corehap.dat*.rb
  • data002.cpk\ph1\nier2blender_extracted\p100.dat*.rb
  • data002.cpk\phf\nier2blender_extracted\pf30.dat*.rb
  • data002.cpk\st1\nier2blender_extracted\r100.dat*.rb
  • data002.cpk\st1\nier2blender_extracted\r120.dat*.rb
  • data012.cpk\ph2\nier2blender_extracted\p200.dat*.rb
  • data012.cpk\ph3\nier2blender_extracted\p300.dat*.rb
  • data012.cpk\phf\nier2blender_extracted\pf10.dat*.rb
  • data012.cpk\phf\nier2blender_extracted\pf31.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q020.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q031.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q032.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q040.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q070.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q071.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q100.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q101.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q102.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q103.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q104.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q110.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q120.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q121.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q122.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q123.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q130.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q140.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q150.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q160.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q162.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q170.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q171.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q180.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q181.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q210.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q220.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q221.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q222.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q290.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q300.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q330.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q340.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q360.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q400.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q401.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q403.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q410.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q440.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q500.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q520.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q532.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q540.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q550.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q560.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q561.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q562.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q590.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q640.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q650.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q651.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q652.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q660.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q680.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q720.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q770.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q800.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q801.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q900.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q910.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\q920.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qab2.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qab3.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qab5.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qab6.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qaba.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qabb.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qabd.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qac8.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qad0.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qad1.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qad2.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qad6.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qaeb.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qaef.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qaf4.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qb20.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qb40.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qc10.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qc11.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qc12.dat*.rb
  • data012.cpk\quest\nier2blender_extracted\qc30.dat*.rb
  • data012.cpk\st1\nier2blender_extracted\r110.dat*.rb
  • data012.cpk\st1\nier2blender_extracted\r130.dat*.rb
  • data012.cpk\st1\nier2blender_extracted\r140.dat*.rb
  • data012.cpk\st1\nier2blender_extracted\r150.dat*.rb
  • data012.cpk\st1\nier2blender_extracted\r160.dat*.rb
  • data012.cpk\st1\nier2blender_extracted\r170.dat*.rb
  • data012.cpk\st2\nier2blender_extracted\r200.dat*.rb
  • data012.cpk\st5\nier2blender_extracted\r530.dat*.rb
  • data013.cpk\wd1\nier2blender_extracted\g11516.dat*.rb
  • data100.cpk\ph4\nier2blender_extracted\p400.dat*.rb
  • data100.cpk\phf\nier2blender_extracted\pf60.dat*.rb
  • data100.cpk\quest\nier2blender_extracted\q080.dat*.rb
  • data100.cpk\quest\nier2blender_extracted\q090.dat*.rb
  • data100.cpk\quest\nier2blender_extracted\q091.dat*.rb
  • data100.cpk\quest\nier2blender_extracted\q092.dat*.rb
  • data100.cpk\quest\nier2blender_extracted\q095.dat*.rb
  • data100.cpk\quest\nier2blender_extracted\qc50.dat*.rb

Font generator

image

Settings per font:

  • Font IDs: Select which font (ids) to override.
  • TTF/OTF path: Path to a ttf or otf font file.
  • fallback only: When checked, only unsupported characters will use the font, otherwise the current textures character will be used.
  • scale: Change the size of text in percent. 0.8 is 80%, 1.0 (default is 100%), ...
  • xPadding/yPadding: Adds empty space around a character. Useful when letters appear to close to each other. (pixel value)
  • xOffset/yOffset: Moves characters left/right or up/down. (pixel value)
  • thickness: Adds boldness to letters (pixel value)
  • shadow blur: Some fonts support text shadow. Recommended values: 1.0 - 4.0 (blur radius pixel value)

General settings:

  • Letter Padding: Adds additional space between letter bounding boxes. Useful when a fonts letters overflow their bounding box (pixel value)
  • Resolution scale (MCD only): Upscales the font texture for a sharper look
  • Global kerning (FTB only): Does not affect font texture, but changes the space between letters when rendered in game.

Pressing the save button (for MCD files, right of "Font debugger" tab, for FTB files "Apply new font") applies all font overrides to all open MCD and FTB files and exports them.