Solved Problem with materials.cs

Discussion in 'Mod Support' started by Asgalager, Aug 24, 2017.

  1. Asgalager

    Asgalager
    Expand Collapse

    Joined:
    Sep 1, 2016
    Messages:
    107
    When I edit my materials in materials.cs for my mod, the game often ignores the changes I've made. I'm trying to make a material glow by adding emissive[0] = "1"; to the material. The material glowed the first time I added it, but I accidentally broke it by editing the material. After undoing things and changing it back to before, the material won't glow anymore. I've tried deleting the folder from the cache, and restarting the game, but it doesn't seem to work. As a test, I added the same line for the emissive on a different material and after reloading the vehicle with ctrl R the material glowed, but I wasn't able to get my original material to glow again.
     
  2. RyvyLo

    RyvyLo
    Expand Collapse

    Joined:
    May 15, 2014
    Messages:
    438
    It will be hard to fix this with this much info, do you mind sharing your material.cs ?
     
    • Agree Agree x 1
  3. Asgalager

    Asgalager
    Expand Collapse

    Joined:
    Sep 1, 2016
    Messages:
    107
    Good news, I restarted my computer and the next day it decided to fix itself :D
     
  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