Game Development Community

Can't get lights to work

by Howard Dortch · in · 12/12/2004 (11:59 am) · 3 replies

I'm sure this is a script thing but I just can't find it. I did a find in files for "Lighting Pack code block" in the example and coppied everything over to my script files. When I try to place a light in my zone I dont see the lightbulb icon and I get no lights. Any hints?

#1
12/12/2004 (3:23 pm)
Hi Howard,

The light icon file is located at:

'common/ui/fxlighticon.png'

you'll need to copy it over for the icon to show up.

When you say that you're not getting any lights do you just mean that the icon is missing or is a mission relight producing no light? If so can you post the console.log.
#2
12/12/2004 (5:55 pm)
Thanks John, I found the problem, in sglight.cs the path to my game was different.
$sgLightEditor::lightDBPath = "game/server/scripts/sgLights/";
#3
12/12/2004 (9:16 pm)
That's cool - I'm glad to see it's working. :)