Difference between revisions of "DGRP (File Format)"

From Retro Modding Wiki
Jump to: navigation, search
m
 
Line 5: Line 5:
 
== Format ==
 
== Format ==
  
The DGRP format is extremely simple; it's essentially just a list of resource dependencies (starting with a 32-bit count). The only difference between games is the resource ID length, and the addition of a [[Form Descriptor (Tropical Freeze)|form descriptor]] in Tropical Freeze. A dependency is formatted like this:
+
The DGRP format is extremely simple; it's essentially just a list of resource dependencies (starting with a 32-bit count). The only difference between games is the resource ID length, and the addition of a [[Form Descriptor (Tropical Freeze)|form descriptor]] in Tropical Freeze.
  
 
{| class="wikitable"
 
{| class="wikitable"
 
! Offset
 
! Offset
! Size
+
! Type
! Description
+
! Count
 +
! Name
 +
! Notes
 
|-
 
|-
 
| 0x0
 
| 0x0
| 4
+
| u32
| '''Resource type''' fourCC
+
| 1
 +
| '''Dependency Count'''
 +
|
 
|-
 
|-
 
| 0x4
 
| 0x4
| Varies
+
| [[#Dependency|Dependency]]
 +
| ''Dependency Count''
 +
| '''Dependency Array'''
 +
|
 +
|-
 +
| colspan=5 {{unknown|End of file}}
 +
|}
 +
 
 +
=== Dependency ===
 +
 
 +
{| class="wikitable"
 +
! Type
 +
! Count
 +
! Name
 +
! Notes
 +
|-
 +
| Asset ID
 +
| 1
 
| '''Resource ID'''
 
| '''Resource ID'''
 +
|
 +
|-
 +
| char
 +
| 4
 +
| '''Resource Type'''
 +
|
 +
|-
 +
| colspan=4 {{unknown|End of dependency}}
 
|}
 
|}
  
 
[[Category:File Formats]]
 
[[Category:File Formats]]
 +
[[Category:Metroid Prime Demo]]
 
[[Category:Metroid Prime]]
 
[[Category:Metroid Prime]]
 +
[[Category:Metroid Prime 2 Demo]]
 
[[Category:Metroid Prime 2: Echoes]]
 
[[Category:Metroid Prime 2: Echoes]]
 +
[[Category:Metroid Prime 3 Prototype]]
 
[[Category:Metroid Prime 3: Corruption]]
 
[[Category:Metroid Prime 3: Corruption]]
 
[[Category:Donkey Kong Country Returns]]
 
[[Category:Donkey Kong Country Returns]]
 
[[Category:Donkey Kong Country: Tropical Freeze]]
 
[[Category:Donkey Kong Country: Tropical Freeze]]

Latest revision as of 02:02, 6 June 2016

The DGRP format is for creating dependency groups. It's one of the few formats that appears in all five Retro Studios games.

Format

The DGRP format is extremely simple; it's essentially just a list of resource dependencies (starting with a 32-bit count). The only difference between games is the resource ID length, and the addition of a form descriptor in Tropical Freeze.

Offset Type Count Name Notes
0x0 u32 1 Dependency Count
0x4 Dependency Dependency Count Dependency Array
End of file

Dependency

Type Count Name Notes
Asset ID 1 Resource ID
char 4 Resource Type
End of dependency