[BUG] GuiChunkedBitmapCtrl
by Davide Archetti · in Torque 3D Professional · 05/24/2009 (2:01 pm) · 2 replies
If you open the gui editor (F10) and try to create a new gui, and, select GuiChunkedBitmapCtrl as the GUI class, when you press the create button, the engine asserts.
This is because it is trying to crete a texture without a texture name.
The problem is fixed adding a few more controls in the onWake function:
before it was only
This is because it is trying to crete a texture without a texture name.
The problem is fixed adding a few more controls in the onWake function:
bool GuiChunkedBitmapCtrl::onWake()
{
if(!Parent::onWake())
return false;
if( !mTexHandle && (mBitmapName[0] || mUseVariable && mConsoleVariable[0]))
{
if ( mUseVariable )
mTexHandle.set( Con::getVariable( mConsoleVariable ), &GFXDefaultGUIProfile, avar("%s() - mTexHandle (line %d)", __FUNCTION__, __LINE__) );
else
mTexHandle.set( mBitmapName, &GFXDefaultGUIProfile, avar("%s() - mTexHandle (line %d)", __FUNCTION__, __LINE__) );
}
return true;
}before it was only
... if( !mTexHandle) ...
#2
"New Project.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
And this was in console log:
05/31/2009 (8:53 am)
Might be a similar issue with GuiBitmapBorderCtrl. Drag to palette causes:"New Project.exe has encountered a problem and needs to close. We are sorry for the inconvenience."
And this was in console log:
Quote:
Failed to create resource: [core/fonts/Arial 12 (ansi).uft]
tools/guiEditor/gui/guiEditor.ed.cs (293): Unable to find object: 'GuiEditorInspectName' attempting to call function 'setValue'
Set::getObject index out of range.
Set::getObject index out of range.
Set::getObject index out of range.
tools/guiEditor/gui/guiEditor.ed.cs (293): Unable to find object: 'GuiEditorInspectName' attempting to call function 'setValue'
GuiControl::awaken: failed onWake for obj: (null)
Associate Rene Damm
Good catch. Thanks for reporting.
Merged into repo.