Solved how do i make a colorable car

Discussion in 'Mod Support' started by i.want.to.mod, Dec 13, 2019.

  1. i.want.to.mod

    i.want.to.mod
    Expand Collapse

    Joined:
    Jul 11, 2019
    Messages:
    195
    greetings! i am trying to make a mod but i have a small bump in the road. How do i make the car colorable for the new version? the newer version doesnt seem to be working. Any help would be greatly appreciated.
     
  2. Mario64iscool2

    Mario64iscool2
    Expand Collapse

    Joined:
    Mar 20, 2016
    Messages:
    124
    Make an image called car-name_c.dds and color it white where you want to be colorable. Leave all else transparent. It uses the same mapping as the diffuse map.
     
  3. i.want.to.mod

    i.want.to.mod
    Expand Collapse

    Joined:
    Jul 11, 2019
    Messages:
    195
    I know about the dds files. Sorry if that came off rude it was not intended to be so. Im just having issues with the materials.cs files.
     
  4. Mario64iscool2

    Mario64iscool2
    Expand Collapse

    Joined:
    Mar 20, 2016
    Messages:
    124
    I didn't take it as rudeness. In the materials.cs file, go to the main body material and add
    Code:
    colorMap[2] = xxx
    if I'm not mistaken. Good day.
     
  5. i.want.to.mod

    i.want.to.mod
    Expand Collapse

    Joined:
    Jul 11, 2019
    Messages:
    195
    cant find what you are talking about. I even tried to redo the file and now all i have is a car with a no texture and a no texture skin.
     

    Attached Files:

    • screenshot_2019-12-14_21-33-08.png
  6. Mario64iscool2

    Mario64iscool2
    Expand Collapse

    Joined:
    Mar 20, 2016
    Messages:
    124
    Possibly try
    Code:
    colorPaletteMap[2] = "texture";
     
    #6 Mario64iscool2, Dec 15, 2019
    Last edited: Dec 15, 2019
  7. burilkovdeni

    burilkovdeni
    Expand Collapse

    Joined:
    Aug 21, 2014
    Messages:
    1,167
    Example color texture from one of my mods.



    singleton Material(_1102_paint)
    {
    mapTo = "paint";
    diffuseMap[0] = "vehicles/common/null.dds";
    diffuseColor[0] = "1 1 1 1";
    diffuseColor[1] = "0.1 0.1 0.1 0.5";
    specularPower[0] = "16";
    specularPower[1] = "16";
    useAnisotropic[0] = "1";
    useAnisotropic[1] = "1";
    castShadows = "1";
    translucent = "1";
    translucentBlendOp = "None";
    alphaTest = "0";
    alphaRef = "0";
    dynamicCubemap = true;
    instanceDiffuse[2] = true;
    materialTag0 = "beamng";
    materialTag1 = "vehicle";
    colorMap[0] = "vehicles/common/null.dds";
    colorMap[1] = "vehicles/ZAZ_1102/1102_paint.png";
    colorMap[2] = "vehicles/ZAZ_1102/1102_c.dds";
    doubleSided = "0";
    };
     
  8. i.want.to.mod

    i.want.to.mod
    Expand Collapse

    Joined:
    Jul 11, 2019
    Messages:
    195
    Is this the new way for coding colorable textures?
    --- Post updated ---
    this worked thank you so much!
     
    • Like Like x 1
  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