Solved Moonhawks skins, issue with front fascia

Discussion in 'Mod Support' started by lumbud84, May 27, 2023.

  1. lumbud84

    lumbud84
    Expand Collapse

    Joined:
    Apr 19, 2016
    Messages:
    322
    Currently working on a skin pack that spans across multiple vehicles but right now I'm trying to work on the Moonhawk. I'm currently running into an issue where the front end of the skin will not appear unless the "1976-1978 Front Fascia" part is selected:
    upload_2023-5-26_22-5-52.png

    What do I need to do in order for the front end to work properly on both parts?
    [Note: I am using the Skin Helper mod for the materials.json and moonhawk.jbeam files.]
     
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,413
    For whatever reason this one fascia uses a different material than the rest of the car. Check how the vanilla skins deal with it, you need a second material.
     
    • Like Like x 1
  3. lumbud84

    lumbud84
    Expand Collapse

    Joined:
    Apr 19, 2016
    Messages:
    322
    Thank you for the advice! It took a while but I finally got it to work properly! :>
    ----------
    If anyone else stumbles across this thread and has the same issue as me, here's the fix for it
    If you're using the Skin Helper mod, go to the moonhawk folder and open the 'materials.json' file with your preferred text/code editor, then insert the following code to the file:
    upload_2023-5-27_13-46-18.png
    Then replace "SKINNAME" with your skin's filename as you normally would!
    (i would recommend opening the image in a new tab so you can see it much larger)
     
  4. lumbud84

    lumbud84
    Expand Collapse

    Joined:
    Apr 19, 2016
    Messages:
    322
    Setting this thread to unsolved again because there's a slight issue that I'm not quite sure how to tackle.
    upload_2023-6-5_2-13-33.png
    The "No Texture" decal can faintly be seen on the front of the two 1973-75 Front Fascia options, and it can only be seen when light is reflecting off it.
    I have a feeling something needs to be changed in the materials.jbeam file, but I don't know what and I don't even know how to begin troubleshooting this...
     
  5. porterrobinson

    porterrobinson
    Expand Collapse
    Banned

    Joined:
    Sep 3, 2022
    Messages:
    370
    it's going to be in the json, i want to say it's gonna be the metallic map. no texture means that the directory and filename given can't be found.
     
    • Like Like x 1
  6. lumbud84

    lumbud84
    Expand Collapse

    Joined:
    Apr 19, 2016
    Messages:
    322
    Okay, I found the source of the issue, it's the clear coat map, since "moonhawk_nosecone_alt_cc" doesn't exist in the game's files. However, I don't know what to change it to. I tried changing it to "moonhawk_main_cc" for the nosecone_alt material and while it does make the "No Texture" thing go away, it adds a bunch of lines in its place that are arguably more noticeable than the "No Texture" thing. How can I properly fix this?
     
  7. porterrobinson

    porterrobinson
    Expand Collapse
    Banned

    Joined:
    Sep 3, 2022
    Messages:
    370
    the default mapping for the alt nosecone is
    Code:
            "clearCoatMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_c.data.png",
    give that a try

    here's the whole material section so you can more easily reference other parts of it if need be
    Code:
      "moonhawk_nosecone_alt.skin.specialstripesalt" : {
        "name" : "moonhawk_nosecone_alt.skin.specialstripesalt",
        "mapTo" : "moonhawk_nosecone_alt.skin.specialstripesalt",
        "class" : "Material",
        "Stages": [
          {
            "ambientOcclusionMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_ao.data.png",
            "baseColorMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_b.color.png",
            "metallicMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_m.data.png",
            "metallicFactor": 1,
            "roughnessFactor": 1,
            "normalMap": "vehicles/moonhawk/moonhawk_nosecone_alt_n.dds",
            "roughnessMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_r.data.png",
            "useAnisotropic": true
          },
          {
            "ambientOcclusionMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_ao.data.png",
            "useAnisotropic": true,
            "colorPaletteMapUseUV": 1,
            "instanceDiffuse": true,
            "clearCoatFactor": 1,
            "clearCoatRoughnessFactor":1,
            "metallicFactor": 1,
            "clearCoatMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_c.data.png",
            "normalMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_n.dds",
            "opacityMap": "/vehicles/moonhawk/moonhawk_nosecone_alt_c.data.png",
            "colorPaletteMap": "vehicles/moonhawk/moonhawk_skin_specialstripes_uv1.dds"
          },
          {},
          {}
        ],
        "activeLayers": 2,
        "dynamicCubemap": true,
        "materialTag0": "beamng",
        "materialTag1": "vehicle",
        "order_simset": 0,
        "version": 1.5
      },
     
    • Like Like x 1
  8. lumbud84

    lumbud84
    Expand Collapse

    Joined:
    Apr 19, 2016
    Messages:
    322
    Perfect! That suggestion fixed it! Thank you :>
     
    • Like Like x 1
  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