Lighting Pak questions
by Howard Dortch · in Torque Game Engine · 09/22/2004 (9:56 am) · 10 replies
I tried to delete the *.cs files in the game/server/sglights directory and the lights go away. Doesn't the lighting pack use the *.dso files like the rest of torque?
#2
09/22/2004 (1:15 pm)
I dont see a "lighting pack forum" on the forums list
#3
09/22/2004 (1:18 pm)
You might need to click on 'Edit Subscriptions' on the 'Community' toolbar to add it.
#4
09/22/2004 (1:50 pm)
Sorry, dont see anything like that. I see "community links" but no reference to edit.
#5
09/22/2004 (5:20 pm)
...
#6
Try changing the following line from 'server/scripts/sgLights.cs' (line 8):
%path = $sgLightEditor::lightDBPath @ "*.cs";
To:
%path = $sgLightEditor::lightDBPath @ "*.dso";
The Light Editor compiles all datablocks as they're created, so the dso files should always exist, however be careful not to delete the light datablock dso files or the lights won't load again.
I'll try to find a better solution for the next release that handles both of the file types.
-John
09/23/2004 (1:44 am)
Howard,Try changing the following line from 'server/scripts/sgLights.cs' (line 8):
%path = $sgLightEditor::lightDBPath @ "*.cs";
To:
%path = $sgLightEditor::lightDBPath @ "*.dso";
The Light Editor compiles all datablocks as they're created, so the dso files should always exist, however be careful not to delete the light datablock dso files or the lights won't load again.
I'll try to find a better solution for the next release that handles both of the file types.
-John
#7
how bout something like if(!exist *.dso) { ext = *.cs }
09/23/2004 (4:21 am)
Oh I found the other forum, I'm old and blind, thanks.how bout something like if(!exist *.dso) { ext = *.cs }
#8
09/25/2004 (9:51 am)
I made the change and it crashes.
#9
09/25/2004 (9:53 am)
Been interested in this 'feature' as well.
Torque Owner John Kabus (BobTheCBuilder)
I'll look into this, but chances are the light datablock code is searching for *.cs files. I would imagine that changing it to also load the *.dso files should be easy.
I'll let you know what I find. Btw: you should really post this in the Lighting Pack forum, I nearly missed the post.
-John