Unsolved Glass skin doesn't work

Discussion in 'Mod Support' started by slntbob_, Sep 29, 2016.

  1. slntbob_

    slntbob_
    Expand Collapse

    Joined:
    Jan 14, 2013
    Messages:
    29
    I am currently following the Glass skin tutorial to make a skin for my ETK I-Series mod.

    I'm able to select the skin in the part selector...

    but somehow the connection between the globalSkin and my material.cs doesn't work. The game doesn't even try to load the .dds-files specified in the material.cs as far as I can see.
     

    Attached Files:

  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685


    You made two errors.

    1. No ".."

    Wrong

    Code:
    singleton Material(etki_glass.skin.etki_scrapeworks)
    Correct
    Code:
    singleton Material("etki_glass.skin.etki_scrapeworks")

    2. globalSkin doesn't match the actual skin

    globalSkin in .Jbeam : etki_skin_scrapeworks
    globalSkin in Materials.cs : etki_scrapeworks
    (notice the _skin_ part)

    Change the globalSkin in the .Jbeam to etki_scrapeworks and you are good to go.
     
    • Like Like x 1
  3. synsol

    synsol
    Expand Collapse
    QA Lead
    BeamNG Team

    Joined:
    Aug 4, 2013
    Messages:
    1,471


    To make it work , you need some modifications :
    • you "global_skin" need to have the exact same name that the kin name on materials
    Code:
    "globalSkin": "etki_scrapeworks",
    Code:
     mapTo = "etki_glass.skin_glass.etki_scrapeworks";
    • also you need to put your singletonMaterials between " " :
    Code:
    singleton Material("etki_glass.skin_glass.etki_scrapeworks")
    • and on the materials.cs, you should name your skin for glass : skin_glass :
    Code:
    singleton Material("etki_glass.skin_glass.etki_scrapeworks")
    {
        mapTo = "etki_glass.skin_glass.etki_scrapeworks";
        reflectivityMap[0] = "vehicles/common/glass_base.dds";
        diffuseMap[0] = "vehicles/etki/etki_skin_scrapeworks/etki_glass_d_scrapeworks.dds";
        opacityMap[0] = "vehicles/etki/etki_skin_scrapeworks/etki_glass_d_scrapeworks.dds";
        diffuseMap[1] = "vehicles/etki/etki_glass_da.dds";
        specularMap[0] = "vehicles/common/null.dds";
        normalMap[0] = "vehicles/common/null_n.dds";
        diffuseColor[1] = "0.5 0.5 0.5 0.75";
        specularPower[0] = "128";
        pixelSpecular[0] = "1";
        diffuseColor[0] = "1 1 1 1";
        useAnisotropic[0] = "1";
        castShadows = "0";
        translucent = "1";
        alphaTest = "0";
        alphaRef = "0";
        dynamicCubemap = true;
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
     

    Attached Files:

    • Like Like x 1
  4. synsol

    synsol
    Expand Collapse
    QA Lead
    BeamNG Team

    Joined:
    Aug 4, 2013
    Messages:
    1,471
    • Like Like x 4
  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