----------------------
MafiaDataXTractor v1.0
by MassaSnygga
----------------------

-----------------
- WHAT IS THIS? -
-----------------
This is a little tool that allows you to extract all the files from the Mafia *.dta files.
This includes all the GREAT music  (In .ogg format. Get a new WinAmp to play them!), the
sounds, the textures, the models...
This tool even patches the Mafia game to read the data files you extracted (and perhaps
modified afterwards :). This makes Mafia-Modding possible!!

----------------------
- HOW DO I USE THIS? -
----------------------
It's very easy to use. Just start it and say OK when it asks you about patching Mafia.
Then choose one or more data files you want to decrypt. Press EXTRACT and there you GO!
Repeat as often you want :)

- NOTE: The files will always be extracted into your Mafia directory as Mafia will try
  to read them from there. But don't fear, they will all be in directories like: sounds,
  mission... So you wont end up with a directory with one godzillion unsorted files.
- NOTE: Mafia is HUGE so if you choose to extract all files, have in mind that it will
  take some time and consume A LOT of disk space (~2.9 GB).
- NOTE: Although the extracted data files will be written to disk and are read from there
  by the game, it is NOT possible to delete the *.dta files as Mafia checks for their
  presence. One could path this, though.

--------------------------
- WHY SHOULD I USE THIS? -
--------------------------
There are numerous reason why one could be interested in this, for example:

- Listen to the FABULOUS music without playing the game.
- Rip textures and sounds.
- Maybe making a bloodpatch for the german version.
- Modify the game!
  This is for sure the interesting part of all. The possibilities go from
  simple cheating over texture/music modifications and unlocking hidden features to creating
  custom missions.
  At a first glance it seems that most of the data files (apart from textures, sounds and music)
  seem to use homebrewed Illusion Softworks formats. But we will be able to hack them, right?
  I don't know for sure if there are some hidden features that can be activated, but the stringtables
  hold some interesting strings like references to a "Racing mode" and multiplayer related strings.
  SO FIRE UP YOUR HEX-EDITOR AND GET SOME WORK DONE!!
  And let me know if you find something interesting :)

  Some things i found out:
  - You can change the language of the game by editing the tables/version.txt. Put "en" for english 
    and "de" for german strings. Unfortunately the speech samples will not change as they are only 
    included for one language.
  - The scene2.bin files in the mission directories seem to be worth a look as they contain 
    "human readable" scripts at the end.
  - It also seems to be a good idea to change the missions directory names to explore unknown missions.
    Like changing a missiondirectory to EXTREME and start that mission using Freeride Extreme in the 
    main menu.
    Although i only experienced strange effects with that method.

--------------
- WHAT ELSE? -
--------------
This version of MafiaDataXTractor was only tested with the US/UK version of the game as I don't 
have access to any other versions of the game.
It is possible, however unlikely, that other versions of the game use different decryption keys.
Contact me if you have any problems with data extraction.

Furthermore this program was only tested under Win98 and WinXP. I don't have Win95/NT/2k and 
therefore WON'T be able fix the program to work in these environments, if there are any
problems.

If you have any suggestions, bug reports or have found an interesting way to mod Mafia, mail me:
MassaSnygga@kamalook.de