Data Resource File

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
m (Format: made format section prettier)
Line 13: Line 13:
  
 
==Format==
 
==Format==
:char[36] copyright
+
<pre>
:uint32 version
+
char[36] copyright
:char[16] unknown
+
uint32 version
:uint32 number_of_groups
+
char[16] unknown
:uint32 files_offset
+
uint32 number_of_groups
 +
uint32 files_offset
  
:'''struct groups number_of_groups'''
+
struct groups[number_of_groups]
::char[4] extension (reversed with an ASCII space character at the end)
+
  char[4] extension (reversed with an ASCII space character at the end)
::uint32 table_offset
+
  uint32 table_offset
::uint32 num_table_entries
+
  uint32 num_table_entries
  
::'''struct entries num_table_entries'''
+
  struct entries[num_table_entries]
:::uint32 id
+
    uint32 id
:::uint32 offset
+
    uint32 offset
:::uint32 size
+
    uint32 size
 +
</pre>
  
 
*Files can then be read from the drs file and written to disk using the offset and size of the file given under each entry.
 
*Files can then be read from the drs file and written to disk using the offset and size of the file given under each entry.

Revision as of 05:41, 23 August 2016

File Format
Name Data Resource File
Ontology
Extension(s) .drs
Released 1997

Data Resource Files are used in the PC game Age of Empires and Age of Empires II for storing game files such as graphics and sound. It is an archive, so a drs file stores other files which then need to be interpreted in their own unique way.

Common files found archived in a drs file:

Format

char[36] copyright
uint32 version
char[16] unknown
uint32 number_of_groups
uint32 files_offset

struct groups[number_of_groups]
  char[4] extension (reversed with an ASCII space character at the end)
  uint32 table_offset
  uint32 num_table_entries

  struct entries[num_table_entries]
    uint32 id
    uint32 offset
    uint32 size
  • Files can then be read from the drs file and written to disk using the offset and size of the file given under each entry.

External links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox