Crash with missing file in fxScroller2D
by Jason McIntosh · in Torque Game Builder · 02/27/2005 (7:34 pm) · 6 replies
I did this:
...and mis-typed the name of the texture. Torque promptly crashed before displaying anything at all. I changed to the correct file name for the texture and it runs fine.
I just figured a console message might be more user friendly. :)
datablock fxImageMapDatablock2D( arenaSkyImageMap )
{
mode = full;
textureName = "~/client/resource/characters/Jack/images/sky_night3";
};
$arenaSky = new fxScroller2D() { scenegraph = t2dSceneGraph; };
$arenaSky.setLayer( $LAYER_TOP );
$arenaSky.setPosition( "0 0" );
$arenaSky.setSize( "25 25" );
$arenaSky.setImageMap( arenaSkyImageMap );...and mis-typed the name of the texture. Torque promptly crashed before displaying anything at all. I changed to the correct file name for the texture and it runs fine.
I just figured a console message might be more user friendly. :)
About the author
#2
02/28/2005 (12:40 am)
I think he meant he mistyped:textureName = "~/client/resource/characters/Jack/images/sky_night3";
#3
Thanks again guys.
- Melv.
02/28/2005 (3:18 am)
Okay, yes, just read it again. Still shouldn't happen so I'm adding it the list.Thanks again guys.
- Melv.
#4
02/28/2005 (3:43 am)
Melv, you are correct. Sorry I was vague there. It did crash on the setImageMap() call. When I commented it out (with the incorrect file name) it didn't crash. So that was the call where it happened.
#5
- melv.
02/28/2005 (5:27 am)
@Jason: Thanks. That'll help me isolate the problem and squash that slippery bug out of existence.- melv.
#6
I have fixed this problem. It will be included in the next updated.
Thanks for the report.
- Melv.
03/01/2005 (6:57 am)
FYII have fixed this problem. It will be included in the next updated.
Thanks for the report.
- Melv.
Associate Melv May
You got a crash on the line "$areaSky.setImageMap()" function?
You are correct, all cases such as this should/are being checked so I'll double-check that myself.
- Melv.