BioWare Atari
BioWare Info BioWare Games Support Forums Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

2. ERF Localized String List

[Printer Friendly]

The Localized String List is used to provide a description of the ERF. In .mod files, this is where the module description is stored. For example, during the Load Module screen in NWN (a BioWare Aurora Engine game), the module descriptions shown in the upper right corner are taken from the Localized String List. The game obtains the current Language ID from dialog.tlk, and then displays the ERF String whose LanguageID matches the dialog.tlk language ID.

String List Format

The String List contains a series of ERF String elements one after another. Note that each element has a variable size, encoded within the element itself. The LanguageCount from the ERF Header specifies the number of String List Elements.

String List Element Structure

Each String List Element has the following structure:

LanguageID

32 bit

StringSize 

32 bit

String

Variable size as specified by the StringSize field

In .erf and .hak files, the String portion of the structure is a NULL-terminated character string. In .mod files, the String portion of the structure is a non-NULL-terminated character string. Consequently, when reading the String, a program should rely on the StringSize, not on the presence of a null terminator.

Language IDs

The following is a list of languages and their IDs:

Language

ID

English

0

French

1

German

2

Italian

3

Spanish

4

Polish

5

Korean

128

Chinese Traditional

129

Chinese Simplified

130

Japanese

131

Note, however, that the LanguageID actually stored in an ERF does not match up exactly to the LanguageIDs shown in the above table. Instead, it is 2 times the Language ID, plus the Gender (0 for neutral or masculine, 1 for feminine).

Go to Page (Previous Page - Index, 1, 2, 3, 4, 5 - Next Page)

 

 

Dragon Age: Origins Preorder
Neverwinter Nights 2 Forums
Hide/Show

English
Deutsch
Français
Español
Italiano

Hide/Show

View Latest Screenshots 

View Latest Screenshots
Hide/Show

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



Current time is: (set time)
Sat, 21 November 2009 11:33AM

Hide/Show

Buy Premium Modules

Top NWN: HotU Modules:
1. Good vs Evil III
2. More...

Top NWN: SoU Modules:
1. Good vs Evil III
2. More...

Top CEP Modules:
1. The Lord of Terror The Diablo Campa...
2. More...

Top Modules - NWVault:
1. Hall of Fame
2. More...

Total Modules: 4423

Hide/Show

5,039,493 BioWare Users:
  58 Logged In
  3 Hidden
  175 Guests

764 Playing Online
  100% NWN
  100% NWN: SoU
  100% NWN: HotU

446 Registered Guilds

8,767,802 posts in forums

Newest Forum Topics:
1. Spawn door OnEnter / Despawn doo... (NWN 1: Scripting)

2. ***Theory on Scars + Ashley/Kaid... (Mass Effect 2 General Discussion (No Spoilers Allowed))

3. Sword of Truth module (NWN 1: Modules Discussion)

4. PRC level 9 spells (NWN 1: Custom Content)

5. Default Summoned AI/Scripts (NWN 1: Scripting)