Need some help on glowmapping

Discussion in 'Programming' started by frks3864, Aug 7, 2026.

  1. frks3864

    frks3864
    Expand Collapse

    Joined:
    Oct 19, 2023
    Messages:
    253
    i'm trying to add a glowmap function to a mod i'm making (just to be able to see at night) and for some reason, when i try using this:

    {
    "xs": {
    "information":{
    "authors":"frks3864",
    "name": {
    "txt":"ui.vehicleconfig.information.name.BRAND BRAND",
    "ctx":{
    "brand1":"ui.vehicleconfig.brand.(car name)",
    "brand2":"ui.vehicleconfig.brand.(model name)"
    }
    }
    },
    "slotType" : "main",
    "slots2": [
    ["name", "allowTypes", "denyTypes", "default", "description"],
    ["bx_body", ["bx_body"], [], "bx_body_hatch", "Body", {"coreSlot":true}],
    ["paint_design", ["paint_design"], [], "", "Paint Design"],
    ["licenseplate_design_2_1", ["licenseplate_design_2_1"], [], "", "License Plate Design"],
    ["bx_mod", ["bx_mod"], [], "", "Additional Modification"]
    ],

    "scaledragCoef":0.84
    "variables": [
    ["name", "type", "unit", "category", "default", "min", "max", "title", "description"],
    ["$brakestrength", "range", "", "Brakes", 1, 0.2, 1.0, "Brake Force Multiplier", "Scales the overall brake torque for this setup", {"minDis":20, "maxDis":100}],
    ["$ffbstrength", "range", "", "Chassis", 1, 0.5, 1.5, "Setup-Specific Force Feedback Multiplier", "Scales the force feedback strength for THIS SETUP ONLY", {"minDis":50, "maxDis":150}],
    ["$headlightPitchComp", "range", "degree", "Headlights", 0, -3, 3, "Setup Specific Headlight Pitch Compensation", "Adjusts the headlight pitch for this setup", {"minDis":-3, "maxDis":3}]
    ],
    "glowMap":{
    "xs_lights":{"simpleFunction":{"lowbeam":0.49,"highbeam":1}, "off":"saikoulights","on":"saikoulightsON_on","on_intense":"saikoulightsON_on_intense"}, <--this is what's causing the mod to break

    }
    },
    }

    i don't know if i forgot something or if I'm just doing the glowMap naming part wrong, but I hope that I'll somehow be able to fix this sometime...
     
  2. frks3864

    frks3864
    Expand Collapse

    Joined:
    Oct 19, 2023
    Messages:
    253
    so, i managed to get the game to not crash by editing the code, but now i'm stuck at trying to get the glowMaps to appear. i have another material for the lights when they're on (obvs named saikoulights_on), but for some reason it doesn't want to appear in my materials tab whenever i use the eyedropper onto the car (it appears when i search it and even says it's located in the materials.json where all my other materials are), and the light material refuses to work whenever i turn on the lights. Any tips?
     
    #2 frks3864, Aug 8, 2026
    Last edited: Aug 8, 2026
  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