Skip to content

Modding FAQ

jerome edited this page Apr 4, 2017 · 3 revisions

Even though most of contents below are still valid, better and easier ways of doing could have been found since then. So you should also check other topics. This part has been kept for reference.

How to make TDU accept and use new files in Euro/Bnk folder ? (TDUF MappingTool steps)

  1. Add those new files to TDU folders
  2. Use TDUF Mapping Tool with list-missing operation to make sure all new files are detected : MappingTool list-missing --bnkDir "C:\Program Files(x86)\Test Drive Unlmited\Euro\Bnk"
  3. Use TDUF Mapping Tool with fix-missing operation : MappingTool fix-missing --bnkDir "C:\Program Files(x86)\Test Drive Unlmited\Euro\Bnk"
  4. Update TDU database resources (all language files) to contain all new filenames (with TDUMT/TDUF DatabaseTool)
  5. Update TDU database topics to point previously created database resources for model, gauges, rims ... (with TDUF or installer)

How to make TDU accept a new file in Euro/Bnk folder ? (manual steps)

Every file has a checksum, computed value, based upon its relative location in Euro/Bnk folder. To allow TDU to load this file, an entry with right checksum must exist in Euro/Bnk/Bnk1.map file. To get this checksum, one has to apply CRC-32 algorith to file location. Used settings:

  • Please note that location string should be relative to Euro/Bnk directory, lower-case; directory separator is the slash symbol /. e.g: vehicules/a4_dtm.bnk => 0x405b4ffa (1079726074)
  • Initial value = -1
  • Modifier, used to XOR value at the end = -1
  • Polynomial used to generate hashing table: 0xedb88320

How to unlock a vehicle slot in database

  • Change 'BitField' value in CarPhysics topic to 111.
  • Also, make sure all other information is complete (resource links, physics etc).

How to add a vehicle slot in database

There's no tool for that, still.

  • Add a new entry in CarPhysics topic with a 'VehicleId' value that does not exist.
  • Ensure that 'BitField' value is set to 111.
  • Also, make sure all other information is complete (resource links, physics etc).

Does a tutorial about adding new vehicles even exist ?

Yes, Tutorial: How add new car on TDU | turboduck forum

Which TDU files are currently handled or not ?

  • 2DB: textures - YES, good support (TDUMT 1.16)
  • 2DM/3DD/3DG: modeling data - YES, good support (ZModeler2)
  • BIN: cameras - YES, incomplete support (TDUF, TDUMT 1.16, Camera Bin Editor)
  • BNK: archives - YES, good support (TDUF, TDUMT 1.16, TDUMT2 MiniBnk)
  • BTRQ : additional physics for vehicle - YES , incomplete support (TDUF, BTRQ Editor)
  • DB: database - YES, full support (TDUMT 1.16, TDUF, TDUPE)
  • FR/IT/GE/JA/US/...: database resources - YES, full support (TDUMT 1.16, TDUF, TDUPE)
  • MAP: file mapping- YES, full support (MagicMap + TDUF)
  • PMI: World entities- YES, preliminary support (TDUF FileTool conversion + structure, WorldEditor)
  • SHK: Havok physics for World map- NO (might be in the future)
  • XMB : sound configuration - NO (might be in the future)

How to add a new brand with logos

There's no tool for that, still. Prefer using latest community patches with integrated brands and logos.

You can’t perform that action at this time.