Solved how can i add materials with to the the "main.materials" file?

Discussion in 'Mod Support' started by Emil11001100, Aug 6, 2022.

  1. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    so ive been working on this ford transit (probably never going to release because its a meshslap)
    and have set the uv in blender but not the materials in the "main.materials.json" file because all the tutorials dont show it they only show the "Materials.cs" file

    upload_2022-8-6_23-44-39.png upload_2022-8-6_23-44-39.png
    these are some pics of it ingame

    pictures of the uv (im using the pickup_d file)
    upload_2022-8-6_23-44-55.png

    i would like for someone to help

    as i said itll probably never release im just making it for myself!
     
    #1 Emil11001100, Aug 6, 2022
    Last edited: Aug 7, 2022
  2. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    i really need help
     
  3. Turbo49>

    Turbo49>
    Expand Collapse

    Joined:
    Apr 1, 2021
    Messages:
    3,109
    Just copy the materials from the pickup to your mod
     
  4. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    ok i will try that!
    --- Post updated ---
    should i rename it or anything?
     
  5. Turbo49>

    Turbo49>
    Expand Collapse

    Joined:
    Apr 1, 2021
    Messages:
    3,109
    Nah it should be fine
     
  6. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    --- Post updated ---
    should i like change so it maps to the mod

    or i could change the uv in blender to the van uv and put the van materials back
     

    Attached Files:

    • upload_2022-8-7_15-20-3.png
  7. RyanCookie

    RyanCookie
    Expand Collapse

    Joined:
    Feb 23, 2019
    Messages:
    529
    check the material namings in blender file, if it has .001 or .002 then that may cause it, also just copying the main.materials.json file over from the pickup will work aswell if you kept the same pickup material names
     
  8. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    i will rename the materials now!
    --- Post updated ---
    btw which matetrial is chrome? is it grille?
    --- Post updated ---
    i could just rename it "gavril_lights" as the headlight material is
    --- Post updated ---
    how can i prevent the .001 fom happening
    --- Post updated ---
    i renamed them from "pickup.001" to "pickup1"
    --- Post updated ---
    works only for one part that has the name without a number

    upload_2022-8-7_16-16-43.png
    --- Post updated ---
    works only for one part that has the name without a number
    how can i fix that?
     
  9. RyanCookie

    RyanCookie
    Expand Collapse

    Joined:
    Feb 23, 2019
    Messages:
    529
    1. for the chrome material name, check the naming in the pickup dae.

    2. .001 happens because the place that you are copying a part to already has the same material as the mesh tht you are copying

    3. just keep the name as pickup dont change it to pickup1 because the material.json still has the material named as pickup

    4. you just fix the .001 by just going to the materials tab and pressing that circle thing next to the material name and then choosing the material that has no .001 or .002 at the end of it
    upload_2022-8-7_18-38-20.png
     
  10. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    ok thanks!
    --- Post updated ---
    omg! it works!
    upload_2022-8-7_18-7-24.png
    thank you so much! you are the best!!
    --- Post updated ---
    now i can fix my other mods too! :)
     
  11. RyanCookie

    RyanCookie
    Expand Collapse

    Joined:
    Feb 23, 2019
    Messages:
    529
    Np! Im glad that i could help
     
  12. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    btw how can i change the color of the taillights because they are always white and not red
    (the material of the taillights is pickup_taillightglass_R)
    --- Post updated ---
    and i changed it to red in blender
    --- Post updated ---
    picture of my other mod:
    upload_2022-8-7_18-41-11.png
    as you can see its white

    its not a good mod and its just for my self (im not releasing it)
     
  13. RyanCookie

    RyanCookie
    Expand Collapse

    Joined:
    Feb 23, 2019
    Messages:
    529
    Maybe try changing the material to the actual taillight textures aswell as positioning the uv in blender to where the lights would light up , also just changing the color of it in blender wont help because the game depends on actual textures
    --- Post updated ---
    Also you would probably need to assign those materials to the glowmap in the car's jbeam, i dont know how to really explain. Try to google about it and look at some car's jbeam files as a refrence
     
  14. Emil11001100

    Emil11001100
    Expand Collapse

    Joined:
    May 10, 2021
    Messages:
    190
    ok i will do that
    --- Post updated ---
    i finally found the uv of the light colors upload_2022-8-7_21-52-13.png
    --- Post updated ---
    textures are set but its still white ingame
    upload_2022-8-7_22-14-30.png upload_2022-8-7_22-15-16.png
     
  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