I made the haybale a roofbar load, but then the matrass has no texture?

Discussion in 'Content Creation' started by Bling_T, Apr 23, 2021.

  1. Bling_T

    Bling_T
    Expand Collapse

    Joined:
    Aug 13, 2020
    Messages:
    10
    I hadn't done any .jbeam editing, so I figured a rectangle with 8 nodes and a couple of beams would be a good start.
    It works, but for some reason the mattress loses it's texture. Not just the roofbar_mattress, but the spawnable (prop) mattress loses it's default texture as well, while the blue stripes and floral texture still work for it.
    To fix this, I copied the matress textures from common.zip/vehicles/common/roofbar_loads to the roofbar_haybale folder and added the material.json entry to the haybale one.
    This works, but I get the impression that it is not the correct way to do it? Anyone have any advise for this?
     

    Attached Files:

    • beamng_roofbar_haybales.png
    #1 Bling_T, Apr 23, 2021
    Last edited: Apr 23, 2021
  2. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,061
    Send files so we can see what is wrong
     
  3. Bling_T

    Bling_T
    Expand Collapse

    Joined:
    Aug 13, 2020
    Messages:
    10
    Here you go, I've had this in the mods/unpacked folder, but I've removed the backup files from this zip
    This works as it is now, but find it strange that the haybale works but the mattress (which is in the game files and I haven't touched it) doesn't work unless I add its textures to this file.

    Edit:
    Managed to fix this issue: it's shouldn't be called main.material.json, but rather <modname>.material.json
    Renamed that file, deleted all the mattress stuff from the haybale and it all still works.
     
    #3 Bling_T, Apr 23, 2021
    Last edited: Apr 24, 2021
  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