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:
T2D then crashes. With the debugger, I've traced it to
However if I use
Instead, then it works fine.
$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.
About the author
http://www.sethwillits.com/
#2
I'll need to confirm it but if I find a problem, expect it in the next update.
Thanks for the heads-up. :)
- Melv.
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
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.
03/18/2005 (6:25 am)
FYIObjects 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.
Torque Owner Seth Willits