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 system not working

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by ThreeDTech21, May 19, 2016.

  1. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    Somehow my skin system is broken, I double checked everything and the interior skin system still works but not the regular skin system.

    I added a few things to the materials file but I don't know what would conflict with the skin system like that.

    I even downloaded the old mod that works and copy pasted the skin system to the new mod and it still doesn't work. What in the materials file could conflict with the skin system??

    Here are the files

    Materials Skins
    Code:
    singleton Material("bus.skin.school")
    {
        mapTo = "bus.skin.school";
        diffuseMap[1] = "bus_letters.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";
    };
    
    singleton Material("bus.skin.derby")
    {
        mapTo = "bus.skin.derby";
        diffuseMap[1] = "derby_letters.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";
    };
    
    singleton Material("bus.skin.prison")
    {
        mapTo = "bus.skin.prison";
        diffuseMap[1] = "prison_letters.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";
    };
    Jbeam files
    Code:
    {
    "schoolbus": {
        "information":{
            "authors":"BeamNG",
            "name":"Gavril T-Series",
            "value":0,
        }
        "slotType" : "main",
        "slots": [
            ["type", "default", "description"]
            ["schoolbus_frame","schoolbus_frame_75", "Bus Frame"],
            ["paint_design","", "Lettering"],
            ["skin_interior","", "Interior Color"],
    
        ],
        "scalenodeWeight":1.02,
        "scalebeamSpring":0.80,
        "scalebeamDamp":0.80,
        "scalebeamDeform":1.0,
        "scalebeamStrength":1.0,
        "refNodes":[
            ["ref:", "back:", "left:", "up:", "leftCorner:", "rightCorner:"]
            ["f17r", "f18r", "f17l", "f7r", "f11l", "f11r"]
            ],
         "glowMap":{          
                //"schoolbus_runninglight":{"simpleFunction":{"lowhighbeam":0.49,"hazard":0.49}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
                "schoolbus_signal_L":{"simpleFunction":{"signal_L":0.49,"lowhighbeam":0.49}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
                "schoolbus_signal_R":{"simpleFunction":{"signal_R":0.49,"lowhighbeam":0.49}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
                "schoolbus_taillight":{"simpleFunction":{"brake":0.49,"lowhighbeam":0.49}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
                //"schoolbus_lowbeam":{"simpleFunction":{"lowbeam":0.49,"highbeam":0.49}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
                //"schoolbus_highbeam":{"simpleFunction":{"highbeam":0.6}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
                "schoolbus_reverselight":{"simpleFunction":{"reverse":0.6}, "off":"schoolbus_lights", "on":"schoolbus_lights_on", "on_intense":"schoolbus_lights_on_intense"},
              
                "van_signal_L":{"simpleFunction":{"signal_L":0.49,"parking":0.49,"lowhighbeam":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},
                "van_signal_R":{"simpleFunction":{"signal_R":0.49,"parking":0.49,"lowhighbeam":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},          
                "van_taillight_L":{"simpleFunction":{"signal_L":0.49,"brake":0.49,"lowhighbeam":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},
                "van_taillight_R":{"simpleFunction":{"signal_R":0.49,"brake":0.49,"lowhighbeam":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},              
                "van_taillight":{"simpleFunction":{"lowhighbeam":0.49,"parking":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},
                //"van_chmsl":{"simpleFunction":{"brake":0.6}, "off":"van_lights", "on":"van_lights_on_intense", "on_intense":"van_lights_on_intense"},
                //"van_headlight":{"simpleFunction":{"lowbeam":0.49,"highbeam":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},
                "van_reverselight":{"simpleFunction":{"reverse":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},
                "van_runninglight":{"simpleFunction":{"lowhighbeam":0.49,"parking":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_l3ights_on_intense"},
                "van_runningbrakelight":{"simpleFunction":{"lowhighbeam":0.49,"parking":0.49,"brake":0.49}, "off":"van_lights", "on":"van_lights_on", "on_intense":"van_lights_on_intense"},
                }
        "camerasInternal":[
            ["x", "y", "z", "fov", "id1:", "id2:", "id3:", "id4:", "id5:", "id6:"],
            {"nodeWeight":2},
            {"selfCollision":false}
            {"collision":false}
            {"beamSpring":100000,"beamDamp":500},
            //fender cam
            //[-1.9, -1.5, 0.65, 75, "f4r","f4l","f6r","f14r","f14l","f16r"],
    
            {"nodeWeight":5},
            {"beamSpring":100000,"beamDamp":1000},
          
            //HOOD
            [-0.0021, -2.83869, 1.99038, 75 "bb5","bb3","bb0","bb13","bb14","bb1", {"cockpitCamera":false},]
          
            //DRIVER CAM
            [0.57426, -1.67285, 2.231, 75 "bb21","bb18","bb23","bb2","bb7","bb0", {"cockpitCamera":true},],
                  
            //FRONT SEAT
            [-0.663, -0.077, 2.143, 65 "bb37","bb40","bb26","bb23","bb76","bb55"]
          
            //MIIDLE SEAT
            [0.665, 2.457, 2.234, 65 "bb79","bb75","bb65","bb60","bb93","bb88"]
          
            //REAR SEAT
            [-0.715, 6.987, 2.234, 65 "bb113","bb107","bb121","bb127","bb139","bb144"]
          
            //front suspension debug
            [0.0, -1.13, 0.35, 65  "f16l","f16r","f6r","f6l","f14l","f14r"]
          
            //REAR SIDE
            [-1.72, 7.96, 2.34, 85 "bb133","bb132","bb142","bb145","bb123","bb128"]
          
            //REAR REAR
            [0.0, 8.56706, 3.66753, 85 "bb130","bb131","bb132","bb138","bb140","bb142"]
    
        ],
        "nodes": [
             ["id", "posX", "posY", "posZ"],
             {"selfCollision":false}
             {"collision":true}
        ],
        "beams": [
              ["id1:", "id2:"],
        ],
        "triangles": [
                ["id1:","id2:","id3:"],
                {"groundModel":"metal"},
                {"dragCoef":12},
        ],
      
        },
    "bus_skin_school": {
        "information":{
            "authors":"BeamNG",
            "name":"District School Lettering",
            "value":100,
        }
        "slotType" : "paint_design",
        "globalSkin" : "school",
    },
    "bus_skin_derby": {
        "information":{
            "authors":"BeamNG",
            "name":"Destruction Derby Lettering",
            "value":100,
        }
        "slotType" : "paint_design",
        "globalSkin" : "derby",
      
    },
    "bus_skin_prison": {
        "information":{
            "authors":"BeamNG",
            "name":"Prison Bus Lettering",
            "value":100,
        }
        "slotType" : "paint_design",
        "globalSkin" : "prison",
    
      },
    "bus_skin_interior_grey": {
        "information":{
            "authors":"BeamNG",
            "name":"Prison Grey",
            "value":50,
        },
        "slotType" : "skin_interior",
        "skinName" : "grey",
      },
    
    "bus_skin_interior_blue": {
        "information":{
            "authors":"BeamNG",
            "name":"College Blue",
            "value":50,
        },
        "slotType" : "skin_interior",
        "skinName" : "blue",
      },
      
    }
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,697
    What exactly happens?
    What the console says?
     
  3. ThreeDTech21

    ThreeDTech21
    Expand Collapse

    Joined:
    Sep 27, 2013
    Messages:
    1,616
    EDIT: Fixed, The issue was the naming of the base material, I overlooked the fact the naming scheme must match. My base material should have been named "bus" but it was named "bus_yellow" this caused the skin "bus.skin.prison" to be broken because it is not named "bus_yellow.skin.prison" cheers!
     

    Attached Files:

    • after part.PNG
    #3 ThreeDTech21, May 19, 2016
    Last edited: May 19, 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