Game Development Community

Adding FxLight in starter.fps

by Nicolas Bonvalet · in Torque Game Engine · 10/14/2003 (9:09 am) · 2 replies

Hi,


I'm trying to add a FxLight in starter.fps in the R_1_2_0.

When I try to click in the "mission editor creator", the MissionObjects/Environment/lighting, a dialog box appears that ask for the light name, and propose 'DefaultStorm' as the DataBlock.
That obviously fail, because there is no 'DefaultStorm' DataBlock :

"Object 'DefaultStorm' is not a member of the 'GameBaseData' data block class
editor/newObject.cs (0): Register object failed for object light1 of class Lightning."

So I :
* insert the fxLights.cs file from the demo mod,
* insert a 'exec("./fxlights.cs");' in the 'onServerCreated' function of game.cs
* modify the gui to use the 'LightHalo' DataBlock

But it still doesn't work :
"editor/newObject.cs (0): Register object failed for object light1 of class Lightning."

Does anybody know what's happening here ?

Thanks by advance.

#1
10/14/2003 (4:40 pm)
Yes, everything is wrong. You are trying to add an fxLight using a Lightning datablock. Lightning = Storm.. thunders.. etc.. has nothign to do with a Light. You need an fxLightData Datablock.
#2
10/15/2003 (6:26 am)
Yep,thank you for your answer, I discovered that this morning...