TLK 1.4 + Advanced Camera resource = hang?
by Tim Sullivan · in Torque Game Engine · 01/20/2006 (7:12 am) · 5 replies
I've been having no end of trouble getting the advanced camera resource to work with the 1.4 version of TLK. Three times I've done it; I even followed the updated instructions for adding the ability to cycle through the advanced camera modes.
When I change to a camera that isn't the first-person one, I get one of two things happening: 1) The screen goes totally gray, and performance of the game UI slows down; 2) The screen goes totally grey, the game hangs totally, and the performance of my computer is so slow that I often need to physically reboot it.
Gah.
The console.log file doesn't seem to have anything really anomolous in it that isn't in a standard TLK 1.4 run. I can post it if it'll help, though.
Has anyone else had this problem or have any clue what could be going on?
When I change to a camera that isn't the first-person one, I get one of two things happening: 1) The screen goes totally gray, and performance of the game UI slows down; 2) The screen goes totally grey, the game hangs totally, and the performance of my computer is so slow that I often need to physically reboot it.
Gah.
The console.log file doesn't seem to have anything really anomolous in it that isn't in a standard TLK 1.4 run. I can post it if it'll help, though.
Has anyone else had this problem or have any clue what could be going on?
#2
I'm not using the tlk right at this moment,
but with tge 1.4 - I would get the grey screen when tabbing to the other camera.
it works for me after I did the following hacks....
In
function GameConnection::onClientEnterGame(%this)
after
%this.advCamera.scopeToClient(%this);
add:
$advCameraCCB = %this.advCamera; //ccbhack
in
function GameConnection::spawnPlayer(%this)
change player to a global var:
%this.advCamera.setPlayerObject($playerccb);
in
function GameConnection::createPlayer(%this, %spawnPoint)
after:
%player.setTransform(%spawnPoint);
add:
$playerccb = %player; //ccbhack
01/31/2006 (12:19 pm)
@Tim,I'm not using the tlk right at this moment,
but with tge 1.4 - I would get the grey screen when tabbing to the other camera.
it works for me after I did the following hacks....
In
function GameConnection::onClientEnterGame(%this)
after
%this.advCamera.scopeToClient(%this);
add:
$advCameraCCB = %this.advCamera; //ccbhack
in
function GameConnection::spawnPlayer(%this)
change player to a global var:
%this.advCamera.setPlayerObject($playerccb);
in
function GameConnection::createPlayer(%this, %spawnPoint)
after:
%player.setTransform(%spawnPoint);
add:
$playerccb = %player; //ccbhack
#3
So, what exactly is wrong? Why is the hack needed?
01/31/2006 (2:11 pm)
@Charles: That solved the problem! Thanks greatly! :-)So, what exactly is wrong? Why is the hack needed?
#4
I don't really know but it works so far.
maybe the $advCameraCCB is not needed but I use it for console switching the camera mode:
'
$advCameraCCB.setGodViewMode();
01/31/2006 (3:02 pm)
@Tim,I don't really know but it works so far.
maybe the $advCameraCCB is not needed but I use it for console switching the camera mode:
'
$advCameraCCB.setGodViewMode();
#5
Gah. I'm going to try to reset things back to zero and reimplement the Advanced Camera into TLK. Maybe I've screwed something up somewhere.
Stay tuned.
02/01/2006 (3:30 pm)
Hm.. An update. This seems to sometimes work and sometimes not. I get a grey (or sometimes black) screen, and sometimes it hangs.Gah. I'm going to try to reset things back to zero and reimplement the Advanced Camera into TLK. Maybe I've screwed something up somewhere.
Stay tuned.
Torque Owner John Kabus (BobTheCBuilder)
If that doesn't help try running the Torque profiler and see what portions of the code are eating up more and more of the processing.
-John