How to fix broken trees materials

Discussion in 'Content Creation' started by Grille, Apr 8, 2025.

  1. Grille

    Grille
    Expand Collapse

    Joined:
    Aug 17, 2019
    Messages:
    208
    This tutorial focuses mainly on missing textures and materials (orange trees).

    screenshot_2025-04-08_14-58-44.png

    I Hope this is somewhat comprehensible and useful ^^
    Feel free to ask if you have any questions.

    Also; We work directly with the level files here, so to fix a repo mod you use you will first have to unpack it.

    Why it happens
    If trees stop working on a map that’s usually because the map refers to files that no longer exist after a game update.

    That happens either because the map marker intentionally only referenced the models and textures to save file size, or because he copied the trees folder form another map but didn’t update the file paths.

    Finding the problem and files
    First you need to figure out which of these is the case, if the map maker intentionally just referenced the assets, the art folder should only contain main.materials.json and managedItemData.json files for trees.

    If they copied the assets, there should also be a lot of model and texture files.

    You potentially have to look around a bit, but usually materials and assets are placed in "/level/art/shapes/trees/" and managedItemData.json are placed in "/level/art/managed/"


    Ways to fix it
    - Update Materials
    (should always work, can only fix orange trees)
    You must copy over a current main.materials.json for each set of trees you find in art.

    As a example:
    If you find “...\broken_level\art\shapes\trees\trees_oak\main.materials.json”
    You must copy over a main.materials.json from a level that also uses this tree set.
    For trees_oak, this file will work:
    “…\BeamNG.drive\content\levels\east_coast_usa.zip\levels\east_coast_usa\art\shapes\trees\trees_oak\main.materials.json”

    - Fix Paths (works only if asset files are included, can potentially fix other problems too)
    Open tree main.materials.json files that contain tree materials in your text editor, (Best to use a code editor like vs-code for this)
    Check for paths that use files outside your level and change them to point to your level

    Example:
    "/levels/east_coast_usa/art/shapes/trees/trees_oak/t_moss_b.color.png"
    To
    "/levels/broken_level/art/shapes/trees/trees_oak/t_moss_b.color.png"

    Doing the same for managedItemData.json can fix “no mesh” errors and invisible trees.
     
    • Like Like x 2
  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