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

3. ERF Key List

[Printer Friendly]

The ERF Key List specifies the filename and filetype of all the files packed into the ERF.

Key List Format

The Key List consists of a series of Key structures one after another. Unlike the String List elements, the Key List elements all have the same size. The EntryCount in the ERF header specifies the number of Keys.

Key List Element 0

Key List Element 1

Key List Element 2

....

Key List Element (n-1)

Key Structure

Each Key List Element has the following structure:

ResRef

16 bytes

Filename

ResID 

32 bit

Resource ID, starts at 0 and increments

ResType 

16 bit

File type

Unused

16 bit

NULLs

The ResRef is the name of the file with no null terminator and in lower case. A ResRef can only contain alphanumeric characters or underscores. It must have 1 to 16 characters, and if it contains less than 16 characters, the remaining ones are nulls.

The ResID in the key structure is redundant, because the its possible to get the ResID for any ERF Key by subtracting the OffsetToKeyList from its starting address and dividing by the size of a Key List structure.

When a file is extracted from an ERF, the ResRef is the name of the file after it is extracted, and the ResType specifies its file extension. For a list of ResTypes, see the section on ResTypes later in this document.

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

 

 

BioWare Store
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)
Sun, 08 November 2009 02:04AM

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

4,826,838 BioWare Users:
  216 Logged In
  12 Hidden
  1252 Guests

1295 Playing Online
  100% NWN
  99% NWN: SoU
  99% NWN: HotU

446 Registered Guilds

8,714,995 posts in forums

Newest Forum Topics:
1. Arcane Warrior Gem (Dragon Age: Origins Story and Plot (Spoilers) Forum)

2. Must say, I'm impressed with Ali... (Dragon Age: Origins General Discussion)

3. Can't find registration code (Dragon Age: Origins Technical Assistance (Self Help))

4. Dragon Age Patch and Boot (Dragon Age: Origins Technical Assistance (Self Help))

5. Morigann's nips? (Dragon Age: Origins General Discussion)