1. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    Solutions and more information may already be available.

Editor refuses to save materials

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by DrMagnumWolf, May 16, 2020.

  1. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    I've been looking on the forum and searching, and this seems to be a problem that keeps on happening. Well, I can't seem to figure out why my editor refuses to save the materials I add or change. For instance, I create a "CliffRocks" to paint the map. Works like a charm. But when I close and re-open the game, wherever I used the "CliffRocks" material/texture it will have that orange texture "No Material". I've tried with the F11 classic editor and F10.

    I'm at a loss what to do here. I keep seeing a materials.cs file being mentioned in some solutions, but I assume that has changed to .json format, since I can't find any *.cs file out there. I've also made sure the name of the files, folders and inside each *.json have been changed.


    Thanks in advance for any help on this. I just started making a map in BeamNG and I'm not going to lie, I'm taking a beating!
     

    Attached Files:

    • 20200516183932_1.jpg
  2. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    I just did a test, no renaming, and all that, vanilla level(Cliffs) I got from the content folder. Pasted it, with its correct folder name in my documents level folder, and tried creating a new material. Saved it, quit the game, and reopened it.

    The result is the same. The material doesn't save. I checked the main.materials.json file in art/terrains and there are no new entries in there, from the new material I created.
     

    Attached Files:

    • 20200517133421_1.jpg
  3. Nadeox1

    Nadeox1
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,578
    Can you please specify the full path of the Json file you checked?
    Make sure you are checking the one in Userfolder/BeamNG.drive/levels/<yourLevel> (That's where anything you save in the editor goes)
    If you found the correct Json file, check the texture paths for that material and copy them here.

    The texture you used is located in the same path of your level, or it belongs to a different level?
     
    • Like Like x 1
  4. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    This is from the Cliffs level located at: C:\Users\MYUsername\Documents\BeamNG.drive\levels\Cliff\art\terrains

    Replaced my name with "myUsername" to avoid doxxing.

    Code:
    {
      "BeachSand-51011c0e-adbb-44f0-8f9e-6d4592296b43" : {
        "internalName" : "BeachSand",
        "class" : "TerrainMaterial",
        "persistentId" : "51011c0e-adbb-44f0-8f9e-6d4592296b43",
        "detailMap" : "levels/Cliff/art/terrains/Sand-01-D",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "normalMap" : "levels/Cliff/art/terrains/Sand-01-N"
      },
      "Concrete-1aaf954e-620a-42ad-87c0-4568b17844fa" : {
        "internalName" : "Concrete",
        "class" : "TerrainMaterial",
        "persistentId" : "1aaf954e-620a-42ad-87c0-4568b17844fa",
        "detailDistance" : 100,
        "detailMap" : "levels/Cliff/art/terrains/Concrete-03-diff",
        "diffuseMap" : "levels/Cliff/art/terrains/Overlay_01",
        "diffuseSize" : 20,
        "normalMap" : "levels/Cliff/art/terrains/Concrete-03-ddn"
      },
      "Concrete2-cefcf1da-9c10-4d6b-9ef8-58ef08033d3b" : {
        "internalName" : "Concrete2",
        "class" : "TerrainMaterial",
        "persistentId" : "cefcf1da-9c10-4d6b-9ef8-58ef08033d3b",
        "detailMap" : "levels/Cliff/art/terrains/Concrete-02-D",
        "detailSize" : 3,
        "diffuseMap" : "levels/Cliff/art/terrains/Overlay_01",
        "normalMap" : "levels/Cliff/art/terrains/Concrete-02-NH"
      },
      "Forest-09b976cd-a38c-432d-9836-d449b195b865" : {
        "internalName" : "Forest",
        "class" : "TerrainMaterial",
        "persistentId" : "09b976cd-a38c-432d-9836-d449b195b865",
        "detailMap" : "Grass-01-D",
        "diffuseMap" : "Grass-01-D",
        "normalMap" : "Grass-01-N"
      },
      "Forest-0ba8b440-e56b-440a-a1c1-7ae22562eea5" : {
        "internalName" : "Forest",
        "class" : "TerrainMaterial",
        "persistentId" : "0ba8b440-e56b-440a-a1c1-7ae22562eea5",
        "detailMap" : "Grass-01-D",
        "diffuseMap" : "Grass-01-D",
        "normalMap" : "Grass-01-N"
      },
      "Grass-83ff6b2a-5189-413a-b3c3-1c3fcc95a7e2" : {
        "internalName" : "Grass",
        "class" : "TerrainMaterial",
        "persistentId" : "83ff6b2a-5189-413a-b3c3-1c3fcc95a7e2",
        "detailMap" : "levels/Cliff/art/terrains/Grass-01-D",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 300,
        "macroMap" : "levels/Cliff/art/terrains/Overlay_Rock_05",
        "macroSize" : 40,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/Grass-01-N"
      },
      "Grass2-46ff9897-c93e-4db7-ad65-0721fd97ff67" : {
        "internalName" : "Grass2",
        "class" : "TerrainMaterial",
        "persistentId" : "46ff9897-c93e-4db7-ad65-0721fd97ff67",
        "detailDistance" : 200,
        "detailMap" : "levels/Cliff/art/terrains/grass-02-d",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 80,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/grass-02-n"
      },
      "Grass2-bb29db46-cc20-4ded-a2d3-3e32c7d6c206" : {
        "internalName" : "Grass2",
        "class" : "TerrainMaterial",
        "persistentId" : "bb29db46-cc20-4ded-a2d3-3e32c7d6c206",
        "detailDistance" : 200,
        "detailMap" : "levels/Cliff/art/terrains/grass-02-d",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 80,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/grass-02-n"
      },
      "Rock-9d667869-b746-431c-9c7f-1fb6b970373c" : {
        "internalName" : "Rock",
        "class" : "TerrainMaterial",
        "persistentId" : "9d667869-b746-431c-9c7f-1fb6b970373c",
        "detailDistance" : 250,
        "detailMap" : "levels/Cliff/art/terrains/Rock-05-D",
        "detailSize" : 12,
        "detailStrength" : 0.5,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 800,
        "macroMap" : "levels/Cliff/art/terrains/Overlay_Rock_05",
        "macroStrength" : 0.4000000059604645,
        "normalMap" : "levels/Cliff/art/terrains/Rock-05-N"
      },
      "Rock2-98a43a10-ee6b-4dd6-868e-ba3740af1c91" : {
        "internalName" : "Rock2",
        "class" : "TerrainMaterial",
        "persistentId" : "98a43a10-ee6b-4dd6-868e-ba3740af1c91",
        "detailDistance" : 300,
        "detailMap" : "levels/Cliff/art/terrains/Rock-04-D",
        "detailSize" : 12,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 501,
        "macroMap" : "levels/Cliff/art/terrains/Overlay_Rock_05",
        "macroSize" : 100,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/Rock-04-N"
      },
      "RockyDirt-073a43ce-c226-4816-9233-74d85ad140fc" : {
        "internalName" : "RockyDirt",
        "class" : "TerrainMaterial",
        "persistentId" : "073a43ce-c226-4816-9233-74d85ad140fc",
        "detailDistance" : 150,
        "detailMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "detailStrength" : 0.800000011920929,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 800,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 20,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/rockydirt-01-n"
      },
      "RockyDirt-4d8567c2-3119-42cb-b149-f20cba398163" : {
        "internalName" : "RockyDirt",
        "class" : "TerrainMaterial",
        "persistentId" : "4d8567c2-3119-42cb-b149-f20cba398163",
        "detailDistance" : 150,
        "detailMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "detailStrength" : 0.800000011920929,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 800,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 20,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/rockydirt-01-n"
      },
      "dirt_grass-36adc5eb-925a-4bb8-8a55-97d2f57681ef" : {
        "internalName" : "dirt_grass",
        "class" : "TerrainMaterial",
        "persistentId" : "36adc5eb-925a-4bb8-8a55-97d2f57681ef",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "dirt_grass_d",
        "diffuseMap" : "dirt_grass",
        "diffuseSize" : 200,
        "isManaged" : "1"
      },
      "forest_floor-d044af1f-5ca3-4695-98eb-b66103839c83" : {
        "internalName" : "forest_floor",
        "class" : "TerrainMaterial",
        "persistentId" : "d044af1f-5ca3-4695-98eb-b66103839c83",
        "detailMap" : "levels/Cliff/art/terrains/forest_floor_d",
        "detailSize" : 3,
        "diffuseMap" : "levels/Cliff/art/terrains/Overlay_forest_floor",
        "normalMap" : "levels/Cliff/art/terrains/forest_floor_n"
      },
      "grass1-4ff7b79f-4ea9-4bc3-a280-63eeef901502" : {
        "internalName" : "grass1",
        "class" : "TerrainMaterial",
        "persistentId" : "4ff7b79f-4ea9-4bc3-a280-63eeef901502",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailMap" : "grass1_d",
        "detailSize" : 10,
        "diffuseMap" : "grass1",
        "diffuseSize" : 200,
        "isManaged" : "1"
      },
      "grass1-dry-1890b0da-4767-4af1-8e14-9bc25706f909" : {
        "internalName" : "grass1-dry",
        "class" : "TerrainMaterial",
        "persistentId" : "1890b0da-4767-4af1-8e14-9bc25706f909",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "grass1-dry_d",
        "detailSize" : 10,
        "detailStrength" : 2,
        "diffuseMap" : "grass1-dry",
        "diffuseSize" : 250,
        "isManaged" : "1"
      },
      "rocktest-916073b7-4f01-4f95-9a9f-c17c5b1447dc" : {
        "internalName" : "rocktest",
        "class" : "TerrainMaterial",
        "persistentId" : "916073b7-4f01-4f95-9a9f-c17c5b1447dc",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "rocktest_d",
        "detailSize" : 10,
        "diffuseMap" : "rocktest",
        "diffuseSize" : 400,
        "isManaged" : "1"
      },
      "sand-989ab832-bd78-438b-9dc1-880c1efd11f1" : {
        "internalName" : "sand",
        "class" : "TerrainMaterial",
        "persistentId" : "989ab832-bd78-438b-9dc1-880c1efd11f1",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "sand_d",
        "detailSize" : 10,
        "diffuseMap" : "sand",
        "diffuseSize" : 200,
        "isManaged" : "1"
      }
    }
    

    This is from my level Desert_Mesa from terrains folder:
    C:\Users\MyUsername\Documents\BeamNG.drive\levels\Desert_Mesa\art\terrains

    Code:
    {
      "BeachSand-53659627-ac50-4812-ab11-19b5872dd312" : {
        "internalName" : "BeachSand",
        "class" : "TerrainMaterial",
        "persistentId" : "53659627-ac50-4812-ab11-19b5872dd312",
        "detailMap" : "levels/Desert_Mesa/art/terrains/Sand-01-D",
        "detailStrength" : 0.699999988079071,
        "diffuseMap" : "levels/Desert_Mesa/art/terrains/Overlay_Sand-01",
        "diffuseSize" : 2048,
        "macroMap" : "levels/Desert_Mesa/art/terrains/macro_rockydirt",
        "macroSize" : 50,
        "macroStrength" : 0.1500000059604645,
        "normalMap" : "levels/Desert_Mesa/art/terrains/Sand-01-N"
      },
      "Grass-c2267fe8-dfcc-419a-9227-bbee09484f00" : {
        "internalName" : "Grass",
        "class" : "TerrainMaterial",
        "persistentId" : "c2267fe8-dfcc-419a-9227-bbee09484f00",
        "detailMap" : "levels/Desert_Mesa/art/terrains/Grass-01-D",
        "detailSize" : 3,
        "diffuseMap" : "levels/Desert_Mesa/art/terrains/Overlay_Grass-01",
        "diffuseSize" : 150,
        "macroDistance" : 350,
        "macroMap" : "levels/Desert_Mesa/art/terrains/Macro_grass",
        "macroSize" : 60,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Desert_Mesa/art/terrains/Grass-01-N"
      }
    }
    

    And this is for my level, still, but from the terrain folder(singular):
    C:\Users\MyUsername\Documents\BeamNG.drive\levels\Desert_Mesa\art\terrain

    Code:
    {
      "Asphalt-9b287577-d795-446d-9738-383a74b79efb": {
        "internalName": "Asphalt",
        "class": "TerrainMaterial",
        "persistentId": "9b287577-d795-446d-9738-383a74b79efb",
        "detailDistance": 200,
        "detailMap": "levels/Desert_Mesa/art/terrain/hr_concrete_blocks_d",
        "detailSize": 3,
        "detailStrength": 0.400000006,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/GM_terrain_overlay",
        "diffuseSize": 1,
        "macroDistance": 1200,
        "macroMap": "levels/Desert_Mesa/art/terrain/GM_terrain_macro",
        "macroSize": 40,
        "macroStrength": 0.400000006,
        "normalMap": "levels/Desert_Mesa/art/terrain/hr_concrete_blocks_n"
      },
      "BeachSand-4f548b5d-2be6-4511-bbb9-1a644d258296": {
        "internalName": "BeachSand",
        "class": "TerrainMaterial",
        "persistentId": "4f548b5d-2be6-4511-bbb9-1a644d258296",
        "detailMap": "levels/Desert_Mesa/art/terrain/Sand-01-D",
        "detailStrength": 0.699999988,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_Sand-01",
        "diffuseSize": 2048,
        "macroMap": "levels/Desert_Mesa/art/terrain/macro_rockydirt",
        "macroSize": 50,
        "macroStrength": 0.1500000059604645,
        "normalMap": "levels/Desert_Mesa/art/terrain/Sand-01-N"
      },
      "Grass-c8126a4a-b84e-428d-ab27-e8f0680818e6": {
        "internalName": "Grass",
        "class": "TerrainMaterial",
        "persistentId": "c8126a4a-b84e-428d-ab27-e8f0680818e6",
        "detailMap": "levels/Desert_Mesa/art/terrain/Grass-01-D",
        "detailSize": 3,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_Grass-01",
        "diffuseSize": 150,
        "macroDistance": 350,
        "macroMap": "levels/Desert_Mesa/art/terrain/Macro_grass",
        "macroSize": 60,
        "macroStrength": 0.5,
        "normalMap": "levels/Desert_Mesa/art/terrain/Grass-01-N"
      },
      "RockyDirt-1c152b3d-6ad8-4a76-ac18-867f3611aa96": {
        "internalName": "RockyDirt",
        "class": "TerrainMaterial",
        "persistentId": "1c152b3d-6ad8-4a76-ac18-867f3611aa96",
        "detailDistance": 150,
        "detailMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-D",
        "detailStrength": 0.5,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_RockyDirt",
        "diffuseSize": 100,
        "macroMap": "levels/Desert_Mesa/art/terrain/mud_1_d",
        "macroSize": 50,
        "macroStrength": 0.300000012,
        "normalMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-N"
      },
      "RockyDirt1-1c152b3d-6ad8-4a76-ac18-867f3611aa96": {
        "internalName": "RockyDirt1",
        "class": "TerrainMaterial",
        "persistentId": "1c152b3d-6ad8-4a76-ac18-867f3611aa96",
        "detailDistance": 150,
        "detailMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-D",
        "detailStrength": 0.5,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_RockyDirt",
        "diffuseSize": 100,
        "macroMap": "levels/Desert_Mesa/art/terrain/mud_1_d",
        "macroSize": 50,
        "macroStrength": 0.300000012,
        "normalMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-N"
      }
    }

    EDIT: Forgot to add this:
    The textures are all located in art/terrains or art/terrain folder. For the Cliff map, that I used as a test(default), they are all inside art/terrain, in the C:\Users\MyUsername\Documents\BeamNG.drive\levels in their respective folders, either Desert_Mesa, or Cliff.

    upload_2020-5-17_14-30-47.png

    upload_2020-5-17_14-31-9.png

    upload_2020-5-17_14-31-30.png
     
    #4 DrMagnumWolf, May 17, 2020
    Last edited: May 17, 2020
  5. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    Just tried again, using some other information I found in the forums, to copy and paste whatever *.cs file, or in this case, *.json files found in the cache folder(my documents) back into the main directory of the level. Sadly that was a no go, since no files were created.

    Oddly enough, if I create a mesh road, and assign a texture to it, the file does seem to save and it shows up after I quit the editor. This is also true for decals, sky, clouds, water colors and more.
     
  6. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    More tests:

    After the today's patch the problem still persists. But, if I create a new material using the provided templates(?) or samples, and then save, the edit will stay there after I close and open the game again.
     

    Attached Files:

    • 20200519135550_1.jpg
    • 20200519135448_1.jpg
  7. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    Copying the materials of some other level also doesn't work, it made it worse.

    I'm running out of ideas. :( (maybe it is the GUID?)


    Code:
    {
      "Asphalt-9b287577-d795-446d-9738-383a74b79efb": {
        "internalName": "Asphalt",
        "class": "TerrainMaterial",
        "persistentId": "9b287577-d795-446d-9738-383a74b79efb",
        "detailDistance": 200,
        "detailMap": "levels/Desert_Mesa/art/terrain/hr_concrete_blocks_d",
        "detailSize": 3,
        "detailStrength": 0.400000006,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/GM_terrain_overlay",
        "diffuseSize": 1,
        "macroDistance": 1200,
        "macroMap": "levels/Desert_Mesa/art/terrain/GM_terrain_macro",
        "macroSize": 40,
        "macroStrength": 0.400000006,
        "normalMap": "levels/Desert_Mesa/art/terrain/hr_concrete_blocks_n"
      },
      "BeachSand-4f548b5d-2be6-4511-bbb9-1a644d258296": {
        "internalName": "BeachSand",
        "class": "TerrainMaterial",
        "persistentId": "4f548b5d-2be6-4511-bbb9-1a644d258296",
        "detailMap": "levels/Desert_Mesa/art/terrain/Sand-01-D",
        "detailStrength": 0.699999988,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_Sand-01",
        "diffuseSize": 2048,
        "macroMap": "levels/Desert_Mesa/art/terrain/macro_rockydirt",
        "macroSize": 50,
        "macroStrength": 0.1500000059604645,
        "normalMap": "levels/Desert_Mesa/art/terrain/Sand-01-N"
      },
      "Grass-c8126a4a-b84e-428d-ab27-e8f0680818e6": {
        "internalName": "Grass",
        "class": "TerrainMaterial",
        "persistentId": "c8126a4a-b84e-428d-ab27-e8f0680818e6",
        "detailMap": "levels/Desert_Mesa/art/terrain/Grass-01-D",
        "detailSize": 3,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_Grass-01",
        "diffuseSize": 150,
        "macroDistance": 350,
        "macroMap": "levels/Desert_Mesa/art/terrain/Macro_grass",
        "macroSize": 60,
        "macroStrength": 0.5,
        "normalMap": "levels/Desert_Mesa/art/terrain/Grass-01-N"
      },
      "RockyDirt-1c152b3d-6ad8-4a76-ac18-867f3611aa96": {
        "internalName": "RockyDirt",
        "class": "TerrainMaterial",
        "persistentId": "1c152b3d-6ad8-4a76-ac18-867f3611aa96",
        "detailDistance": 150,
        "detailMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-D",
        "detailStrength": 0.5,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_RockyDirt",
        "diffuseSize": 100,
        "macroMap": "levels/Desert_Mesa/art/terrain/mud_1_d",
        "macroSize": 50,
        "macroStrength": 0.300000012,
        "normalMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-N"
      },
      "RockyDirt1-1c152b3d-6ad8-4a76-ac18-867f3611aa96": {
        "internalName": "RockyDirt1",
        "class": "TerrainMaterial",
        "persistentId": "1c152b3d-6ad8-4a76-ac18-867f3611aa96",
        "detailDistance": 150,
        "detailMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-D",
        "detailStrength": 0.5,
        "diffuseMap": "levels/Desert_Mesa/art/terrain/Overlay_RockyDirt",
        "diffuseSize": 100,
        "macroMap": "levels/Desert_Mesa/art/terrain/mud_1_d",
        "macroSize": 50,
        "macroStrength": 0.300000012,
        "normalMap": "levels/Desert_Mesa/art/terrains/RockyDirt-01-N"
      }
      {
      "BeachSand-51011c0e-adbb-44f0-8f9e-6d4592296b43" : {
        "internalName" : "BeachSand",
        "class" : "TerrainMaterial",
        "persistentId" : "51011c0e-adbb-44f0-8f9e-6d4592296b43",
        "detailMap" : "levels/Cliff/art/terrains/Sand-01-D",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "normalMap" : "levels/Cliff/art/terrains/Sand-01-N"
      },
      "Concrete-1aaf954e-620a-42ad-87c0-4568b17844fa" : {
        "internalName" : "Concrete",
        "class" : "TerrainMaterial",
        "persistentId" : "1aaf954e-620a-42ad-87c0-4568b17844fa",
        "detailDistance" : 100,
        "detailMap" : "levels/Cliff/art/terrains/Concrete-03-diff",
        "diffuseMap" : "levels/Cliff/art/terrains/Overlay_01",
        "diffuseSize" : 20,
        "normalMap" : "levels/Cliff/art/terrains/Concrete-03-ddn"
      },
      "Concrete2-cefcf1da-9c10-4d6b-9ef8-58ef08033d3b" : {
        "internalName" : "Concrete2",
        "class" : "TerrainMaterial",
        "persistentId" : "cefcf1da-9c10-4d6b-9ef8-58ef08033d3b",
        "detailMap" : "levels/Cliff/art/terrains/Concrete-02-D",
        "detailSize" : 3,
        "diffuseMap" : "levels/Cliff/art/terrains/Overlay_01",
        "normalMap" : "levels/Cliff/art/terrains/Concrete-02-NH"
      },
      "Forest-09b976cd-a38c-432d-9836-d449b195b865" : {
        "internalName" : "Forest",
        "class" : "TerrainMaterial",
        "persistentId" : "09b976cd-a38c-432d-9836-d449b195b865",
        "detailMap" : "Grass-01-D",
        "diffuseMap" : "Grass-01-D",
        "normalMap" : "Grass-01-N"
      },
      "Forest-0ba8b440-e56b-440a-a1c1-7ae22562eea5" : {
        "internalName" : "Forest",
        "class" : "TerrainMaterial",
        "persistentId" : "0ba8b440-e56b-440a-a1c1-7ae22562eea5",
        "detailMap" : "Grass-01-D",
        "diffuseMap" : "Grass-01-D",
        "normalMap" : "Grass-01-N"
      },
      "Grass-83ff6b2a-5189-413a-b3c3-1c3fcc95a7e2" : {
        "internalName" : "Grass",
        "class" : "TerrainMaterial",
        "persistentId" : "83ff6b2a-5189-413a-b3c3-1c3fcc95a7e2",
        "detailMap" : "levels/Cliff/art/terrains/Grass-01-D",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 300,
        "macroMap" : "levels/Cliff/art/terrains/Overlay_Rock_05",
        "macroSize" : 40,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/Grass-01-N"
      },
      "Grass2-46ff9897-c93e-4db7-ad65-0721fd97ff67" : {
        "internalName" : "Grass2",
        "class" : "TerrainMaterial",
        "persistentId" : "46ff9897-c93e-4db7-ad65-0721fd97ff67",
        "detailDistance" : 200,
        "detailMap" : "levels/Cliff/art/terrains/grass-02-d",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 80,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/grass-02-n"
      },
      "Grass2-bb29db46-cc20-4ded-a2d3-3e32c7d6c206" : {
        "internalName" : "Grass2",
        "class" : "TerrainMaterial",
        "persistentId" : "bb29db46-cc20-4ded-a2d3-3e32c7d6c206",
        "detailDistance" : 200,
        "detailMap" : "levels/Cliff/art/terrains/grass-02-d",
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 80,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/grass-02-n"
      },
      "Rock-9d667869-b746-431c-9c7f-1fb6b970373c" : {
        "internalName" : "Rock",
        "class" : "TerrainMaterial",
        "persistentId" : "9d667869-b746-431c-9c7f-1fb6b970373c",
        "detailDistance" : 250,
        "detailMap" : "levels/Cliff/art/terrains/Rock-05-D",
        "detailSize" : 12,
        "detailStrength" : 0.5,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 800,
        "macroMap" : "levels/Cliff/art/terrains/Overlay_Rock_05",
        "macroStrength" : 0.4000000059604645,
        "normalMap" : "levels/Cliff/art/terrains/Rock-05-N"
      },
      "Rock2-98a43a10-ee6b-4dd6-868e-ba3740af1c91" : {
        "internalName" : "Rock2",
        "class" : "TerrainMaterial",
        "persistentId" : "98a43a10-ee6b-4dd6-868e-ba3740af1c91",
        "detailDistance" : 300,
        "detailMap" : "levels/Cliff/art/terrains/Rock-04-D",
        "detailSize" : 12,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 501,
        "macroMap" : "levels/Cliff/art/terrains/Overlay_Rock_05",
        "macroSize" : 100,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/Rock-04-N"
      },
      "RockyDirt-073a43ce-c226-4816-9233-74d85ad140fc" : {
        "internalName" : "RockyDirt",
        "class" : "TerrainMaterial",
        "persistentId" : "073a43ce-c226-4816-9233-74d85ad140fc",
        "detailDistance" : 150,
        "detailMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "detailStrength" : 0.800000011920929,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 800,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 20,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/rockydirt-01-n"
      },
      "RockyDirt-4d8567c2-3119-42cb-b149-f20cba398163" : {
        "internalName" : "RockyDirt",
        "class" : "TerrainMaterial",
        "persistentId" : "4d8567c2-3119-42cb-b149-f20cba398163",
        "detailDistance" : 150,
        "detailMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "detailStrength" : 0.800000011920929,
        "diffuseMap" : "levels/Cliff/art/terrains/overlay_map.dds",
        "diffuseSize" : 2048,
        "macroDistance" : 800,
        "macroMap" : "levels/Cliff/art/terrains/rockydirt-01-d",
        "macroSize" : 20,
        "macroStrength" : 0.5,
        "normalMap" : "levels/Cliff/art/terrains/rockydirt-01-n"
      },
      "dirt_grass-36adc5eb-925a-4bb8-8a55-97d2f57681ef" : {
        "internalName" : "dirt_grass",
        "class" : "TerrainMaterial",
        "persistentId" : "36adc5eb-925a-4bb8-8a55-97d2f57681ef",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "dirt_grass_d",
        "diffuseMap" : "dirt_grass",
        "diffuseSize" : 200,
        "isManaged" : "1"
      },
      "forest_floor-d044af1f-5ca3-4695-98eb-b66103839c83" : {
        "internalName" : "forest_floor",
        "class" : "TerrainMaterial",
        "persistentId" : "d044af1f-5ca3-4695-98eb-b66103839c83",
        "detailMap" : "levels/Cliff/art/terrains/forest_floor_d",
        "detailSize" : 3,
        "diffuseMap" : "levels/Cliff/art/terrains/Overlay_forest_floor",
        "normalMap" : "levels/Cliff/art/terrains/forest_floor_n"
      },
      "grass1-4ff7b79f-4ea9-4bc3-a280-63eeef901502" : {
        "internalName" : "grass1",
        "class" : "TerrainMaterial",
        "persistentId" : "4ff7b79f-4ea9-4bc3-a280-63eeef901502",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailMap" : "grass1_d",
        "detailSize" : 10,
        "diffuseMap" : "grass1",
        "diffuseSize" : 200,
        "isManaged" : "1"
      },
      "grass1-dry-1890b0da-4767-4af1-8e14-9bc25706f909" : {
        "internalName" : "grass1-dry",
        "class" : "TerrainMaterial",
        "persistentId" : "1890b0da-4767-4af1-8e14-9bc25706f909",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "grass1-dry_d",
        "detailSize" : 10,
        "detailStrength" : 2,
        "diffuseMap" : "grass1-dry",
        "diffuseSize" : 250,
        "isManaged" : "1"
      },
      "rocktest-916073b7-4f01-4f95-9a9f-c17c5b1447dc" : {
        "internalName" : "rocktest",
        "class" : "TerrainMaterial",
        "persistentId" : "916073b7-4f01-4f95-9a9f-c17c5b1447dc",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "rocktest_d",
        "detailSize" : 10,
        "diffuseMap" : "rocktest",
        "diffuseSize" : 400,
        "isManaged" : "1"
      },
      "sand-989ab832-bd78-438b-9dc1-880c1efd11f1" : {
        "internalName" : "sand",
        "class" : "TerrainMaterial",
        "persistentId" : "989ab832-bd78-438b-9dc1-880c1efd11f1",
        "Enabled" : "1",
        "detailBrightness" : "1",
        "detailDistance" : 100,
        "detailMap" : "sand_d",
        "detailSize" : 10,
        "diffuseMap" : "sand",
        "diffuseSize" : 200,
        "isManaged" : "1"
      }
    }
     

    Attached Files:

    • 20200519195907_1.jpg
    • Like Like x 1
  8. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    Found the problem!! When importing a level, make sure that the terrain info is being saved on your level directory and not on C:\Users\MyUsername\Documents\BeamNG.drive\levels\, but on C:\Users\MyUsername\Documents\BeamNG.drive\levels\YourLevelName.

    If it is not, copy the file named Media -> terrainFile -> TerrainName.ter from your BeamNG.drive\levels\ folder to your BeamNG.drive\levels\YourLevelName, then go to BeamNG editor, go to Media -> terrainFile -> on your terrain scene tree, and select the terrain you just copied. Resave and that should do it!
    upload_2020-5-22_17-3-59.png

    Now, time to figure out a faster way to make the shape files read the textures, and not pop out No Materials texture, without having to manually go through each one of them in the shape editor.

    EDIT: False alarm. Did not solve the problem.
     
    #8 DrMagnumWolf, May 22, 2020
    Last edited: May 23, 2020
  9. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    Nope, I take it back... Didn't work! :/
     
  10. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10
    Just to let you guys know that still no fix. Also, noticed that when I replace the player vehicle, or move its location, it resets after I restart the editor.
     
  11. Nadeox1

    Nadeox1
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,578
    I'm quite confused by your posts, as it seems to mix different problems:
    1. Textures not working when loading level
    2. .Ter file location
    3. Vehicle position when you load the level

    All of these are handled in different ways, it would be better to go over these one by one rather than mixing.

    1. I'm extremely confused on what is happening there I'm afraid

    2. The editor saves the .Ter file in Userfoler/BeamNG.drive/level (if the file does not exists yet, or you imported a heightmap)
    At some point you should move that .Ter file inside your level's folder. Once you do this, you also have to edit the .JSON file that contains the 'TerrainBlock' element (in the "main" folder in your level folder), so that the path to the .TER file is the new, correct one

    3. It does not use the vehicle position, but the 'SpawnPlayer' object's position and rotation



    I strongly advice to check the level's tutorials in this page:
    https://www.beamng.com/threads/tutorials-index-list-of-useful-guides.51454/
    Most use the old editor (as the new one is.. new), but are still valid.
     
  12. DrMagnumWolf

    DrMagnumWolf
    Expand Collapse

    Joined:
    Jun 22, 2015
    Messages:
    10

    Ignore about the spawn issue, that was a user error hahaha! I thought I had deleted the spawn locations from the previous map, but I hadn't.

    The issue I'm currently(still) having is still the terrain materials not being saved, and all the new materials I create, it gets renamed to "Warning_Material". I thought I had solved it by moving the terrain location, but that wasn't it.

    Here are the steps I took by creating a new material, saved, closed the game, and reopened it. Which then causes the "Warning_Material" error.

    20200529161720_1.jpg
    20200529161833_1.jpg

    --- Saved the game after this, and closed it ---
    DesertMesaTerrain.terrain.json File
    Code:
    {
      "binaryFormat": "version(char), size(unsigned int), heightMap(heightMapSize * heightMapItemSize), layerMap(layerMapSize * layerMapItemSize), layerTextureMap(layerMapSize * layerMapItemSize), materialNames",
      "datafile": "levels/Desert_Mesa/DesertMesaTerrain.ter",
      "heightMapItemSize": 2,
      "heightMapSize": 67108864,
      "heightmapImage": "levels/Desert_Mesa/DesertMesaTerrain.terrainheightmap.png",
      "layerMapItemSize": 1,
      "layerMapSize": 67108864,
      "materials": [
        "grass2",
        "BeachSand",
        "grassB",
        "Asphalt",
        "Mud",
        "rockm32",
        "RockyDirt",
        "testingtest1234"
      ],
      "size": 8192,
      "version": 8
    }
    --- Opening it again ---
    20200529162202_1.jpg
    DesertMesaTerrain.terrain.json file still says the same thing as above.

    Resaving, it replaced "Testingtest1234" with "warning_material".
     
  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