Screenshot problem
by DejaBlue · in Torque Game Engine · 10/27/2005 (8:01 am) · 4 replies
When i try to take a screenshot either jpg or png i ge tnothing but a file that is light blue nothing actually in the file. here is my screenshot.cs from common/client.
//----------------------------------------
$screenshotNumber = 0;
function doScreenShot( %val )
{
if (%val)
{
if ($pref::Video::screenShotSession $= "")
$pref::Video::screenShotSession = 0;
if ($screenshotNumber == 0)
$pref::Video::screenShotSession++;
if ($pref::Video::screenShotSession > 999)
$pref::Video::screenShotSession = 1;
$pref::interior::showdetailmaps = false;
$name = "screenshot_" @ formatSessionNumber($pref::Video::screenShotSession) @ "-" @ formatImageNumber($screenshotNumber++);
if($pref::Video::screenShotFormat $= "JPEG")
screenShot($name @ ".jpg", "JPEG");
else
if($pref::Video::screenShotFormat $= "PNG")
screenShot($name @ ".png", "PNG");
else
screenShot($name @ ".png", "PNG");
}
}
// bind key to take screenshots
GlobalActionMap.bind(keyboard, "ctrl p", doScreenShot);
i have done a search and cant find anything for a fix or if something is wrong here. can someone who's screenshots working see if this section is the same?
looks like one line continued after i pasted which i already know
//----------------------------------------
$screenshotNumber = 0;
function doScreenShot( %val )
{
if (%val)
{
if ($pref::Video::screenShotSession $= "")
$pref::Video::screenShotSession = 0;
if ($screenshotNumber == 0)
$pref::Video::screenShotSession++;
if ($pref::Video::screenShotSession > 999)
$pref::Video::screenShotSession = 1;
$pref::interior::showdetailmaps = false;
$name = "screenshot_" @ formatSessionNumber($pref::Video::screenShotSession) @ "-" @ formatImageNumber($screenshotNumber++);
if($pref::Video::screenShotFormat $= "JPEG")
screenShot($name @ ".jpg", "JPEG");
else
if($pref::Video::screenShotFormat $= "PNG")
screenShot($name @ ".png", "PNG");
else
screenShot($name @ ".png", "PNG");
}
}
// bind key to take screenshots
GlobalActionMap.bind(keyboard, "ctrl p", doScreenShot);
i have done a search and cant find anything for a fix or if something is wrong here. can someone who's screenshots working see if this section is the same?
looks like one line continued after i pasted which i already know
About the author
#2
again thanks Anthony
anyone have a fix for full screen? or know where i can find one as searching i have not found any
10/27/2005 (8:25 am)
Hmm ok window mode it worked and full screen it doesnt, thanks fr that... seems there should be a fix or something i am missing, cant believe there is not a fix for the fullscreen then.again thanks Anthony
anyone have a fix for full screen? or know where i can find one as searching i have not found any
#3
10/27/2005 (8:31 am)
I would say to put this in the Bugs section, so GG is sure to see it.
#4
10/27/2005 (8:43 am)
Thanks i posted in the sdk bug section
Associate Anthony Rosenbaum