Problematic Paths in Models

From The DarkMod Wiki
Jump to navigationJump to search

Originally written by New Horizon on http://forums.thedarkmod.com/topic/739

This is in regards to black models. We traced this to an issue with the material paths inside the models. By opening up an ase file in a text editor you would have seen something like this....

*MATERIAL_NAME "//DarkMod/models/props/misc/bowl"

and

*BITMAP "//DarkMod/models/props/misc/bowl"

The suggestion was to change this to the following....

*MATERIAL_NAME "//base/models/props/misc/bowl"

and

*BITMAP "//base/models/props/misc/bowl"

This works, however it causes frobbable items to be at full brightness ...at all times. Not good. So, I dug a little deeper.

I don't know why I didn't notice this all along, but everything needs to be in lower caps. Currently the path names were like this....

*MATERIAL_NAME "//DarkMod/models/props/misc/bowl"

and

*BITMAP "//DarkMod/models/props/misc/bowl"

As you can see, d and m are in upper caps. I changed it to all lower caps as it should be and everything works great.

So, just to make sure everyone is aware of this.

Always use Lower Caps

*MATERIAL_NAME "//darkmod/models/props/misc/bowl"

and

*BITMAP "//darkmod/models/props/misc/bowl"