1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Knyazev : TDUMT II - Texture Tools [v1.0]

Discussion in 'TDU2 - Mod Tools & Support' started by Knyazev, Oct 15, 2011.

  1. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    TDU Modding Tools 2 - Texture Tools
    v1.0 / January 29, 2017
    Developer: Knyazev

    Official page: https://tdu2.knyazev-tools.ru/tudmt2-texture-tools/

    ----------------------------------------------------
    These tools are part of TDU Modding Tools 2
    You can download Djey's Mini Bnk Manager here
    ----------------------------------------------------
    » Important information!
    This tools written on C#. Requires .NET Framework 3.5 (SP1)
    and minimum 256 MB of RAM on your computer.
    It's freeware tools! Use at own risk!

    » Description:
    This is a set of tools for working with TDU/TDU2 texture files,
    which contains a two tools:
    1. Texture Converter - tool for converting 2DB files to DDS and vice versa.
    2. Texture Viewer - tool for viewing only the 2DB files.

    » Features:
    -» Texture Converter : features
    » Single file convertion
    » Multiple files convertion
    » Viewing 2DB files (Support RGB-palette and alpha-channels)
    » Detailed information about 2DB-texture
    » Error-log system

    -» Texture Viewer : features
    » Search file in the list
    » Support RGB-palette
    » Support alpha-channels
    » Detailed information about 2DB-texture
    » Error-log system

    » Changelog:
    v1.0 / January 29, 2017
    > Texture Converter

    > Texture Viewer
    - Some bugfixes.
    - Some improvements.
    - Some localization fixes.


    » System requirements:
    » Windows XP SP3, Windows Vista SP1, Windows 7, Windows 8 (x86 / x64)
    » Minimum 256 MB RAM
    » 1 - 128 MB free space on HDD
    » .NET Framework 3.5 SP1

    » Included third-party libraries:
    » Fesersoft.Hashing.Crc32 by Fesersoft,Inc » Fesersoft - .Net » Fesersoft - .Net
    » DjeFramework-1 and TduModdingLibrary-1 by Djey » TOOLS » TOOLS

    » Special thanks to:
    » Djey for the TDUMT libraries and some nice ideas.
    » reventon09 for the active beta-testing of Texture Converter.
    » Pavel Matveev for the logos in the tools.

    VirusTotal: Information

    » Download:
    » Download file

     
    #1 Knyazev, Oct 15, 2011
    Last edited by Knyazev: Sep 4, 2018
  2. Reventón09

    Reventón09 "Relax"

    Messages:
    2,066
    Location:
    Torino
    Hi,
    I tested your program but I have a problem:
    I tried to put the texture of the rear lights of the Alfa 8C from FM4 with the conversion from .2DB to .DDS I haven't any problem and I can edit the texture and also with the conversion from .DDS to .2DB I haven't problem, after I repack the file .bnk and launch the game,
    but in game the texture appear so:
    ImageShack - Online Photo and Video Hosting

    ImageShack - Online Photo and Video Hosting
     
  3. keyser92

    keyser92 Rookie

    Messages:
    7
    Location:
    paris
    hey
    I will like to test this tool plz:D
     
  4. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    reventon09
    Thank you for a report about bug! :)

    I use old TDUMT libraries (from TDUMT 1.14).
    I will try to do it, that you did, but with new TDUMT lbraries (from TDUMT 1.61) :)

    1:34 AM (GMT+2)
    I have the same problem :(

    I converted some 2db files using TDUMT 1.16.1 libraries and TDUMT 1.61 program, and I have the same problem with textures... :/

    I was saving edited DDS files in DXT1 (no Alpha) and DXT1 (1 bit Alpha) - same problem( // I'm not modder

    Please, use TDUMT 1.61 and report me about results.
    Maybe I wrong use a convertion functions. *SCRATCH*

    Maybe I need to consider these options?
    [​IMG]
    I must use them?

    What fields are required?
     
    #4 Knyazev, Oct 15, 2011
    Last edited by Knyazev: Oct 15, 2011
  5. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Oh, Thanks for the report! :)

    Which fields in the TDUMT 1.6.1 options you used? Screenshot above.)
     
    #6 Knyazev, Oct 16, 2011
    Last edited by Knyazev: Oct 16, 2011
  6. Reventón09

    Reventón09 "Relax"

    Messages:
    2,066
    Location:
    Torino
    #7 Reventón09, Oct 16, 2011
    Last edited by Diablo: Apr 3, 2018
  7. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Oh, Thanks! :)

    I knew that it field (Keep original file header) must be used. :)

    Original file header: it's original 2db file from not edited (original) *.bnk file, right?

    After of rest I will solve this problem :)
     
  8. Reventón09

    Reventón09 "Relax"

    Messages:
    2,066
    Location:
    Torino

    Yes

    Good luck with this program :)
     
  9. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Thanks again! :)

    Failed start the first beta-testing... :\ I'm so sorry.

    I was very tired of programming and in the first beta version of my app I made ​​a serious error... ( Sorry...

    To solve this problem, I need some time...
    A lot of work with "DDS -> 2DB conversion"...
    I forgot about fields in options of TDUMT 1.61 - DDS->2DB window. They "play" a very important role in DDS->2DB conversion.

    I also must to think about: how to implement it all in my app, in the next beta... :)


    Beta-testing closed now!
     
    #10 Knyazev, Oct 16, 2011
    Last edited by Knyazev: Oct 16, 2011
  10. Djey

    Djey Well-Known Member

    Messages:
    2,331
    Location:
    Eden Games' Homeland
    Hi
    this is how to use the DDSTo2DB methods - should solve your prob

    This one is by 'keep original header'
    DDSTo2DB(string original2DBFile, string sourceDDSFile, string target2DBFile, string newTextureName, int mipmapCount)
    - original2DBFile : unmodified 2DB file
    - sourceDDSFile
    - target2DBFile
    - newTextureName : null
    - mipmapCount : GraphicsConverters.KEEP_ORIGINAL_MIPMAP_COUNT

    This one generates a new header but I haven't had the time to debug it:
    DDSTo2DB(string sourceDDSFile, string target2DBFile, string newTextureName, int mipmapCount)
    - sourceDDSFile
    - target2DBFile
    - newTextureName : null
    - mipmapCount : GraphicsConverters.KEEP_ORIGINAL_MIPMAP_COUNT.

    good luck !
     
  11. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Thanks you :)
    But I'm using these functions now.

    Must be the same header in original 2DB file and in edited 2DB file? Right? It's will be work in game?
    Game be understand a new (edited) header in 2DB file?
    I'm not modder, I don't know how must be.
     
  12. Djey

    Djey Well-Known Member

    Messages:
    2,331
    Location:
    Eden Games' Homeland
    Yes, headers must be the same (because you won't have to change mipmap count and texture name - those are advanced parameters only).

    A 'new' header means you don't need the old header from original 2DB file, only need the DDS information to generate a new one.
    (DDS -> 2DB is rather easy to convert, 2DB -> DDS back is harder need more information, thus can't work in all cases :( ...)


    So :
    - to have 100% success, use the 1st method
    - the 2nd method has to be fixed still to work in all cases, sorry about that.
     
  13. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Thanks! :)
    I use only 1st method "keep original header".
    - Single file conversion: DDS->2DB: done

    Now I think how to implement the first method in "Multiple file conversion" :)
    I do it:
    User must select the folder with original 2DB files. The converted files (*.DDS) must have the same names with original files 2dB, but without file extension.
    Tool will be check names of all selected DDS files, with names of original 2DB files, without extension.
    Names of original 2DB files (full paths) can be stored in temporary list, and will be used in conversion proccess DDS->2DB, after convertion - this list will be cleaned.

    And I will try to sew your libraries in my exe file :) Can I do it? (ILMerge helps me)
    On output I will have a one exe file :)

    :)

    Coming soon... beta 2.
     
    #14 Knyazev, Oct 18, 2011
    Last edited by Knyazev: Oct 18, 2011
  14. Djey

    Djey Well-Known Member

    Messages:
    2,331
    Location:
    Eden Games' Homeland
    Sure, but you'll have to include this in the readme file for public release :


    (Fesersoft already merged in DjeFramework-1)

    that's all !
     
    #15 Djey, Oct 18, 2011
    Last edited by Djey: Oct 18, 2011
  15. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Well :)

    Public release will be not soon :)
    maybe after beta-testing #2, maybe after beta-testing #3, I don't know. :)

    Soon I'll start the beta-testing #2 of 2DB->DDS->2DB Converter :)
     
  16. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Now it's time for beta-testing #2 ;-)
    I sent a PM for the first beta-testers with link to new version of my tool with instructions :)

    Now, tool used "new" method of conversion 2DB files to DDS (with "keep original header" option)
    Thanks to reventon09 and Djey for the big help :)

    Comparing in HEX-editor:
    [​IMG]
    In game: (other car)
    [​IMG]
    * damaged brakelight texture :D
     
  17. Djey

    Djey Well-Known Member

    Messages:
    2,331
    Location:
    Eden Games' Homeland
    sooooooo good, mate :D
     
  18. Reventón09

    Reventón09 "Relax"

    Messages:
    2,066
    Location:
    Torino
    Hi mate,
    When I select a file .2DB the program don't convert it but replace my original texture .2DB
    Here a pic:

    -- OLD IMAGE REMOVED (imageshack) --

    Have you some idea?
     
    #19 Reventón09, Oct 19, 2011
    Last edited by Diablo: Apr 3, 2018
  19. Knyazev

    Knyazev Banned!

    Messages:
    156
    Location:
    Russia, Kaliningrad
    Thanks. :)

    Problem with extension.
    At you .2DB (Upper)
    Try ".2db" (Lower) extension, and will be work)

    Fixed! (see your PM)
     
    #20 Knyazev, Oct 19, 2011
    Last edited by Knyazev: Oct 20, 2011

Share This Page

  • About Us

    Started back in 2007, our community has been around for a good while and throughout all this time our core focus has been to provide a fun and laid back place for the discussion of driving and racing games and gaming in general, along with freqent automotive and motorsport related chat too. So, no matter what style of player you are, from arcade thrills to hardcore sim-racer or free roam explorer to circuit hot lapper, if it's about driving or racing in some form then we're up for talking about it. And if you are a keen photo moder, virtual photographer, video creator or streamer, then feel free to share those too. Cheers!
  • Support our community!

    Running and maintaining a community like this is hard work, especially when it's done by a bunch of idiots! And so, if you enjoy visiting here and would like to help us out. We would really appreciate it! Thanks.

    Feed the duck!