This document is still work in progress.
Some formats will receive their own document describing their structure based on what we know so far.
This document describes the structure of Mafia's native data formats as well as their purpose. Some formats will also get detailed technical description based on the researched information.
Game data is stored in *.dta archive files within the game directory. The archives are encrypted and some assets are compressed.
If you extract all DTA files, you realize each archive contains a specific data separated by format:
MAPScontains game textures.bmpis the uncompressed true color format we use in our port, following565,dx1,dx2anddx3compressed formats that were used on weaker PCs with low VRAM VGA cards.tgaformat is used for GUI elements, such as the HUD in game.MODELScontains4dsmodel files. This is the proprietary model format that represents the visuals, as well as special effects or is used as dummy object used as parent by other objects.MISSIONScontains all mission data within the game. Each mission consists at least of:scene2.binwhich describes the mission metadata as well as the list of objects and their properties.scene.4dsthat is a single model representing the terrain/city layout, which is also used to parent some Scene2 objects.tree.klzdefines static collisions or references objects that should make use of Mesh Collider.- Mission can also consist of few optional files that define extra behaviour or visuals used by the map:
cache.binwhich contains list of all static visual geometry used within the mission. This is used mostly by the city missions as it is a simpler version ofscene2.binobject listing, but without hierarchy and special properties.check.bindefines AI waypoints.road.binis a slightly more advanced version ofcheck.binthat also specifies the speed cars should go at each crossroad.car_table.binclusters.segeffects.bin
PATCHcontains data released in form of game patchesSYSTEMTABLEScontains game texts and translations as well as menu definitions:- TODO
menu.deffiles. - TODO
*.gmfgame fonts? - TODO
zidle01.tbl? (zidle means chair in czech) - TODO
MENUdirectory.
- TODO
SAVEGAMERECORDSSOUNDScontains sound files in*.wavformat.DIFFMUSICcontains music used in the game. Note that Steam and GOG versions have some music files replaced/removed.