Solved Issue with grass texture

Discussion in 'Mod Support' started by ktheminecraftfan, Jul 13, 2016.

  1. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    I have decided to take another crack at making a map, I decided to use the template map that is shipped with the game.
    Does anyone know which materials file the grass loads from (where the no material Boxes are seen)

    20160713120918_1.jpg
     
  2. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    The grass material associated with that should be located in the main material editor (BNG_grass) or something similar. In the editor
    and under the scene tree there should be a groundcover object. Click on that and examine the material associated with it. Click on the
    small material icon in the groundcover object, that will open the main material editor and you can select a grass texture for it to render.

    First and foremost make sure the 'layer' selection in the groundcover object is seeing the right grass terrain material.
     
    • Like Like x 1
  3. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    Any chance you can show pictures? since I find your words hard to understand.
     
  4. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    I will have to open up the template map to see what's going on there. Have you changed anything in it or does it act like that out of the gate?

    See the attached screens. I have numbered the sequence of the things to check. If you do this right
    the grass should come back. If you have tampered with the map and lost the texture it would just be better
    to re-download (verify game cache) through Steam and start over.
    Screenshot (50).png Screenshot (51).png
     
    #4 Aboroath, Jul 13, 2016
    Last edited: Jul 13, 2016
  5. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    i only changed where it says the maps name so it loads from the maps folder that's it.
     
  6. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    See my post above. Sounds like you may have forgotten a material re-name in there somewhere?
     
    • Like Like x 1
  7. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    I have decided to attach my map so you could see what is wrong with it. I don't really care if anyone decides to upload this as who looks here for mods anyway.

    Put the files in the smaller zip into a folder called levels in your BeamNG.drive folder in my documents.


    If you can find a way to merge the two zips that would be kindly appreciated as I tried but I ended up breaking the map.
     

    Attached Files:

  8. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    I'll see what I can do.
    --- Post updated ---
    Okay so are you just trying to get your grass back without having to rename a whole new map?...that's what I'm guessing here.

    As usual, all the details of what you WERE doing and what you WANT to happen are always helpful.
    --- Post updated ---
    Try this. My zipping skills are kinda crap:p.
     

    Attached Files:

    • Like Like x 1
  9. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    I have downloaded your attatchment 6 times but it stall says the folder is invalid.
     
  10. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    Okay. I downloaded it and tested and it works for me. Using 7zip. Same stock procedure and settings I've always used.
     
  11. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    Must of been my internet.
     
  12. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    I can try again when back to my PC. It downloaded and opened up with everything intact (grass yay!), just fine.
    I seem to recall internet issues causing the invalid file problem before. Keep trying and make sure your caches are
    100% clean if a download succeeds.
     
    • Like Like x 1
  13. bob.blunderton

    bob.blunderton
    Expand Collapse

    Joined:
    Apr 3, 2015
    Messages:
    3,421
    usually this stuff can happen when the full pathname to the graphic is not included, or the required graphic is not included or properly placed in your path structure. For some dumb reason, even though in say GRIDMAP some grass is just given the path grass_03.dds it WONT find it even if the file and materials.cs file is in the same folder. With ./grass_03.dds it might find it (works on .dae object files), and using the full levels/whateverlevelnameitis/art/groundcover/grass03.dds will definitely find it. The lush grass in the ECA wasn't working because of this same error. The level you're making needs to have both the grass file, and it needs the grass to be referenced properly in the materials.cs.
    The materials.cs that I'm talking about in *MY* map, is at levels/levelname/art/shapes/groundcover. The grass files should be in there, too. You'll need to put the proper pathname in, but just make sure it doesn't have a / at the beginning of the path either. Look for simple typos like SHAPE instead of SHAPES or ROAD instead of ROADS in your pathnames. Check the console for the RED error text for the file it can't find, and either rename/copy the file to match the console error, and reload the map, or close the game and fix the .cs scripting, and reload the map.
    On my map most of the grass is grass_field.dds
     
  14. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    It also helps (when the confidence is there), to re-name all materials to something FAR away from any other map. It doesn't matter if you are
    using existing textures or downloaded stuff. Naming ALL materials used in a map with something custom really helps cut down on confusion
    no matter what your level of expertise. Make a material your own from start to finish!
     
  15. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    Hey @ktheminecraftfan ,

    is your map working properly now? Or is there still a problem with the material?
     
  16. ktheminecraftfan

    ktheminecraftfan
    Expand Collapse

    Joined:
    Mar 14, 2014
    Messages:
    2,104
    Its Working now.
     
  17. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    Glad to hear!
     
  18. Mastertiti74

    Mastertiti74
    Expand Collapse

    Joined:
    Oct 30, 2012
    Messages:
    43
    Hi. Glade your problem is solved. Just to ask...
    Do everyone have the same issue than me ? When i create a new material in the editor and then save the game and quit. The new material is registred in a material.cs created in /My documents/beamng/ folder.

    All my map files are in steam/common/beamng....

    Surelly I manually copy and paste the new created content in the right folder afterward, but it is just normal or their is something im doing wrong?
     
  19. meywue

    meywue
    Expand Collapse
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    346
    This is actually a normal behaviour.
     
  20. Mastertiti74

    Mastertiti74
    Expand Collapse

    Joined:
    Oct 30, 2012
    Messages:
    43
    Ok great ! Thanks for that really quick help ! ;-)
     
  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