1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

skin slot not loading

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, Mar 2, 2016.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    I need the material on my car to switch, one material is black and the other material is body colored with an instance diffuse, I have done skin slots before but this one has me stumped, it looks like I have everything setup right but the skin slot wont load, here is the code:

    Slot
    Code:
    },
    "stripe_skin_color": {
        "information":{
            "authors":"BeamNG",
            "name":"Body Colored Stripe",
            "value":100,
        }
        "slotType" : "stripe_design",
        "globalSkin" : "color",    
    Materials file code

    Code:
    singleton Material("stripe.skin.color")
    {
       mapTo = "stripe.skin.color";
        diffuseMap[1] = "bus_null_c.png";   
        specularMap[1] = "bus_s.png";
        normalMap[1] = "bus_n.png";
        diffuseMap[0] = "null.dds";
        specularMap[0] = "null.dds";
        normalMap[0] = "bus_n.png";
        specularPower[0] = "128";
        pixelSpecular[0] = "1";
        specularPower[1] = "32";
        pixelSpecular[1] = "1";
        diffuseColor[0] = "1 1 1 1";
        diffuseColor[1] = "1 1 1 1";
        useAnisotropic[0] = "1";
        useAnisotropic[1] = "1";
        castShadows = "1";
        translucent = "1";
        translucentBlendOp = "None";
        alphaTest = "0";
        alphaRef = "0";
        dynamicCubemap = true; //cubemap = "BNG_Sky_02_cubemap";
        instanceDiffuse[0] = true;
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };

    EDIT

    I put the skin slot under an existing slot type and it works.. is there an issue with having more than 1 skin slot?
     
    #1 ThreeDTech21, Mar 2, 2016
    Last edited: Mar 2, 2016
  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