Page 1 of 1

Layout-Editor can't load layouts

Posted: Sat May 26, 2007 12:01
by RecyclingDuck
Hi,

i created my own layout with the current release of the CEGUI Layout Editor.
There is everything fine, without the fact, that i'm not able to load an existing layout.

That's what the CEGUI.log says:

Code: Select all

26/05/2007 13:25:46 (InfL2)   WindowRenderer factory 'Falagard/Tooltip' appears to be already registered, skipping.
26/05/2007 13:25:46 (InfL2)   WindowRenderer factory 'Falagard/ItemListbox' appears to be already registered, skipping.
26/05/2007 13:25:46 (InfL1)   Creating falagard mapping for type 'WindowsLook/CloseButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'WindowsLook/CloseButton'.
26/05/2007 13:25:46 (InfL2)   ---- Resource loading for GUI scheme 'WindowsLookWidgets' completed ----
26/05/2007 13:25:50 (InfL2)   ---- Beginning loading of GUI layout from 'code_red.layout' ----
26/05/2007 13:25:50 (Error)   Exception: DefaultResourceProvider::load - code_red.layout does not exist
26/05/2007 13:25:50 (Error)   WindowManager::loadWindowLayout - loading of layout from file 'code_red.layout' failed.
26/05/2007 13:26:34 (InfL2)   ---- Beginning loading of GUI layout from 'ogregui.layout' ----
26/05/2007 13:26:34 (Error)   Exception: DefaultResourceProvider::load - ogregui.layout does not exist
26/05/2007 13:26:34 (Error)   WindowManager::loadWindowLayout - loading of layout from file 'ogregui.layout' failed.


(I also tried to load the ogregui.layout - but even that doesn't work)

Any idea !? :?

Posted: Sat May 26, 2007 14:51
by Rackle
>> Exception: DefaultResourceProvider::load - code_red.layout does not exist

The application is not finding your .layout file. It looks like you're using Ogre so have a look at your resources.cfg; that's where the Ogre resource/file system is looking for.

Posted: Sat May 26, 2007 17:18
by RecyclingDuck
You misunderstood me ;(

I'm using the CEGUI Layout editor and just try to open some *.layout file through the dialog "Select a file".
Perchance here i tried to open a layout-file called ogregui.layout and anotherone called code_red.layout.
But the error isn't linked to ogre, just to the Layout-Editor. ;)

Posted: Sun May 27, 2007 11:26
by Rackle
Maybe the version of the Layout Editor and the .layout files do not match. There's a Python script in the Wiki to update the .layout files.

Maybe your .layout file is not in the same directory as the existing .layout file. This has been fixed in the latest version, from SVN. Or look for my post within the Utilities forum, about using multiple LayoutEditor.ini configuration files.

Posted: Sun May 27, 2007 15:59
by RecyclingDuck
Ahh, I got it ;)

I didn't know that i have to store the file in the layout-folder.
Thanks ;)