Skip to content

File Mapping Editor

Jerome Canler edited this page Apr 30, 2020 · 2 revisions

Inspect and fix bank file mapping with Database Editor

From TDUF 1.12.0

As explained here, game uses kind of registry to track file sizes and newly added ones. That applies particularly to BNK files (with a few others as WAV).

This system couldn't be bypassed so far (not completely, at least), so you should always keep the registry updated with latest game contents.

Hopefully, Database Editor can help you doing this;

Load mapping information

Paragraphs below do expect you've already loaded current database and mapping information into the editor.

At first launch, TDUF Database Editor will ask you game location. That is important step for mapping feature to function properly, so make sure you select TDU root folder accordingly.

A Bnk1.map file must be present under [TDUF root folder]/Euro/Bnk - anyway, the game could not even get to main menu if Bnk1.map is missing :-)

Inspect file mappings

This does apply to a number of database topics, though example below will focus on CAR_PHYSICS_DATA (=Vehicle Slots).

Steps

  1. Switch to Vehicle slots profile and go to a car slot
  2. Head to Default tab, till the item labeled as Car_File_Name. You'll notice a few things have changed from previous versions
  3. Resource value (e.g 629657=AC_427) will instruct the game to lookup some files (exterior 3D model banks etc.), that's why they are listed in table
  4. Of course, you can always change resource value with ... button
  5. Now you can explore TDU files related to selected line with > (arrow) button.

Columns reference

  • Path is the location of used file, relative to TDU Euro/Bnk folder
  • Exists (Y/N) tells whether file is present in game contents
  • Registered (Y/N) tells whether file has been added to Bnk1.map.

Screens

Exploring file mapping

Fix entries

For now, editor can fix one file entry at the time. To perform a global fix of your registry, you should use Advanced CLI tools (MappingTool). Please refer to top of this article for more information.

Steps

  1. Select entry which has not been registered yet
  2. Click on Register button
  3. Don't forget to hit Save button in the top bar when you're done. Et voila!

Clone this wiki locally