Packfile Manifests (.#mf)

_manifest.#mf files are used since framework-based GTA games (GTA5+) to provide additional linkage between assets such as .#map → .#typ, high-resolution TXDs and some other project-related metadata. Technically, they are implemented in the GTA-specific override of rage::strStreamingInterface, i.e. CGtaStreamingInterface::PostLoadRpf.

These are typically a PSO-format metadata file with a root struct of CPackFileMetaData.

CPackFileMetaData

Field Type Description
MapDataGroups array Scripted map data assets with linked collision and weather/time dependent flags
HDTxdBindingArray array HD textures linked to their lower-quality counterparts.
imapDependencies array Links interior #map files and their interior #typ.
imapDependencies_2 array Links #map files containing entities to the archetype files defining them.
itypDependencies_2 array Same as imapDependencies_2, but generally used for MLO archetypes, defined in a .#typ file.
Interiors array Used for linking collisions to MLO interiors

MapDataGroups

Field Type Description
Name string Name of #map file.
Bounds array of string Linked static collision files.
Flags enum bitset (ePackFileMetaDataImapGroupType) Weather/time flags.
WeatherTypes array of string Array of weather names triggering #map file load.
HoursOnOff u32 Time where #map file is loaded, as a bitfield of 0…23 bits.

ePackFileMetaDataImapGroupType

  • TIME_DEPENDENT
  • WEATHER_DEPENDENT

HDTxdBindingArray

Field Type Description
assetType enum ePackFileMetaDataAssetType Asset type of file, details below.
targetAsset string Name of lower detailed texture resource.
HDTxd string Name of HD texture resource.

ePackFileMetaDataAssetType

Field Description
AT_DRB Drawable.
AT_DWD Drawable dictionary.
AT_FRG Fragment.
AT_TXD Texture dictionary.

imapDependencies

Field Type Description
imapName string Map data asset name.
itypName string Map type asset.
packFileName array Unused.

imapDependencies_2

Field Type Description
imapName string Map data asset name.
manifestFlags enum flags Manifest flag for specific resources - only INTERIOR_DATA or blank
itypDepArray array Array of map types assets which are used in the imapName above.

itypDependencies_2

Field Type Description
itypName string Map types asset name.
manifestFlags enum flags Manifest flag for specific resources - only INTERIOR_DATA or blank
itypDepArray array Array of map types assets which are used in the itypName above.

Interiors

Field Type Description
Name string MLO interior name.
Bounds string Collision name to be linked to MLO interior.
3 Likes