TLK 1.3.5 To TGE 1.4 Migration Problem
by Peter Churness · in · 12/10/2005 (10:55 am) · 2 replies
Having trouble integrating TLK 1.3.5 into new TGE 1.4 release.
I'm very close. Lights are working in the Lighting Kit Demo mission. But I'm having two problems (they may be related - I don't know).
1. I don't think the scripts are executing any .sgo files. For example this line doesn't initialize the SG Lights:
exec("common/synapseGaming/contentPacks/lightingPack/sgDeployServer.cs");
Instead I have to manually execute the different light files in my server/game.cs script:
exec("./sgLights/sgBlueLightDataBlock.cs") ;
exec("./sgLights/sgDefaultLightDataBlock.cs") ;
exec("./sgLights/sgDynamicFireDataBlock.cs") ;
etc......
2. I can add existing sgUniversalStaticLights, but I can't bring up the Synapse Gaming Tools editor to change lights or create new ones. I can create new sgLights scripts and and execute and add new lights with new parameters manually and then can add them fine. But no editor - either through F12 or through the menu bar. It's not able to find the sgLightEditor::toggle() function.
I'm attaching a screenshot so you can see what functionality i DO have.

Can anyone point me in the right direction of places in the code or script files I should be looking at to get this working?
Thanks,
Peter
I'm very close. Lights are working in the Lighting Kit Demo mission. But I'm having two problems (they may be related - I don't know).
1. I don't think the scripts are executing any .sgo files. For example this line doesn't initialize the SG Lights:
exec("common/synapseGaming/contentPacks/lightingPack/sgDeployServer.cs");
Instead I have to manually execute the different light files in my server/game.cs script:
exec("./sgLights/sgBlueLightDataBlock.cs") ;
exec("./sgLights/sgDefaultLightDataBlock.cs") ;
exec("./sgLights/sgDynamicFireDataBlock.cs") ;
etc......
2. I can add existing sgUniversalStaticLights, but I can't bring up the Synapse Gaming Tools editor to change lights or create new ones. I can create new sgLights scripts and and execute and add new lights with new parameters manually and then can add them fine. But no editor - either through F12 or through the menu bar. It's not able to find the sgLightEditor::toggle() function.
I'm attaching a screenshot so you can see what functionality i DO have.

Can anyone point me in the right direction of places in the code or script files I should be looking at to get this working?
Thanks,
Peter
#2
So...how do I get the latest TLK script library? I didn't see how to do that in the thread you referred me to...
Peter
12/10/2005 (12:50 pm)
Thanks John,So...how do I get the latest TLK script library? I didn't see how to do that in the thread you referred me to...
Peter
Torque Owner John Kabus (BobTheCBuilder)
TGE's dso format changed in version 1.4, so you need to use the latest TLK script library, which is in TGE 1.4 format. For more details check out this thread.
-John