Lighting object doesn't light the scene
by game4Rest · in Torque Game Engine · 07/31/2006 (2:01 am) · 2 replies
Hello again,
I created three lighting objects in my Mission Area. It was perfect at that moment. I saved my mission and exit. But when I opened up my game again, I found something was wrong. I saw the lighting object in the Mission Editor tree. But when I selected it, I was able to see only its gizmo. It didn't shed any lights.
I believe selected object has a box with yellow line. But it doesn't have. I open up the .cs file that defines the
datablock of that object. It is OK. But when I try to find it in the mission editor, it doesn't show up. I believe, once I created datablock, I can reuse it when I create lighting Object. But I cannot see it in the creating lighting object popup dialog.
Is it supposed to happen under ceartain condition? I tried it many times but same result. Please someone help me.
Thanks in advance.
Hongjin
I created three lighting objects in my Mission Area. It was perfect at that moment. I saved my mission and exit. But when I opened up my game again, I found something was wrong. I saw the lighting object in the Mission Editor tree. But when I selected it, I was able to see only its gizmo. It didn't shed any lights.
I believe selected object has a box with yellow line. But it doesn't have. I open up the .cs file that defines the
datablock of that object. It is OK. But when I try to find it in the mission editor, it doesn't show up. I believe, once I created datablock, I can reuse it when I create lighting Object. But I cannot see it in the creating lighting object popup dialog.
Is it supposed to happen under ceartain condition? I tried it many times but same result. Please someone help me.
Thanks in advance.
Hongjin
About the author
Recent Threads
#2
Shame on me. I forgot something that is basic.
Yes, I created completely new mod and I'm afraid I missed to execute the appropriate file in the game.cs.
Now everything's clear to me.
Thanks for your great support.
Hongjin
07/31/2006 (8:00 am)
Hi John,Shame on me. I forgot something that is basic.
Yes, I created completely new mod and I'm afraid I missed to execute the appropriate file in the game.cs.
Now everything's clear to me.
Thanks for your great support.
Hongjin
Torque Owner John Kabus (BobTheCBuilder)
Are you using an unmodified TLK or was it added to an existing project? This sounds like what can happen when merging into an existing project or creating a new mod (other than starter.fps) and missing one of the TLK script code snippets.
When you look at the console.log after running your mission do you see the following in there:
If not make sure the TLK script blocks from the files starter.fps\client\init.cs and starter.fps\server\scripts\game.cs, are in your current mod.
TLK code and script blocks are easy to find and identify because they are commented like this:
Let me know if this helps!