QUESTION Car headlight and brake light

Discussion in 'General' started by Eduardok20z3, Jun 7, 2023.

  1. Eduardok20z3

    Eduardok20z3 New Member

    Joined:
    Jun 7, 2023
    Messages:
    3
    Likes Received:
    1
    Hey guys, I modified a car using Blender, then exported it FBX, then used Ks editor, made Persistent... but when I went to use it in the game, all the lights, brake light, headlight are not working anymore (in this car only). Does anyone know how to fix this?, only thing I'm missing, thanks
     
  2. Ryno917

    Ryno917 Member

    Joined:
    Dec 31, 2017
    Messages:
    30
    Likes Received:
    18
    Did you change the object or material names? Vanilla light behavior is set in the lights.ini file based on object names. CSP light setups are a bit more broad, but in any case if you changed the name of anything than you need to update the relevant .ini entries as well.
     
  3. Eduardok20z3

    Eduardok20z3 New Member

    Joined:
    Jun 7, 2023
    Messages:
    3
    Likes Received:
    1
    no, I didn't change any material or object names, that's what's weird. Any tips or help?
     
  4. Eduardok20z3

    Eduardok20z3 New Member

    Joined:
    Jun 7, 2023
    Messages:
    3
    Likes Received:
    1
    tks, found the solution, Blender added ".001" in all light object name, so I went to light.ini and added that(.001) in all names;

    [BRAKE_0]
    NAME=luzforaD_chassis_SUB6_002_002.001
    COLOR=255,0,0
    OFF_COLOR=20,0,0


    [BRAKE_1]
    NAME=luzforaE_chassis_SUB6_002_002.001
    COLOR=255,0,0
    OFF_COLOR=20,0,0


    [BRAKE_2]
    NAME=bakelight_boot_ok_SUB0_002_07_002_002.001
    COLOR=255,0,0

    [LIGHT_0]
    NAME=baixa_chassis_SUB16_002_002.001
    COLOR=200,200,160
     
    Ryno917 likes this.
  5. Ryno917

    Ryno917 Member

    Joined:
    Dec 31, 2017
    Messages:
    30
    Likes Received:
    18
    Glad you got it sorted!

    Yes, when a name is the same as an existing object, Blender appends the numeric suffix automatically. In this case, I assume you duplicated the full model within Blender to keep a backup of the original or something like that, and when duplicating the objects Blender added the suffix to the new objects.

    Standard behaviour as Blender does not support duplicate object names. Just something to look out for in the future :)
     
    Eduardok20z3 likes this.
: lights, headlight
  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