Solved Another materials.cs problem

Discussion in 'Mod Support' started by MillenniumJade™, Apr 12, 2018.

  1. MillenniumJade™

    MillenniumJade™
    Expand Collapse

    Joined:
    Sep 22, 2017
    Messages:
    71
    ok im back with more problem making skin, i already frustated with the materials.cs. like HOW THE HELL I'LL FIX THIS THING!!!, pls halp
    Pessima:
    skin slot
    {
    "pessima_skin_project02": {
    "information":{
    "authors":"MillenniumJade",
    "name":"Project02",
    "value":1300,
    },
    "slotType" : "paint_design",
    "skinName" : "project02",
    },
    }
    }

    materials.cs
    singleton Material("pessima.skin.project02")
    {
    mapTo = "pessima.skin.project02";
    overlayMap[2] = "vehicles/pessima/vmpessima/project02/pessima_skin_project02.dds";
    diffuseMap[2] = "vehicles/pessima/pessima_c_alt.dds";
    specularMap[2] = "vehicles/pessima/pessima_s_alt.dds";
    normalMap[2] = "vehicles/pessima/pessima_n.dds";
    diffuseMap[1] = "vehicles/pessima/pessima_d_alt.dds";
    specularMap[1] = "vehicles/pessima/pessima_s_alt.dds";
    normalMap[1] = "vehicles/pessima/pessima_n.dds";
    diffuseMap[0] = "vehicles/common/null.dds";
    specularMap[0] = "vehicles/pessima/pessima_s_alt.dds";
    normalMap[0] = "vehicles/pessima/pessima_n.dds";
    specularPower[0] = "128";
    pixelSpecular[0] = "1";
    specularPower[1] = "32";
    pixelSpecular[1] = "1";
    specularPower[2] = "128";
    pixelSpecular[2] = "1";
    diffuseColor[0] = "1 1 1 1";
    diffuseColor[1] = "1 1 1 1";
    diffuseColor[2] = "1 1 1 1";
    useAnisotropic[0] = "1";
    useAnisotropic[1] = "1";
    useAnisotropic[2] = "1";
    castShadows = "1";
    translucent = "1";
    translucentBlendOp = "None";
    alphaTest = "0";
    alphaRef = "0";
    dynamicCubemap = true;
    instanceDiffuse[2] = true;
    materialTag0 = "beamng"; materialTag1 = "vehicle";
    };

    SBR4:
    skin slot
    {
    "pessima_skin_project02": {
    "information":{
    "authors":"MillenniumJade",
    "name":"Project02",
    "value":1300,
    },
    "slotType" : "paint_design",
    "skinName" : "project02",
    },
    }
    }

    materials.cs
    singleton Material("sbr.skin.sbr_skin_projectai")
    {
    mapTo = "sbr.skin.sbr_skin_projectai";
    overlayMap[2] = "vehicles/sbr/vmsbr/project a.i/sbr.skin.sbr_skin_projectai";
    diffuseMap[2] = "vehicles/sbr/sbr_c.dds";
    specularMap[2] = "vehicles/sbr/sbr_s.dds";
    normalMap[2] = "vehicles/sbr/sbr_n.dds";
    diffuseMap[1] = "vehicles/sbr/sbr_d.dds";
    specularMap[1] = "vehicles/sbr/sbr_s.dds";
    normalMap[1] = "vehicles/sbr/sbr_n.dds"c
    diffuseMap[0] = "vehicles/common/null.dds";
    specularMap[0] = "vehicles/common/null.dds";
    normalMap[0] = "vehicles/sbr/sbr_n.dds";
    specularPower[0] = "128";
    pixelSpecular[0] = "1";
    specularPower[1] = "32";
    pixelSpecular[1] = "1";
    specularPower[2] = "128";
    pixelSpecular[2] = "1";
    specularColor[0] = "1 1 1 1";
    specularColor[1] = "1 1 1 1";
    specularColor[2] = "1 1 1 1";
    diffuseColor[0] = "1 1 1 1";
    diffuseColor[1] = "1 1 1 1";
    diffuseColor[2] = "1 1 1 1";
    useAnisotropic[0] = "1";
    useAnisotropic[1] = "1";
    useAnisotropic[2] = "1";
    castShadows = "1";
    translucent = "1";
    translucentBlendOp = "None";
    alphaTest = "0";
    alphaRef = "0";
    dynamicCubemap = true;
    instanceDiffuse[2] = true;
    materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
     
  2. FLyInG 2 YoUr SoUL

    FLyInG 2 YoUr SoUL
    Expand Collapse

    Joined:
    May 31, 2016
    Messages:
    5,111
    What's the matter with them?

    EDIT - Got it:

    skinName in the jbeam code is not correct. Should be globalSkin.

    Also, mismatched globalSkin and material name in the second one (SBR4).
     
    #2 FLyInG 2 YoUr SoUL, Apr 12, 2018
    Last edited: Apr 12, 2018
  3. MillenniumJade™

    MillenniumJade™
    Expand Collapse

    Joined:
    Sep 22, 2017
    Messages:
    71
    i realize that i put the wrong jbeam file
    sbr jbeam file:

    {
    "sbr.skin.sbr_skin_projectai": {
    "information":{
    "authors":"MillenniumJade",
    "name":"Project A.I",
    "value":1300,
    },
    "slotType" : "paint_design",
    "globalSkin" : "sbr.skin.sbr_skin_projectai",
    },
    }
    }
    --- Post updated ---
    btw still doesnt work for me tho for the pessima, @Nadeox1 PLEASE HELP!!!!
     
  4. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,585
    globalSkin should be "sbr_skin_projectai"
     
  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