1. Stuck or having problems creating your mod?

Unsolved Game crashes when using custom statics

Discussion in 'Mod Support' started by essej818, Jun 17, 2019.

  1. essej818

    essej818
    Expand Collapse

    Joined:
    Aug 9, 2016
    Messages:
    26
    Help, ive recently run into a problem where i click on my static object to be added to the map, and the game crashes. It didnt used to do this.

    Capture.jpg
     
  2. thomatoes50

    thomatoes50
    Expand Collapse
    Staff Member

    Joined:
    Jan 31, 2013
    Messages:
    627
    Try to delete the cache/level and cache/shader folders

    If you can, try to identify the mesh that cause the crash and sent it to us
     
  3. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,242
    This can happen in BeamNG when an object has vertex colors.

    upload_2019-7-19_9-4-56.png

    If you have several objects with vertex colors, and use Blender. You can use this script.

    1. Move to the scripting layoug
    upload_2019-7-19_9-5-25.png
    2. Click the + / new button
    upload_2019-7-19_9-5-37.png
    3. Paste this script in
    Code:
    import bpy
    for ob in bpy.data.objects:
        if ob.type == 'MESH':
            vertex_colors = ob.data.vertex_colors
            while vertex_colors:
                vertex_colors.remove(vertex_colors[0])
    
    4. Click run script, and watch your vertex colors disappear!
     
  4. thomatoes50

    thomatoes50
    Expand Collapse
    Staff Member

    Joined:
    Jan 31, 2013
    Messages:
    627
    In-game mesh for buildings use vertex coloring. It should not crash, only weird render issue.
     
  5. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,242
    Maybe it's multiple vertex color layers? Whenever I try with vertex colors the game just crashes. Both TSStatic and vehicle models.
     
  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