Game Development Community

Getting the TLK working in TGE 1.5...

by Miguel Benitez · in Torque Game Engine · 12/07/2006 (8:04 pm) · 2 replies

No matter what I try I can't get a single light to work properly with the TLK in the new TGE 1.5. Here is what I am doing. I create a sgLightObject from the Mission Objects/Environment section first. From there I go to the world editor inspector and scroll down to the data block section and I dont get all options that I see in the torque 1.5 demo. Instead the only options I get with that dataBlock are Observer, PlayerBody, SpawnSphereMaker, TorqueLogoItem and WayPointMarker. Which all give me and error if I select any of them and the engine crashes.

I also have the sgLightObject selected then hit f12 to bring up the Light Editor and try selecting Light datablocks and a Lighting model selection. Then play with every and all setting and nothing works.

I noticed in the 1.5 demo in the LightProperties for any light in the World Editor Inspector there data blocks have tons of different lighting options instead of the default 5 I get. Am I doing this wrong or does it take coding to get the datablock options for any lights? Is there any step by step tutorials out there to help out TLK noobs such as myself. The info on the torque developer network is to broad and doesnt really help out for beginners to get this working to get to the next level. Thx.

-Miguel

#1
12/08/2006 (6:59 am)
I don't know if this will help much (I haven't done anything in TLK yet)

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=11518

Looks like these add a bit more functionality to TLK
#2
12/08/2006 (9:16 am)
Torque Lighting System TDN Section

Did you create a light datablock using the Light Editor first? You can't edit the properties until you have a datablock created to work with.

Also if this is a new custom mod (not starter.fps) make sure the lighting system script exec is in your server game.cs script (see starter.fps/server/scripts/game.cs for details):

exec("common/server/lightingSystem.cs");