Page 1 of 1

[96] Camera Texture Crash

Posted: Tue Jul 19, 2005 10:33 pm
by Kirby
While I was attempting to set a camera texture, I got a crash.
Spoiler:
The following script was involved

Code: Select all

#include "zcommon.acs"

script 1 OPEN
{
setcameratotexture(1,"CAMTEX1",0);
}
And the following ANIMDEFS was used

Code: Select all

cameratexture CAMTEX1 64 64
It crashed as soon as the game started, and I don't know what caused it.

Posted: Tue Jul 19, 2005 10:38 pm
by skadoomer
why is your FOV set to 0?

Posted: Tue Jul 19, 2005 10:38 pm
by Kirby
I dunno, I thought it was the basic value. Should I just leave it blank?

EDIT: Can't leave it blank w/o a compiling error and it still crashed with FOV at 90
EDIT2: I also found that when I started it up, there was a message in the console saying "Unknown texture 'CAMTEX1'".

Posted: Wed Jul 20, 2005 1:40 am
by skadoomer
there is your problem. You need to define the texture your going to fill with a camera in pnames first (i'm not sure about the tx system) The texture must be recognised by dooms texturing system before the camera can be printed into it.

Posted: Wed Jul 20, 2005 2:07 am
by Graf Zahl
AFAIK the bug has already been fixed but not released.

Posted: Wed Jul 20, 2005 11:33 am
by Kirby
Hmm, the TX tags don't work, so I guess I will be using PNAMES. Until the next version is out, I'll just use this method.