Game crashes on Mouse Over
by Kiyaku · in Torque Game Engine · 06/10/2007 (9:07 am) · 4 replies
Hi,
i declared a button with a tutorial. When you click on it, the application should shut down.
Now i have the problem, when i go over the button, the game crashes.
This is the code:
i declared a button with a tutorial. When you click on it, the application should shut down.
Now i have the problem, when i go over the button, the game crashes.
This is the code:
[...]
if(!isObject(guiButtonProfile)) new guiControlProfile(guiButtonProfile)
{
opaque = true;
border = true;
fontColor = "0 0 0";
fontColorHL = "32 100 100";
fixedExtent = true;
justify = "center";
canKeyFocus = true;
};
[...]
new guiChunkedBitmapCtrl(menuScreen)
{
profile = "guiContentProfile";
horizSizing = "width";
vertSizing = "height";
position = "0 0";
extent = "640 480";
minExtent = "8 8";
visible = true;
//bitmap = "./splash";
tile = false;
new guiButtonCtrl()
{
profile = "guiButtonProfile";
horizSizing = "right";
vertSizing = "top";
position = "40 420";
extent= "40 25";
minExtent = "8 8";
visible = true;
command = "Quit();";
text = "Quit";
groupNum = "-1";
buttonType = "pushButton";
};
};
[...]
#2
06/12/2007 (1:16 am)
No nothing, the log file contains no error either :/
#3
and it consistently crashed on a mouse hover (by crashed: under xp received a 'windows has received and error...send log to MS?' window...then Torque closed up). I havent seen it anywhere else, but I was curious what was up with the scripting in that tutorial (the sample here looks identical, so this may be what the OP was running as well). I ran it through the Torsion script debugger and all looked happy at the scripting level. I took the 'easy' way out, closed my eyes, and moved to other tutorials rather than using the torque_debug.exe and looking into it.
But if someone could look at the linked tutorial and point out what was wrong if it's at the script level, it would be interesting...
06/12/2007 (11:25 am)
I had the same issue...I was running one particular tutorial (http://members.cox.net/midian/gamedesign/tgestart6.htm)and it consistently crashed on a mouse hover (by crashed: under xp received a 'windows has received and error...send log to MS?' window...then Torque closed up). I havent seen it anywhere else, but I was curious what was up with the scripting in that tutorial (the sample here looks identical, so this may be what the OP was running as well). I ran it through the Torsion script debugger and all looked happy at the scripting level. I took the 'easy' way out, closed my eyes, and moved to other tutorials rather than using the torque_debug.exe and looking into it.
But if someone could look at the linked tutorial and point out what was wrong if it's at the script level, it would be interesting...
#4
06/12/2007 (2:30 pm)
Thats exactly the tutorial i used. Hm so i guess it's some problem there.
Employee Michael Perry
ZombieShortbus
The profile looks good, as does the GUI itself (both menu and button).