Game Development Community

Mounting Crash

by Seth Willits · in Torque Game Builder · 03/10/2005 (6:18 pm) · 3 replies

Everything is working fine, then in the player code I simply add:

$player.mount(sceneWindow2D);

T2D then crashes. With the debugger, I've traced it to

void fxSceneObject2D::processLinkAfter( fxSceneObject2D* pSceneObject2D )
{
	mpNextProcess		= pSceneObject2D->mpNextProcess;
	mpPreviousProcess	= pSceneObject2D;
	pSceneObject2D->mpNextProcess = this;
	mpNextProcess->mpPreviousProcess = this;    // BAD ACCESS
}


However if I use

sceneWindow2D.mount($player, "0 4", 100);

Instead, then it works fine.

#1
03/10/2005 (10:24 pm)
Well, sceneWindow2D.mount(obj) mounts the window to that object. It may use some different logic than using sceneObject.mount, but you still mount the window to the object. Either way it shouldn't crash. It appears part of your message got cut off too...
#2
03/11/2005 (12:30 am)
@Seth: That is simply the "mount()" routine not checking the object type correctly for some reason. I will add this to the list to check.

I'll need to confirm it but if I find a problem, expect it in the next update.

Thanks for the heads-up. :)

- Melv.
#3
03/18/2005 (6:25 am)
FYI

Objects do not currently mount to the camera, it is the other way around.

I have fixed the checking/reporting problem though and it will be included in the next update.

Thanks for the report.

- Melv.