[SOLVED] CELayout editor couldnt open a layout file
Posted: Thu Jul 24, 2008 20:18
Hi,
When I open the following layout file in CELayout editor I get the following error:
GUILayout_xmlHandler::startElement - layout loading has been aborted since no windowfactory is available for 'StaticImage' objects.
I use CELayout editor 0.6.1 stable release binaries.
The layout file is:
<?xml version="1.0" encoding="UTF-8"?>
<GUILayout>
<Window Type="DefaultWindow" Name="LoginUI" >
<Property Name="InheritsAlpha" Value="False" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
<Window Type="StaticImage" Name="LoginUI/PoolImage" >
</Window>
</Window>
</GUILayout>
If I remove the Window Type="StaticImage" tag everything is fine. Here is the log from CELayout Editor.
25/07/2008 01:45:50 (Info) ---- Beginning loading of GUI layout from 'C:\projects\Clients\Tim\TcrOgreGui\Data\gui\Testmainmenu.layout' ----
25/07/2008 01:45:50 (Info) Window 'LoginUI' of type 'DefaultWindow' has been created.
25/07/2008 01:45:50 (Error) CEGUI::UnknownObjectException in file \Temp\CEGUI-0.6.1-vc7\src\CEGUIWindowFactoryManager.cpp(123) : WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'StaticImage' Window objects is not registered with the system.
25/07/2008 01:45:50 (Info) Window 'LoginUI' has been added to dead pool.
25/07/2008 01:45:50 (Error) CEGUI::InvalidRequestException in file \Temp\CEGUI-0.6.1-vc7\src\CEGUIGUILayout_xmlHandler.cpp(233) : GUILayout_xmlHandler::startElement - layout loading has been aborted since no WindowFactory is available for 'StaticImage' objects.
25/07/2008 01:45:50 (Error) WindowManager::loadWindowLayout - loading of layout from file 'C:\projects\Clients\Tim\TcrOgreGui\Data\gui\Testmainmenu.layout' failed.
25/07/2008 01:45:56 (Error) CELayoutEditor has detected and caught an exception. The following detailed info is available:
Description: Unexpected Error
Exception Location: EditorDocument::OnOpenDocument
Exception Message: GUILayout_xmlHandler::startElement - layout loading has been aborted since no WindowFactory is available for 'StaticImage' objects.
Exception Filename: \Temp\CEGUI-0.6.1-vc7\src\CEGUIGUILayout_xmlHandler.cpp
Exception Line: 233
Any help would be greatly appreciated.
Thanks,
Bharani
When I open the following layout file in CELayout editor I get the following error:
GUILayout_xmlHandler::startElement - layout loading has been aborted since no windowfactory is available for 'StaticImage' objects.
I use CELayout editor 0.6.1 stable release binaries.
The layout file is:
<?xml version="1.0" encoding="UTF-8"?>
<GUILayout>
<Window Type="DefaultWindow" Name="LoginUI" >
<Property Name="InheritsAlpha" Value="False" />
<Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
<Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
<Window Type="StaticImage" Name="LoginUI/PoolImage" >
</Window>
</Window>
</GUILayout>
If I remove the Window Type="StaticImage" tag everything is fine. Here is the log from CELayout Editor.
25/07/2008 01:45:50 (Info) ---- Beginning loading of GUI layout from 'C:\projects\Clients\Tim\TcrOgreGui\Data\gui\Testmainmenu.layout' ----
25/07/2008 01:45:50 (Info) Window 'LoginUI' of type 'DefaultWindow' has been created.
25/07/2008 01:45:50 (Error) CEGUI::UnknownObjectException in file \Temp\CEGUI-0.6.1-vc7\src\CEGUIWindowFactoryManager.cpp(123) : WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'StaticImage' Window objects is not registered with the system.
25/07/2008 01:45:50 (Info) Window 'LoginUI' has been added to dead pool.
25/07/2008 01:45:50 (Error) CEGUI::InvalidRequestException in file \Temp\CEGUI-0.6.1-vc7\src\CEGUIGUILayout_xmlHandler.cpp(233) : GUILayout_xmlHandler::startElement - layout loading has been aborted since no WindowFactory is available for 'StaticImage' objects.
25/07/2008 01:45:50 (Error) WindowManager::loadWindowLayout - loading of layout from file 'C:\projects\Clients\Tim\TcrOgreGui\Data\gui\Testmainmenu.layout' failed.
25/07/2008 01:45:56 (Error) CELayoutEditor has detected and caught an exception. The following detailed info is available:
Description: Unexpected Error
Exception Location: EditorDocument::OnOpenDocument
Exception Message: GUILayout_xmlHandler::startElement - layout loading has been aborted since no WindowFactory is available for 'StaticImage' objects.
Exception Filename: \Temp\CEGUI-0.6.1-vc7\src\CEGUIGUILayout_xmlHandler.cpp
Exception Line: 233
Any help would be greatly appreciated.
Thanks,
Bharani