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.
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.
Torque 3D Owner Xavier "eXoDuS" Amado
Default Studio Name