rF2_GMT_Tool

Discussion in 'Track Modding' started by Nuno Lourenço, Oct 3, 2015.

  1. Nuno Lourenço

    Nuno Lourenço Registered

    Joined:
    Oct 19, 2010
    Messages:
    593
    Likes Received:
    65
    Hello guys.

    I would like to share with you a little tool created by my brother Tiago Lourenço. When we are editing tracks and the scene file manually sometimes we have more GMT files on GMT folder than we really need and this tool its exactly to that. You open the GMT folder, then your *.scn and for the last your new GMT folder to output only the files that have entries in *.scn file. The files are copied and not exported to keep the original 3ds max settings.

    [​IMG]

    [​IMG]

    Its a very small tool that save me a lot of time because I don't want to open *.scn file in 3dsimed to export new GMT files.

    Note: Make sure you have the last the .net framework installed.

    Download: here

    Happy modding

    ;)
     
    Last edited by a moderator: Oct 3, 2015
  2. Hazi

    Hazi Registered

    Joined:
    Jan 15, 2012
    Messages:
    917
    Likes Received:
    146
    THX
     
  3. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    Awesome work this will be a great tool. If you can somehow extend it to textures then your brother is a god. Thanks for sharing.

    Sent from my GT-I9505 using Tapatalk
     
  4. Nuno Lourenço

    Nuno Lourenço Registered

    Joined:
    Oct 19, 2010
    Messages:
    593
    Likes Received:
    65
    I'll ask him about that. But to do that job right now I'm using 3dsimed. we can open the track and export(Copy) the textures of the object that are open.
     
  5. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169

    If you have all track in 3dsMAX can use my tool "gMaterialTool"


    Nice tool nuno good job!
     
  6. R Soul

    R Soul Registered

    Joined:
    Oct 6, 2010
    Messages:
    125
    Likes Received:
    41
    Searcing the file for textures is quite possible. Store the file's contents as a string, then use regular expressions to find all matches for the pattern 'any number of word characters', '.', and each possible extension (dds, png, jpg and so on). Before deleting a texture you need to check that it's not being used by an object that is used on your track. PM me if you need more info.
     
  7. MaD_King

    MaD_King Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,827
    Likes Received:
    611
    Is it working (or can work) with a .gen file for cars for example?
     
  8. Kristoff Rand

    Kristoff Rand Registered

    Joined:
    Dec 23, 2011
    Messages:
    1,055
    Likes Received:
    10
    schweeeet
     
  9. Nuno Lourenço

    Nuno Lourenço Registered

    Joined:
    Oct 19, 2010
    Messages:
    593
    Likes Received:
    65
    I'll talk with my brother about that but at least the *.gen idea must be very easy to implement.
     
  10. Tiago Lourenço

    Tiago Lourenço Registered

    Joined:
    Nov 16, 2012
    Messages:
    30
    Likes Received:
    0
    It is a possible way.

    As soon as possible I'll take a look into that.

    Thank you for the suggestion.

    With a few modifications on the code and it will work just as fine.

    I'll also do it as soon as possible.


    Thank you. ;)
     
  11. R Soul

    R Soul Registered

    Joined:
    Oct 6, 2010
    Messages:
    125
    Likes Received:
    41
    This may already be obvious, but I'll mention it to prevent problems. Loop through the used objects first, and store their textures in a list, then loop through the unused objects and only delete textures that aren't in the list.
     
  12. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    3,999
    Likes Received:
    2,873
    If you use gen files, don't forget the Upgrades files, if upgrades, using different gmt, are available. ;)
     
  13. MaD_King

    MaD_King Registered

    Joined:
    Oct 5, 2010
    Messages:
    1,827
    Likes Received:
    611
    Thank you guys !!!
     
  14. Tiago Lourenço

    Tiago Lourenço Registered

    Joined:
    Nov 16, 2012
    Messages:
    30
    Likes Received:
    0
    Even though some things are still a pixel out of their position, here is a small update. ;)

    [​IMG]
     
  15. Butters

    Butters Registered

    Joined:
    May 20, 2011
    Messages:
    134
    Likes Received:
    0
    Loving it nice work. :)

    Sent from my GT-I9505 using Tapatalk
     
  16. Mario Morais

    Mario Morais Registered

    Joined:
    Oct 26, 2010
    Messages:
    1,465
    Likes Received:
    169
    Very good Tiago! Maybe need another "outputfolder" for textures. :)
     
  17. Nuno Lourenço

    Nuno Lourenço Registered

    Joined:
    Oct 19, 2010
    Messages:
    593
    Likes Received:
    65
    Nah... The quality bar is raised much higher than that :p
     
  18. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,361
    Likes Received:
    2,511
    This practicing with some private investment, and still have not much knowledge. I go very slowly because I do not speak English well at all and I find this documentation in English. Anyway thank you very much Nuno.

    regards, Corti. ;)
     
  19. Nuno Lourenço

    Nuno Lourenço Registered

    Joined:
    Oct 19, 2010
    Messages:
    593
    Likes Received:
    65
    Maybe we can help in Spaniguese (Spanish + Portuguese) :p
     
  20. Corti

    Corti Registered

    Joined:
    Sep 29, 2014
    Messages:
    1,361
    Likes Received:
    2,511
    Thx. Obrigado.
     

Share This Page