High quality resource: Difference between revisions

From LBA File Information
Jump to navigation Jump to search
[checked revision][checked revision]
Content deleted Content added
No edit summary
No edit summary
Line 4: Line 4:
High Quality Resources, also called ''package files'', ''resource files'' or ''archives'' are containers for other smaller files. Their purpose is identical to ''zip'', ''rar'' or ''tar.gz'' archives: to keep large amounts of files in a more efficient way (easier to copy and using less space by using compression).
High Quality Resources, also called ''package files'', ''resource files'' or ''archives'' are containers for other smaller files. Their purpose is identical to ''zip'', ''rar'' or ''tar.gz'' archives: to keep large amounts of files in a more efficient way (easier to copy and using less space by using compression).


All resource package formats (''HQR'', ''VOX'', ''ILE'' and ''OBL'') have identical format, they differ only in purpose.
All resource package formats (''HQR'', ''VOX'', ''ILE'' and ''OBL'') share the same format, they differ only in purpose.


* '''HQR''' - stands for High Quality Resource - these files are of general usage. They contain various types of files, like images, text strings, 3D objects.
* '''HQR''' - stands for High Quality Resource - these files are of general usage. They contain various types of files, like images, text strings, 3D objects.

Revision as of 16:08, 31 August 2010

Template:Format infobox High Quality Resources, also called package files, resource files or archives are containers for other smaller files. Their purpose is identical to zip, rar or tar.gz archives: to keep large amounts of files in a more efficient way (easier to copy and using less space by using compression).

All resource package formats (HQR, VOX, ILE and OBL) share the same format, they differ only in purpose.

  • HQR - stands for High Quality Resource - these files are of general usage. They contain various types of files, like images, text strings, 3D objects.
  • VOX - contain voices that you hear in the game. In LBA 1 these archives contain VOC files, in LBA 2 - WAV files. Note that VOX extension also means "Dialogic ADPCM" according to some programs, but the files used in LBA 1 are not Dialogic ADPCM format despite the identical extension.
  • ILE - contain 3D islands for LBA 2.
  • OBL - contain 3D objects for appropriate islands (LBA 2 only).

Types of entries

There are four kinds of entries, that are stored inside resource files:

  • Normal entries - contain "physical" data that can be extracted to a file.
  • Hidden entries - also contain data, but are not specified in the header. They are placed in the gaps between normal entries. Entries of this kind are present only in VOX files. They are used to split long speech data into smaller pieces (probably because the engine isn't able to play big files at once).
  • Repeated entries - do not contain data, but just references (addresses) to normal entries. This method is a kind of compression - two or more files that contain identical data can be stored as one copy of the data that is just referenced many times. This allows saving disk space without changing the resource file structure.
  • Blank entries - do not contain data, but empty addresses (of zero value). They are probably entries that have been deleted at the alpha/beta stage of the game and they were left in the header to keep the resource file structure unchanged.

Specification