Jump to content
We promise no intrusive ads, Please help keep the community alive
Consider supporting us by disabling your ad blocker / add to whitelist / purchasing VIP.
  1. Mondodimotori

    Mondodimotori

Announcements

  • Current Donation Goals

  • Sign Up

    Join the conversation

  • Similar Content

    • By Djey
      2nd gen tooling is in the place!
       
      INTRODUCTION
       
      TOOLS
      TDUF package is a set of tools and libraries, which is able to:
      Check Bnk1.map contents and update it with new files in Euro/Bnk folder. Extract the whole TDU Database to JSON files (a human-readable format, ready to be processed by many tools and languages, including Javascript). Rewrite the whole TDU Database from modified JSON files Check and repair Database for integrity errors Help to understand file formats and read/write data from/to them Provide a Database Editor user interface, which wide range of features (not limited to TDUMT/TDUPE ones) and more to come!  
      Requirements:
      Java 8 Runtime Environment for 64-bit architecture ( e.g Windows x64 72.8 MB   jre-8u231-windows-x64.exe ) : Java SE Runtime Environment 8 - Downloads TDU installed  
      Java 8 Mirrors for TDUF 2.0+:
      - Windows: https://bit.ly/2yOta0C
      - Linux: https://bit.ly/3dfBRzL
       
      How to install:
      Uninstall any Java Runtime prior to 8 Install Java Runtime 8 Extract provided archive contents to any directory of your choice  
      How to run:
      In a nutshell, just launch TDUF-cli.cmd or TDUF-database-gui.cmd scripts from Windows Explorer You may need to create a desktop shortcut to those scripts See README.html file for the rest  
      Download links:
      1.13.1 - DOWNLOAD (Fix for mapping plugin) 1.13 - Download 1.12 - Download tduf zip 1.11 - Download tduf zip 1.10.1 - Download tduf zip (Fix for camera settings) 1.10.0 - Download tduf zip 1.9.0 - Download tduf zip 1.8.0 - Download tduf zip 1.7.0 - Download tduf zip 1.6.0 - Download tduf zip 0.9.0 legacy (using with old versions of BTRQ Editor for example) - Download tduf zip  
      HELP AND TUTORIALS
      TDUF Wiki @ GitHub TDUCP Wiki @ GitHub  
      Q&A
      Please refer to TDUCP WIKI: Modding FAQ · djey47/tdu-cp Wiki · GitHub
       
      OPEN SOURCE DEVELOPMENT
      Github hosting : djey47/tduf
       
      DONATE
      To help me with this project, or to buy me a beer 🙂
      Give a cent (or more) via PayPal
    • By Djey
      TDUF package is a set of tools and libraries, which is able to:
      Check Bnk1.map contents and update it with new files in Euro/Bnk folder. Extract the whole TDU Database to JSON files (a human-readable format, ready to be processed by many tools and languages, including Javascript). Rewrite the whole TDU Database from modified JSON files Check and repair Database for integrity errors Help to understand file formats and read/write data from/to them Provide a Database Editor user interface, which wide range of features (not limited to TDUMT/TDUPE ones) and more to come!  
      Requirements:
      Java 8 Runtime Environment: Java SE Runtime Environment 8 - Downloads If using  TDUF 1.12.0 with Java 9 or 10, a tweak is necessary to make TDUF work properly: extract attached hotfix (
      TDUF-1.12.0-HOTFIX-JAVA-9-10.zip) to tduf/tools/cli directory (replace existing files) If using TDUF 1.12 with 32bit version of Windows, extract attached hotfix (
      DatabaseEditor-1.12.0-HOTFIX-32bit.zip) to tduf/tools/cli directory (replace existing files) TDUF 1.13.0 won't support Windows 32bit TDUMT must work normally TDU installed (some modified editions are not supported).  
      How to install:
      Uninstall any Java Runtime prior to 8 Install Java Runtime 8 Extract provided archive contents to any directory of your choice  
      How to run:
      In a nutshell, just launch TDUF-cli.cmd or TDUF-database-gui.cmd scripts from Windows Explorer You may need to create a desktop shortcut to those scripts See README.html file for the rest  
      HELP AND TUTORIALS
      Support thread:  Tools reference · djey47/tdu-cp Wiki · GitHub  
      Q&A
      Please refer to TDUCP WIKI: Modding FAQ · djey47/tdu-cp Wiki · GitHub
       
      OPEN SOURCE DEVELOPMENT
      Github hosting : djey47/tduf
       
      DONATE
      To help me with this project, or to buy me a beer 🙂
      Give a cent (or more) via PayPal
       
      ATTACHMENTS
      TDUF-1.12.0-HOTFIX-JAVA-9-10.zip
      DatabaseEditor-1.12.0-HOTFIX-32bit.zip
    • By Djey
      Closed thread: you'll find updated documentation within TDUCP project:
       
      https://github.com/djey47/tdu-cp/wiki/TDUF-Reverse-Engineering-Files
       


      [TDUF] Understand TDU files with FileTool

      Hello,
      this thread will explain how to use a TDUF feature, that is FileTool.
      Also, it's a place where people may collaborate, to help with understanding of TDU Files.
       
      PRE-REQUISITES
       

      Installed TDUF Toolset (0.2.1+): http://forum.turboduck.net/threads/32570-TDUF-Djey-Tools-and-Discussion-about-new-modding-possibilities
      Web browser (easy!)
      Hex Editor software your are comfortable with (optional, but recommended)
      Sense of logic (a little)
      Free time (a bunch)
      Fierceness!
      That's all for now :)

       
      TUTORIALS
      If you'd need to remember only one thing: you don't have to know the complete structure of a file to begin playing with it. Favor baby steps ;)
       
      1. OPENING EXISTING FILE
       
       
      2. EDITING EXISTING FILE
       
       
      3. SAVING EXISTING FILE
       
       
      4. ADVANCED: ADD SUPPORT FOR NEW FILE
      TODO
       
      FILE STRUCTURE UPDATE
      Here are all latest known file structures to play with. Feel free to test, modify, understand and enhance them ;)

      DOWNLOAD


       
      REFERENCE
      FileTool instructions

      applyjson : writes a json back to TDU file.
      decrypt : make XTEA encrypted TDU file readable again.
      encrypt : transform file contents with XTEA algorithm - used by some (db, btrq, playersave...).
      jsonify : converts a supported TDU file to JSON file, allowing it to be edited.

       
      File Structure reference
      Example:
      First level information reference:

      name : to identify file you want to decode
      littleEndian : true/false, indicates byte order - most of TDU files are little endian
      cryptoMode : in case of encrypted file, indicates the encryption mode used - 0=Savegames, 1=Others (db, btrq...)
      fields : list of fields contained in this TDU file (see Field reference below)

      Note that cryptoMode set to 0 or 1 will make file to be automatically encrypted/decrypted by FileTool, so you won't have to.
       
      Field/Subfield reference:

      name : give clearest meaning as possible - must be unique !
      type: one of predefined values indicating data kind (see Field types below)
      signed: (from version 0.6.0) true if value should be signed, false otherwise. When absent, value is considered as unsigned.
      size: number of bytes used by this field (see Size tricks below)
      subFields: used when field type is a REPEATER, list of repeated fields

      Field types:

      TEXT: clear text data
      INTEGER: an integer, numeric value (e.g.: 53)
      FPOINT: a floating-point, numeric value (e.g : 235,6547)
      GAP: an area filled with 0's
      UNKNOWN: to be discovered still
      REPEATER: embeds a list of complex values (with their own layout)

      Size tricks:
      - Size attribute is basically the number of bytes used by corresponding field, but with some exceptions:

      When UNKNOWN field type, it is not mandatory - if omitted, the field is expected to occupy all remaining bytes in file.
      When REPEATER, its meaning is the count of repeated items.
      When REPEATER, it's not mandatory either - if omitted, the sub-items are expected to be repeated till the end of the file.

      Important: when INTEGER field type, only supported values are 1 or 2 or 4.
      When FPOINT field type, 2 or 4 are supported.
       
      - Value of this attribute may also be a formula
      e.g : size: "=(2+3)*6" will interpret it as 30.
       
      - A formula may contain a reference to a previously read field
      e.g size: "=5*?fieldName?" will interpret it as 30, as long a field named fieldName has been read before and has a value of 6.
      Please note:

      Field reference writes itself as field name declared earlier in structure, surrounded by question marks characters (?)
      Concerning repeated fields, they get unique name each, following: repeaterFieldName[itemRank].repeatedFieldName
      e.g ?itemList[5].speed?, will reference speed field, repeated under itemList field, at rank 6 (as first item is always at rank 0).
      Also, it is possible to reference a repeated field with the same rank without giving the full name:
      e.g ?speed?, will reference speed field, repeated under the same field as current one and as same rank.

       
      CREDITS

      2CVSUPERGT &TDUCK community => BIN (cameras) research
      mcv100 => BTRQ research
      Speeder => PMI/SHK research

  • Top Downloads

×
×
  • Create New...