Suspension Car Editor

Discussion in 'Car Modding' started by Leonardo1962, Mar 23, 2014.

  1. Leonardo1962

    Leonardo1962 Registered

    Joined:
    Feb 12, 2012
    Messages:
    196
    Likes Received:
    42
    Hi folks,

    I started modding rfactor2 cars.
    First I had to learn to understand and generate and all the needed files in function, and fileformat. That was so hard and time consumpting, that i decided to develop a tool to handle and test all the files, therfore i extended my windows 3D track editor.
    The ModDev - Mode was very helpful to make the first steps to learn and to get a car running.
    Building a car from scratch needs lot of work and time, therefore I started with conversions of cars. :confused:

    So i developed a 3D/2D suspension / CAR editor (see pictures)

    View attachment 12088 View attachment 12089 View attachment 12090
    (sorry for half german and half english button text). ;)


    Here is a little video update. You can see how to make a suspension work and to take use in GAME (ModDev).


    Small video shows getting startet and "compile" the first modDev vehicle.

    With this tool it is possible by one click to generate a new ready to run ModDev Car with all needed dummy files (inkl. rFm, HDV, Icons and gearbox engine data, ratios etc.). The only input is the name of the new Car -Mod (the first dummy files are small cylinder GMT files).

    After setting up ModDev files automatically I developed a modding tool (thanks to taufikp for the idea). I programmed a suspension geometry generator out of tire node data and suspension file (.pm) and wrote import and export filter to read, edit and write suspension file (F:E: lr_TIRE_MAX.GMT .pm and also the new: .ini). The only input is trackwidth, wheelBase and vehicle weight. All other inputs can be edited and varied or loaded from other cars. The dummy files are overwritten files by files to real functioning GMT files.

    With this editor a next mouse click calculates and generates automatically all suspension geometry files (direct as working rFactor2 GMT files) and writes them into ModDev vehicle path.

    Another mouse click calculates and generates all light and glow geometry files (also as rFactor2 GMT files) and writes them into ModDev vehicle path.

    Very important for me was the integration of good working wheel-design, tires physics an rims. I introduced a template path structure for all important template files, where i choose the tire geometry of the TGM Files, the rims and the textures for tire and rim. Each tire, rim will be created in realtime (about less than 10 seconds)
    The path nodes of physics TGM file is used to calculate the real shape of the tire. The material of twall and ttread and there geometry data are calculated individual for all lods (Max, high, med low ultra low) automatically and input into GEN files can be done automatically or manual.

    Of coarse all files have to be collected in a Package .rfcmp file and to be installed for use in the rFactor2 game. Today it was the first time to run through all this stuff and i got my first time a car running on a track out of modDev.

    There is a lot of work to do. Next steps will be to handle and extend the tools for car engine, cockpit GAUGES, TachometerNeedles etc. but i think i will manage that.

    The actual version has too much constant path structure, that works only at my own private path structure and the routines to set up the template and moddev structure arent finished yet. If the editor has reached a stable and usable userfriendly state may be i publish a version for download.

    This Version is a unfished beta preview. Please backup your files, before you use this tool.
    Update: Vers. 1.73


    Setup procedure will be explained with the upcomming Version.

    So I keep on working on my modding tool. For now i'm looking for permission to convert a existing rfactor or GT2 car to rfactor2 to test my editor.

    Have a nice racing

    Leonardo1962 :)
     
    Last edited by a moderator: Sep 24, 2016
    mantasisg likes this.
  2. clockit

    clockit Registered

    Joined:
    Oct 11, 2010
    Messages:
    126
    Likes Received:
    0
    I look forward to being able to try this.
     
  3. Raintyre

    Raintyre Registered

    Joined:
    Jul 28, 2013
    Messages:
    142
    Likes Received:
    79
    Great news! You should be rewarded for that :)
     
  4. Hazi

    Hazi Registered

    Joined:
    Jan 15, 2012
    Messages:
    761
    Likes Received:
    75
    Top!
    TIA
     
  5. philman

    philman Registered

    Joined:
    May 7, 2011
    Messages:
    324
    Likes Received:
    87
    Nice work.
     
  6. Emery

    Emery Registered

    Joined:
    Oct 24, 2010
    Messages:
    2,652
    Likes Received:
    1,295
    Well done!
     
  7. lordpantsington

    lordpantsington Registered

    Joined:
    Oct 5, 2010
    Messages:
    820
    Likes Received:
    62
    Looks very promising.
     
  8. JJStrack

    JJStrack Registered

    Joined:
    Dec 23, 2011
    Messages:
    469
    Likes Received:
    9
    Very nice idea.
    I think this will help many to get into modding rf2, because it shows you what has to be done and actually helps you do it :)
     
  9. MerlinC

    MerlinC Registered

    Joined:
    Nov 3, 2012
    Messages:
    282
    Likes Received:
    1
    Looks like that this is a tool a lot of people (modders) where waiting for? Any plans to provide a download link?


    Sent with Tapatalk
     
  10. alpha-bravo

    alpha-bravo Registered

    Joined:
    Dec 22, 2012
    Messages:
    1,379
    Likes Received:
    31
    great ! This is the tool on that I'm waiting :)
    It helps a mod dev beginner (like myself) in many way's to see what's going on inside rF2 when changing a value or how a file structure has to be and so on. I'm looking forward to your public version.

    Many thanks for creating and sharing such a usefull tool :)
     
  11. gagipro

    gagipro Registered

    Joined:
    Feb 26, 2013
    Messages:
    461
    Likes Received:
    0
    wow : the missing tool

    Congratulations Dude !!!
     
  12. LeStrat

    LeStrat Member

    Joined:
    Mar 17, 2013
    Messages:
    281
    Likes Received:
    144
    Amazing tool. This is what most of us need to get their mods working propperly.
     
    Last edited by a moderator: Mar 24, 2014
  13. Comante

    Comante Registered

    Joined:
    Nov 20, 2013
    Messages:
    1,008
    Likes Received:
    632
    This. IS. A-M-A-Z-I-N-G!
     
  14. I_Bellett

    I_Bellett Registered

    Joined:
    Jan 12, 2012
    Messages:
    131
    Likes Received:
    134
    wow. Amazing tool.
     
  15. Leonardo1962

    Leonardo1962 Registered

    Joined:
    Feb 12, 2012
    Messages:
    196
    Likes Received:
    42
    Hi folks,

    I continued to develop the suspension Car editor. :eek:

    Last thing, i did was to auto generate missing tire template files, for use in a own private template- path structure.
    The editor generates simple tire textures as Windows BMP Bitmaps and then convert them to DDS Files for use in the tire geomatry (GMT-file).
    I integrated the dds command-line converting tool of the nvDXT librarytool by nvidia see link. The editor asks for a path to nvdxt.exe.

    https://developer.nvidia.com/legacy-texture-tools




    To give you a first preview I did a short video for youtube.

    For those of you, who are interested in rFactor2 modding secrets, what the editor does, here some details:

    1) First the path in ModDev is extended and gets new paths like this
    C:\rFactor2\ModDev\Vehicles\MOD_Name
    |- MOD_NAME (all bitmaps (DDS) and all geometry- data (GMT))
    |- teams (all driver related files: Mod Icon, smIcon VEH file and all deliveries)


    2) To make the car selectable in Mod- Mode the editor adds MOD-file in rFm path like this:
    3 additional files are generated and stored in C:\rFactor2\ModDev\rFm.
    (all driver related files: Mod Icon, smIcon as DDS bitmap and the link to the vehicle)
    Mod_Name_manufacturerSMICON.DDS
    Mod_Name_manufacturerICON.DDS
    Mod_Name_manufacturer.rfm

    In rfm - path all 3 files are created as dummy files and contain all needed keywords to select and drive the car in Mod- Mode.
    (f.e Vehicle Filter = Mod_Company_Mod_Name) with a unique mod picture like Mod_Name_manufacturerICON.DDS


    3) After that, all necessary files are auto generated and copied into the correct path
    (like tire TGM files, the important geometry file Mod_Name.GEN, and the Mod_Name_Spinner.GEN, Mod_Name.HDV (changed from template XXX.hdv),
    gear rations (Mod_Name_Gears.INI), engine file (Mod_Name_engine.INI) and a lots of others, altogether more than 25 files.
    (f.e. F:\rFactor2\ModDev\Vehicles\Mod_Name\)

    4) Then, all driver related files: Mod Icon, smIcon VEH file and all deliveries are auto generated and copied to the team folder.
    > Tricky and very important is the vehicle file VEH file f.e. Mod_Name_23.VEH (23 is a arbitrary number of a car)
    it contains the entry of delivery name (DefaultLivery="Mod_Name_23.dds") and all other links to the important files of step 3
    (f.e. C:\rFactor2\ModDev\Vehicles\Mod_Name\teams)


    5) Next step is to generate and copy all bitmaps and GMT files files to the correct path
    > first the are cubes and dummy cylinders for private edit later on
    > the are not overwriten, if the already exists.
    (f.e. F:\rFactor2\ModDev\Vehicles\Mod_Name\Mod_Name\)

    6) To get the car running in Mod- Mode the editor adds and changes the SearchPath in GEN-file (Mod_Name.GEN) like this:

    SearchPath=<VEHDIR>
    SearchPath=Mod_Name
    SearchPath=<VEHDIR>Mod_Name\maps
    SearchPath=<VEHDIR>cmaps_maps
    SearchPath=Mod_Name\Teams
    SearchPath=<VEHDIR>Mod_Name\Teams
    SearchPath=Mod_Name\maps
    // MASFile=Mod_Name\Mod_Name_TEAMS.mas
    MASFile=Mod_Name\Mod_Name.mas
    MASFile=cmaps.mas

    7) To get an individual car, all files have to be edited, with own design and bitmaps.
    Some of them can be calculated, like the suspension files.
    > F.e there are 136 GMT files calculated and generated in the current version
    (disks, diskglow, all suspensions, tires, rims, calipers, for all wheels and in 2 to 4 Lods (Level of details).
    > the calculated tires and rims, have the determined geometry, size, rdyn, shader, material,
    and they are showing all the wished deflection, reflection, tread, bumpmaping, wear and friction in the impressive driving simulation of rFactor2 (mod-mode and also in game mode).

    The suspension geometry (links, bars) can be edited and prooved with realtime preview.


    I'm not far away to get this tool in beta version, so Im looking for interested modder as testing volunteers.
    If someone has time to test this tool and try to write a tutorial for it please let me know.


    have a nice driving
    Leonardo :)
     
    Last edited by a moderator: Feb 9, 2015
    mantasisg likes this.
  16. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    2,925
    Likes Received:
    271
    Impressive stuff... I hope this proves useful to the car modders out there!!
     
  17. Raintyre

    Raintyre Registered

    Joined:
    Jul 28, 2013
    Messages:
    142
    Likes Received:
    79
  18. lordpantsington

    lordpantsington Registered

    Joined:
    Oct 5, 2010
    Messages:
    820
    Likes Received:
    62
    Will it have generated curves for toe/camber change & Roll Center Migration?
     
  19. FlyPT

    FlyPT Registered

    Joined:
    Aug 3, 2012
    Messages:
    27
    Likes Received:
    6
    Congratulations! It as everything to be a reference.
     
  20. UnitedRacingDesign

    UnitedRacingDesign Registered

    Joined:
    Nov 24, 2010
    Messages:
    2,408
    Likes Received:
    938
    That looks great. I and some friends have cars in gtr2 released-dtm, supergt or fia gt. Interested to work on an of those with permission? Pm me than.
     

Share This Page