1. Game not starting lately?
    Fixed in 0.19.4.2
    More information available here

    Dismiss Notice
  2. Intel iGPU (6xx series) crashes
    Fixed drivers available!
    Instructions here

    Dismiss Notice

Experimental Materials Converter 0.1.2 for BeamNG 0.19

Discussion in 'Utilities and programming' started by Car_Killer, May 29, 2020.

  1. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,185
    Materials .cs to .json Converter
    Hello. I created some converter for materials. It supports both vehicles and levels materials.​
    It generates new json materials for your specified mods.
    Depending on how much materials your mod have your game may hang or even crash!

    Not recommended to use when you have lots of mods or unclean userpath.
    Please note it’s not OFFICIAL converter. This will come in future surely!

    For advanced users only!

    How to generate new materials for old mods?
    1. Make sure you using at least BeamNG 0.17.
    2. Create file convert_material.txt in root of BeamNG documents folder. In this file specify path to your level or vehicle. (you can specify only one path for now)
      upload_2020-5-29_11-37-27.png
    3. Run game.
    4. Press ~ (tilde) to run BeamNG console.
    5. Input extensions.load("util_convertitself") in console and press enter. After process game will close.
      upload_2020-5-29_12-8-49.png
    6. Copy the generated .json files from your /Documents/BeamNG.Drive/vehicles back to your source files and remove all material.cs files, remove cache of your mod.
    7. Done
    Huge thanks to @thomatoes50 who helped me to clean code.
    Installation: As every mod, put zip in mods folder.

    If you like my work support me here!
     

    Attached Files:

    #1 Car_Killer, May 29, 2020
    Last edited: May 29, 2020
    • Like Like x 22
    • Staff Pick Staff Pick x 1
  2. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    613
    Very cool! Nice job!
     
    • Like Like x 1
    • Agree Agree x 1
  3. Ryo13silvia

    Ryo13silvia
    Expand Collapse

    Joined:
    Dec 24, 2019
    Messages:
    128
    Not the hero we deserved, but the hero we needed.
     
    • Like Like x 2
    • Agree Agree x 1
  4. Zonda

    Zonda
    Expand Collapse

    Joined:
    Jan 17, 2020
    Messages:
    97
    Car Killer and thomatoes50, this is awesome!
    I can finally convert over my old material codes and properties, so I can get things to look better in json so this will actually help in my Tipo.
    Thanks thomatoes50 and Car Killer, this certainly is a helpful tool.
     
    • Like Like x 1
  5. RadeS

    RadeS
    Expand Collapse

    Joined:
    Aug 6, 2019
    Messages:
    274
    I tried that,and failed...
    screenshot_2020-05-29_16-11-59.png
     

    Attached Files:

    • screenshot_2020-05-29_16-12-08.png
    • screenshot_2020-05-29_16-12-32.png
  6. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    425
    Does this take the materials and uv's and stuff you have in blender and convert them to beamng? I hope it does because that would save hours of work.
     
  7. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,489
    Wouldn't it be easier for everyone if you were to get the currently selected vehicle and use the .vehicleDirectory on it? Instead of requiring a text file
     
  8. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,185
    You don't need to load car, just use that in menu :p
    You can't hot swap cs to json so it's pointless to wait for loading everything.
    I think it's fastest way to do it :)


    No. As I said in first post. It only converts your current materials.cs file to new material.json introduced in BeamNG 0.17.
     
  9. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    425
    Ah that's still pretty useful! Hopefully, eventually someone will make a blender plugin that just converts all materials in blender to beamng .json materials with all the proper different files.
     
  10. Ezo

    Ezo
    Expand Collapse

    Joined:
    Jan 11, 2016
    Messages:
    1,049
    Bluebuck Kitsune huh I wonder what is :rolleyes:

    On topic now, nice job bro, now we can have our stuff updated to an supported format finally
     
    • Agree Agree x 1
  11. TrackpadUser

    TrackpadUser
    Expand Collapse

    Joined:
    Aug 24, 2019
    Messages:
    196
    A basic guide to making materials with textures is defintively something I would find interesting, however considering there are new "best practices" being developed, as shown by Nadeox's cube in the dev media thread, I don't have an issue with waiting a little.

    If you want very basic materials to start (single color textures), hit me up on discord, I can show you how I did things for my mods. It's not the best looking materials ever, but it's a bunch of materials that show up in game :p
     
    • Like Like x 1
  12. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    425
    Yes please! I can't find anyone willing to texture my brand new supercar so I'm gonna need to learn by myself. add me (P_enta#4123)
     
  13. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,185
    Most likely you did something different than in instructions. If you can't manage it to work hit me on DM here :)
     
  14. TrackpadUser

    TrackpadUser
    Expand Collapse

    Joined:
    Aug 24, 2019
    Messages:
    196
    For a big TL:DR, making materials =/= texturing.

    A material consists of multiple textures, and the ez/dodgy way to do things that can still work is to use something like 16x16 single color textures.

    Proper texturing has a lot of ressources online already, and a lot applies to beamNG.

    I'm also not very experienced with textures :D For now I've only figured out AO baking and the magic of using random noise for stuff.
     
  15. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    425
    Honestly, i just need someone to teach me how to assign a leather texture to a certain part of a door. And make it work in beamng.drive. OR i just need someone to texture the whole car for me

    The dumb thing about this community is that there's like 3 people willing to do either of those.
     
  16. TrackpadUser

    TrackpadUser
    Expand Collapse

    Joined:
    Aug 24, 2019
    Messages:
    196
    Yeah, it's something I've already talked about, there aren't that many people who have decent knowledge when it comes to making good textures, since it's one of the later things that people learn about when getting a hang of modeling.

    And people often have their own projects, which is why they might not have the time to help everyone with what is, at the end, quite a decent amount of work.
     
  17. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    425
    Yeah really. I don't know how to do beamng textures, No one is willing to do them for me, no one is willing to teach me, and I couldn't learn from the wiki it's just terrible. This is what i don't like about this community.
     
  18. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,489
    This is the basics of 3D modeling and any UV mapping and texturing tutorial should do.
     
    • Agree Agree x 1
  19. P_enta

    P_enta
    Expand Collapse

    Joined:
    Jan 11, 2020
    Messages:
    425
    I know how to texture in blender but i dont know how to transfer the textures into beamng.drive.

    And i can only texture the stuff as separate objects idk how to form all the textures i used into one file. that can be solved with a tutorial though.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice