1. Game not starting lately?
    Fixed in 0.19.4.2
    More information available here

    Dismiss Notice
  2. Intel iGPU (6xx series) crashes
    Fixed drivers available!
    Instructions here

    Dismiss Notice

Help with a glass skin mod

Discussion in 'Content Creation' started by potwor12, Jun 29, 2020.

  1. potwor12

    potwor12
    Expand Collapse

    Joined:
    Sep 27, 2017
    Messages:
    83
    Hello,
    Before I start I'd like to say that I'm a complete and utter noob at any mods more serious than a license plate.
    Anyway I've been trying to make a simple glass skin mod that just adds a little sticker to the Covet's rear window, but whenever I select it the game loads for a moment and just crashes. :(
    It's most likely a programming problem, but I'm not sure... might also be me being a complete idiot :p
    I originally tried doing it using the tutorial on the wiki, but it's.. well.. outdated to say the least.
    The mod is in the zip file down below.
     

    Attached Files:

    #1 potwor12, Jun 29, 2020
    Last edited: Jun 30, 2020
  2. Sithhy™

    Sithhy™
    Expand Collapse

    Joined:
    Apr 5, 2017
    Messages:
    2,454
    Do you maybe miss a square bracket somewhere? That's usually the cause
     
  3. potwor12

    potwor12
    Expand Collapse

    Joined:
    Sep 27, 2017
    Messages:
    83
    Nope, all brackets are closed.
    I also probably should add that I made an error packing the zip, I'll upload a new one now.
    --- Post updated ---
    UPDATE: I did some small changes to the code.. game still just crashes out though. No idea why, everything is as it should be I think..
     
  4. potwor12

    potwor12
    Expand Collapse

    Joined:
    Sep 27, 2017
    Messages:
    83
  5. _Diamond_Coal_

    _Diamond_Coal_
    Expand Collapse

    Joined:
    Apr 5, 2019
    Messages:
    349
    You have materials.pc file instead of materials.cs file
     
  6. potwor12

    potwor12
    Expand Collapse

    Joined:
    Sep 27, 2017
    Messages:
    83
    Thanks! Sorry for being an absolute idiot lmao
    --- Post updated ---
    Still broken after fixing the Jbeam and converting the materials to json... dammit
    --- Post updated ---
    Here's the code for the JBeam and Json
    Code:
    {
    "pienjisticker": {
         "information":{
        "authors":"potwor12",
        "name":"Pienji Backlight Sticker",
        "value": 15
         },
         "slotType" : "paint_design"
         "globalskin" : "pienjisticker"
    }
    }
    Code:
    {
      "hatch_glass.skin.pienjisticker": {
        "name": "hatch_glass.skin.pienjisticker",
        "class": "Material",
        "persistentId": "69",
        "Stages": [{
            "colorMap": "vehicles/hatch/hatch_glass_d.dds",
            "diffuseColor": [1, 1.5, 1.5, 1],
            "normalMap": "vehicles/common/null_n.dds",
            "opacityMap": "vehicles/hatch/hatch_glass_d.dds",
            "pixelSpecular": true,
            "reflectivityMap": "vehicles/common/glass_base.dds",
            "specularMap": "vehicles/common/null.dds",
            "specularPower": 128,
            "useAnisotropic": true
          },
          {
            "colorMap": "vehicles/hatch/hatch_glass_da.dds",
            "diffuseColor": [0.5, 0.5, 0.5, 0.75]
          },
          {
            "colorMap": "vehicles/hatch/pienjisticker/hatch_glass_d_pienji.dds"
          }
        ],
        "alphaRef": 0,
        "castShadows": false,
        "dynamicCubemap": true,
        "mapTo": "hatch_glass.skin.pienjisticker",
        "materialTag0": "beamng",
        "materialTag1": "vehicle",
        "translucent": true
      }
    }
     

    Attached Files:

  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