GuiRadarCtrl and TSE crash
by Andrea Fraboni · in Torque Game Engine Advanced · 10/08/2006 (1:12 am) · 17 replies
Can anyone help me ?
I intend to add GuiRadarCtrl in my TSE 0_4_5_0 but the engine crash when I run it !!!
I see that the problem is in load PNG images in these lines :
mTextureObject = GFXTexHandle("starter.fps/client/ui/radar_base", &GFXDefaultGUIProfile);
mRadarDot = GFXTexHandle("starter.fps/client/ui/radarDot", &GFXDefaultGUIProfile);
mRadarUp = GFXTexHandle("starter.fps/client/ui/radarUp", &GFXDefaultGUIProfile);
mRadarDown = GFXTexHandle("starter.fps/client/ui/radarDown", &GFXDefaultGUIProfile);
if i comment out these lines and function render the program run correctly !
Why these lines are not acceptable ???
Thanks to all help me
Bye
I intend to add GuiRadarCtrl in my TSE 0_4_5_0 but the engine crash when I run it !!!
I see that the problem is in load PNG images in these lines :
mTextureObject = GFXTexHandle("starter.fps/client/ui/radar_base", &GFXDefaultGUIProfile);
mRadarDot = GFXTexHandle("starter.fps/client/ui/radarDot", &GFXDefaultGUIProfile);
mRadarUp = GFXTexHandle("starter.fps/client/ui/radarUp", &GFXDefaultGUIProfile);
mRadarDown = GFXTexHandle("starter.fps/client/ui/radarDown", &GFXDefaultGUIProfile);
if i comment out these lines and function render the program run correctly !
Why these lines are not acceptable ???
Thanks to all help me
Bye
About the author
ASTRO SLAYERS my first game is on iTunes : https://itunes.apple.com/it/app/astro-slayers/id458581104?mt=8
#3
10/11/2006 (11:53 am)
Do you get a crash in some PNG low level code? If so, then I have it too. Just sometimes it crashes on a png in the radar
#4
To Thomas "Man of Ice" Lund : mmmm yes I use old PNG from old Tutorial ...... you suggest to use other image format tga ?
There is a strange situation .... where I read this "Topic: GFXTexHandle::lock bug" in :
http://www.garagegames.com/mg/forums/result.thread.php?qt=51673
is the same problem ???
O_O
10/11/2006 (10:19 pm)
To Chris \"C2\" Byars : I test your code but it crash !!!To Thomas "Man of Ice" Lund : mmmm yes I use old PNG from old Tutorial ...... you suggest to use other image format tga ?
There is a strange situation .... where I read this "Topic: GFXTexHandle::lock bug" in :
http://www.garagegames.com/mg/forums/result.thread.php?qt=51673
is the same problem ???
O_O
#5
In TSE 0_2_0 the problem is not present !
I hope in TSE final version !!!
O_O
10/12/2006 (11:14 am)
The problem is present only in TSE 0_4_5_0 !!!In TSE 0_2_0 the problem is not present !
I hope in TSE final version !!!
O_O
#6
I have just seen some strange PNG errors in exactly the radar resource - but I doubt its the resource itself, but rather something in the engine
10/12/2006 (1:53 pm)
I havent done any investigation into this myself. It seems to work at the moment with latest HEAD, but I am unsure why.I have just seen some strange PNG errors in exactly the radar resource - but I doubt its the resource itself, but rather something in the engine
#7
but crosshair load png image .... probably use different method for load it ......mmm
O_O
10/13/2006 (7:36 am)
Yes ... I think so toobut crosshair load png image .... probably use different method for load it ......mmm
O_O
#8
10/13/2006 (9:21 am)
Works for me, verbatim. (With the little change from Chris Labombard from the comments, if that's not part of the resource already)
#9
Sorry to all !!!
The solution is in :
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9946
in the post from Brainiac Studios (#0002) (Apr 21, 2006 at 21:04)
Add this to the public section of guiRadarCtrl.h
add this to the cpp
Quote:
--------------------------------------------------------------------------------
bool onAdd();
--------------------------------------------------------------------------------
Quote:
--------------------------------------------------------------------------------
bool GuiRadarCtrl::onAdd()
{
if (!Parent::onAdd())
return false;
mTextureObject = GFXTexHandle("fps/client/ui/radar_base", &GFXDefaultGUIProfile);
mRadarDot = GFXTexHandle("fps/client/ui/radarDot", &GFXDefaultGUIProfile);
mRadarUp = GFXTexHandle("fps/client/ui/radarUp", &GFXDefaultGUIProfile);
mRadarDown = GFXTexHandle("fps/client/ui/radarDown", &GFXDefaultGUIProfile);
return true;
}
--------------------------------------------------------------------------------
Comment out these 4 lines in the constructor:
Quote:
--------------------------------------------------------------------------------
mTextureObject = GFXTexHandle("fps/client/ui/radar_base", &GFXDefaultGUIProfile);
mRadarDot = GFXTexHandle("fps/client/ui/radarDot", &GFXDefaultGUIProfile);
mRadarUp = GFXTexHandle("fps/client/ui/radarUp", &GFXDefaultGUIProfile);
mRadarDown = GFXTexHandle("fps/client/ui/radarDown", &GFXDefaultGUIProfile);
--------------------------------------------------------------------------------
ok ! Now all is right !!
bye
10/13/2006 (11:50 am)
OPS !!!Sorry to all !!!
The solution is in :
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9946
in the post from Brainiac Studios (#0002) (Apr 21, 2006 at 21:04)
Add this to the public section of guiRadarCtrl.h
add this to the cpp
Quote:
--------------------------------------------------------------------------------
bool onAdd();
--------------------------------------------------------------------------------
Quote:
--------------------------------------------------------------------------------
bool GuiRadarCtrl::onAdd()
{
if (!Parent::onAdd())
return false;
mTextureObject = GFXTexHandle("fps/client/ui/radar_base", &GFXDefaultGUIProfile);
mRadarDot = GFXTexHandle("fps/client/ui/radarDot", &GFXDefaultGUIProfile);
mRadarUp = GFXTexHandle("fps/client/ui/radarUp", &GFXDefaultGUIProfile);
mRadarDown = GFXTexHandle("fps/client/ui/radarDown", &GFXDefaultGUIProfile);
return true;
}
--------------------------------------------------------------------------------
Comment out these 4 lines in the constructor:
Quote:
--------------------------------------------------------------------------------
mTextureObject = GFXTexHandle("fps/client/ui/radar_base", &GFXDefaultGUIProfile);
mRadarDot = GFXTexHandle("fps/client/ui/radarDot", &GFXDefaultGUIProfile);
mRadarUp = GFXTexHandle("fps/client/ui/radarUp", &GFXDefaultGUIProfile);
mRadarDown = GFXTexHandle("fps/client/ui/radarDown", &GFXDefaultGUIProfile);
--------------------------------------------------------------------------------
ok ! Now all is right !!
bye
#10
10/13/2006 (12:44 pm)
Yup, guess I forgot to add his changes into the resource. :P
#11
10/14/2006 (4:07 am)
No problem ! ;-)
#12
for convert a simple code usefull for Horizontal Compass ......
I post the link for the code here :
http://www.garagegames.com/mg/forums/result.thread.php?qt=52333
Ultimate question ......... I use a correct channel for this kind of communications ??
O_o
10/15/2006 (12:10 am)
I use what I learn in this test coding ... for convert a simple code usefull for Horizontal Compass ......
I post the link for the code here :
http://www.garagegames.com/mg/forums/result.thread.php?qt=52333
Ultimate question ......... I use a correct channel for this kind of communications ??
O_o
#13
www.garagegames.com/index.php?sec=mg&mod=resource&page=submit&qtype=code
10/15/2006 (5:14 am)
Yes, correct forums. You could put it up as a resource, too. :)www.garagegames.com/index.php?sec=mg&mod=resource&page=submit&qtype=code
#15
"excedded world matrix size".
what is need to be done.
11/13/2006 (9:18 pm)
I have tried adding all the corections what andrea mentioned , still my engine crashed .and found error "excedded world matrix size".
what is need to be done.
#16
test my code :
http://xoomer.alice.it/afraboni/teamitalia/GuiRadarCtrl.rar
11/14/2006 (11:15 am)
Mmm test my code :
http://xoomer.alice.it/afraboni/teamitalia/GuiRadarCtrl.rar
Torque Owner Chris Byars
Ion Productions