Solved having trouble making a skin selectable for a modded car

Discussion in 'Mod Support' started by Iro, Aug 1, 2016.

  1. Iro

    Iro
    Expand Collapse
    Banned

    Joined:
    Sep 20, 2015
    Messages:
    2,049
    Hi, again. When i select a skin i get the same car
    Empty:
    Screenshot (210).png
    Race skin selected:
    Screenshot (209).png
    The file is as much as i can show without a private message.
    any help is very appreciated.
     

    Attached Files:

  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,695
    This happens when you usually have two parts that have the same name.

    Make sure you have no other parts named 'mercedes_skin_race'.
     
  3. Iro

    Iro
    Expand Collapse
    Banned

    Joined:
    Sep 20, 2015
    Messages:
    2,049
    Nope, None
     
  4. synsol

    synsol
    Expand Collapse
    QA Lead
    BeamNG Team

    Joined:
    Aug 4, 2013
    Messages:
    1,472
    You can send us the files here if you wan't ;)
     
  5. Iro

    Iro
    Expand Collapse
    Banned

    Joined:
    Sep 20, 2015
    Messages:
    2,049
    I sent the files
     
  6. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    Hey,

    after having a closer look at your files I got it (kind of) working.




    The skin system uses existing materials. Unfortunately there was no mercedes material which you could have used to use the skin system. The material is called 'aa' so you have to redirect your modified material to this one.


    Code:
    singleton Material("aa.skin.race")
    {
        mapTo = "aa.skin.race";
        overlayMap[2] = "vehicles/mercedes/race/race.png";
        diffuseMap[2] = "vehicles/mercedes/texi.png";
        specularColor[1] = "0.02 0.02 0.02 1";
        normalMap[2] = "vehicles/mercedes/texi.png";
        diffuseMap[1] = "vehicles/mercedes/texi.png";
        specularColor[1] = "0.02 0.02 0.02 1";
        normalMap[1] = "vehicles/mercedes/texi.png";
        diffuseMap[0] = "vehicles/common/null.dds";
        specularMap[0] = "vehicles/common/null.dds";
        normalMap[0] = "vehicles/mercedes/texi.png";
        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";
    };

    So instead of 'mercedes.skin.race' use 'aa.skin.race'.
     
  7. Iro

    Iro
    Expand Collapse
    Banned

    Joined:
    Sep 20, 2015
    Messages:
    2,049
    its not what I was expecting but that looks pretty cool, Thanks!
     
  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