Unsolved Color material with the ingame menu

Discussion in 'Mod Support' started by karost, Dec 2, 2017.

  1. karost

    karost
    Expand Collapse

    Joined:
    Jul 13, 2016
    Messages:
    124
    My question is how do I color the material with the ingame color menu?

    Currently this is my code:

    Code:
    singleton Material(rowler_hatch_interior)
    {
       mapTo = "hatch_interior";
       diffuseColor[0] = "0.1588 0.1588 0.1588 1";
       specular[0] = "Black";
       specularPower[0] = "50";
       translucentBlendOp = "None";
    };
    Thank you for your response.
    Have a nice day :)
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    There is an item slot which can be used to change interior colors exactly like skin.
    Your material have missing texture, them the material will be matt

    Material

    Code:
    singleton Material(hatch_interior.skin_interior.rowler)
    {
       mapTo = "hatch_interior.skin_interior.rowler";
        reflectivityMap[1] = "vehicles/hatch/hatch_interior_s.dds";
        diffuseMap[1] = "vehicles/hatch/hatch_interior_d.dds";
        specularMap[1] = "vehicles/hatch/hatch_interior_s.dds";
        normalMap[1] = "vehicles/hatch/hatch_interior_n.dds";
        reflectivityMap[0] = "vehicles/hatch/hatch_interior_s.dds";
        diffuseMap[0] = "vehicles/hatch/hatch_interior_d.dds";
        specularMap[0] = "vehicles/hatch/hatch_interior_s.dds";
        normalMap[0] = "vehicles/hatch/hatch_interior_n.dds";
       diffuseColor[0] = "0.1588 0.1588 0.1588 1";
       specular[0] = "Black";
       specularPower[0] = "50";
       translucentBlendOp = "None";
    };


    Jbeam

    Code:
    {
    "hatch_skin_interior_rowler": {
        "information":{
            "authors":"karost",
            "name":"Rowler Interior",
            "value":50,
        },
        "slotType" : "skin_interior",
        "skinName" : "rowler",
      },
    }
     
    • Informative Informative x 1
  3. karost

    karost
    Expand Collapse

    Joined:
    Jul 13, 2016
    Messages:
    124
    Hmm, thanks!
    I also have another problem.
    This rowler is a new vehicle that I've been working on. I've put in an engine the rpm is stuck. In the main jbeam I put the "controller" part.
    Code:
    {
    "rowler": {
        "information":{
            "authors":"BeamNG",
            "name":"Ibishu Rowler",
        },
    
        "slotType" : "main",
    
        "slots": [
            ["type", "default", "description"]
            //bodywork
            ["rowler_body","rowler_body", "Body",{"coreSlot":true}],
            ["paint_design", "", "Paint Design"],
            ["licenseplate_design_2_1","","License Plate Design"],
            ["rowler_mod", "", "Additional Modification"],
            ["soundscape", "soundscape_3", "Soundscape"]
        ],
    
        "scaledragCoef":1.0,
    
        "controller": [
            ["fileName"],
            ["vehicleController", {}],
        ],
    
        "glowMap":{
    (It continues down)

    But still the console say's that it can't find where the controller is.


    I have the "rowler" folder placed under "Documents\BeamNG.drive\vehicles\"
     
  4. thomatoes50

    thomatoes50
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 31, 2013
    Messages:
    722
    one of the engines should define some values like this


    Code:
        "vehicleController": {
            "lowShiftDownRPM":[0,0,0,2500,2900,3200,3400,3400]
            "lowShiftUpRPM":3750,
        },
     
  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