How to change ground type

Discussion in 'World Editor' started by Pawshore, Jun 18, 2022.

  1. Pawshore

    Pawshore
    Expand Collapse

    Joined:
    Jun 21, 2018
    Messages:
    181
    I noticed trying to revamp an old map (imported from asseto) that the ground type section was missing. Is there a way to change it manually? If anyone could help that would be great.
     
  2. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    Uhhh ok so it looks like with the newest game update you cannot. I loaded up the game to take a screenshot to show you how and the option isn't there anymore??? I have no idea why they would get rid of it. It used to be under "additional info", heck I used it literally the day before the update on the backrooms joke map I made. Also the material viewer window is completely broken now so that doesn't help
    baffled.png
     
  3. Pawshore

    Pawshore
    Expand Collapse

    Joined:
    Jun 21, 2018
    Messages:
    181
    Ah.. yea I thought it was weird seeing it gone I used it the day before 0.25 and then saw it was gone.
     
  4. el_ferrito

    el_ferrito
    Expand Collapse

    Joined:
    Sep 30, 2020
    Messages:
    414
    Let them know. Some of these things will be bugs that they can fix. If it's intentional, it will be for a sensible reason.

    You can change the material type in the materials.json files with a text editor in any case.
     
  5. nekitu

    nekitu
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 18, 2018
    Messages:
    87
    What option was that again ?
     
  6. el_ferrito

    el_ferrito
    Expand Collapse

    Joined:
    Sep 30, 2020
    Messages:
    414
    My understanding is that they are asking for the terrain type to be selectable in the world editor (asphalt, mud, ice, etc.).

    I think at the moment this is only possible via the json. But I could be wrong, I've not tried since the update myself.
     
  7. Joobles

    Joobles
    Expand Collapse

    Joined:
    Sep 30, 2017
    Messages:
    710
    This one
    groundtype.png
    It allowed you to set custom ground types to individual textures from the material editor instead of needing to manually type it out in the files.
     
  8. nekitu

    nekitu
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 18, 2018
    Messages:
    87
    ok thanks, I will check it out and will come back with an answer/solution
     
  9. nekitu

    nekitu
    Expand Collapse
    BeamNG Team

    Joined:
    Jan 18, 2018
    Messages:
    87
    So it seems it was a bug on our side, it will be fixed on next release.
    Meanwhile if you want an over-the-counter solution:
    - open the lua/ge/extensions/editor/materialEditor.lua
    - line ~40:
    Code:
    local groundmodels = nil
    change to
    Code:
    local groundModels = nil
    - line ~423: change the getGroundmodels() function to this:
    Code:
    local function getGroundmodels()
       local sortFunc = function(a,b) return string.lower(a) < string.lower(b) end
       groundModels = tableKeys(core_environment.groundModels) ---
       table.sort(groundModels, sortFunc)
    end
    
    - line ~1555, change the groundmodels to groundModels:
    Code:
    if groundModels then
      combo("Ground Type", "groundType", groundModels, 0, "Material Properties")
    end
    
    - line ~2343: change
    Code:
    groundmodels = nil
    to
    Code:
    groundModels = nil
    Basically its a case typo :) and a local keyword deleted.
    Let me know if it works.
     
    • Like Like x 2
  10. You Farted

    You Farted
    Expand Collapse

    Joined:
    Jul 16, 2022
    Messages:
    52
    Its still not fixed
     
  11. DeWorD

    DeWorD
    Expand Collapse

    Joined:
    Jan 20, 2017
    Messages:
    142
    Ummm im kinda noob probably didn't understand the question, but u can change ground model aka is it asphalt or ice, sand whatever from
    Terrain Tools -> Terrain Painter -> Terrain Material Library
     
    • Like Like x 1
  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