Hello there, I've recently started using CEGui for the project I'm involved in but have run into a few problems.
As you may guess from the title my problem lies with attempting to load a scheme file as I get an exception thrown. I have the CEGUI::System initialised ok but when I call SchemeManager::loadScheme() it all goes wrong.
I'm using CEGui with OGRE and have checked that the scheme files are located correctly and are being found, here's the log in case it helps:
15/04/2005 23:56:27 (InfL1) CEGUI::Logger singleton created.
15/04/2005 23:56:27 (InfL1) ---- Begining CEGUI System initialisation ----
15/04/2005 23:56:27 (InfL1) CEGUI::ImagesetManager singleton created
15/04/2005 23:56:27 (InfL1) CEGUI::FontManager singleton created.
15/04/2005 23:56:27 (InfL1) CEGUI::WindowFactoryManager singleton created
15/04/2005 23:56:27 (InfL1) CEGUI::WindowManager singleton created
15/04/2005 23:56:27 (InfL1) CEGUI::SchemeManager singleton created.
15/04/2005 23:56:27 (InfL1) CEGUI::MouseCursor singleton created.
15/04/2005 23:56:27 (InfL1) CEGUI::GlobalEventSet singleton created.
15/04/2005 23:56:27 (InfL1) WindowFactory for 'DefaultWindow' windows added.
15/04/2005 23:56:27 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
15/04/2005 23:56:27 (InfL1) CEGUI::System singleton created.
15/04/2005 23:56:27 (InfL1) ---- CEGUI System initialisation completed ----
15/04/2005 23:56:27 (InfL1) Attempting to load Scheme from file 'TaharezLook.scheme'.
15/04/2005 23:56:27 (InfL1) Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
15/04/2005 23:56:27 (InfL1) Attempting to create Font from the information specified in file 'tahoma-12.font'.
15/04/2005 23:56:27 (InfL1) Attempting to create Imageset 'Tahoma-12_auto_glyph_images' with texture only.
15/04/2005 23:56:27 (Error) Exception: FactoryModule::FactoryModule - Failed to load module 'CEGUITaharezLook'.
I am a novice to this having only started looking into CEGui seriously a few days ago so I apologise in advance if I've missed anything obvious.
One thing to note is the data files (.scheme etc) were taken from a GUI demo which worked fine, I haven't modified them at all, I've checked the contents of the files to make sure they don't contain any invalid directory information so I'm really puzzled as to why this isn't working.
Any help is greatly appreciated.
Trouble loading a scheme
Moderators: CEGUI MVP, CEGUI Team
- spannerman
- Home away from home
- Posts: 330
- Joined: Wed Jan 12, 2005 12:06
Re: Trouble loading a scheme
Hmm, maybe your using an incompatible scheme file from an old demo?
Does the GUI demo that comes with OGRE work fine for you? If so, try using the data files found in OGRE, in ogrenew\Samples\Media\gui. There you can find the .scheme, .xsd, .imagest and .tga files that will work with current versions of OGRE and CEGUI.
Does the GUI demo that comes with OGRE work fine for you? If so, try using the data files found in OGRE, in ogrenew\Samples\Media\gui. There you can find the .scheme, .xsd, .imagest and .tga files that will work with current versions of OGRE and CEGUI.
Re: Trouble loading a scheme
I'm using the data files from the OGRE Gui demo, i've run the demo app without any problems which is why I'm so stumped on this one.
Re: Trouble loading a scheme
I'm having a similar problem after updating cvs.
Code: Select all
17/04/2005 00:41:41 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
17/04/2005 00:41:41 (InfL1) + Crazy Eddie's GUI System - Event log +
17/04/2005 00:41:41 (InfL1) + (http://www.cegui.org.uk/) +
17/04/2005 00:41:41 (InfL1) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
17/04/2005 00:41:41 (InfL1) CEGUI::Logger singleton created.
17/04/2005 00:41:41 (InfL1) ---- Begining CEGUI System initialisation ----
17/04/2005 00:41:41 (InfL1) CEGUI::ImagesetManager singleton created
17/04/2005 00:41:41 (InfL1) CEGUI::FontManager singleton created.
17/04/2005 00:41:41 (InfL1) CEGUI::WindowFactoryManager singleton created
17/04/2005 00:41:41 (InfL1) CEGUI::WindowManager singleton created
17/04/2005 00:41:41 (InfL1) CEGUI::SchemeManager singleton created.
17/04/2005 00:41:41 (InfL1) CEGUI::MouseCursor singleton created.
17/04/2005 00:41:41 (InfL1) CEGUI::GlobalEventSet singleton created.
17/04/2005 00:41:41 (InfL1) WindowFactory for 'DefaultWindow' windows added.
17/04/2005 00:41:41 (InfL1) WindowFactory for 'DragContainer' windows added.
17/04/2005 00:41:41 (InfL1) WindowFactory for 'ScrolledContainer' windows added.
17/04/2005 00:41:41 (InfL1) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
17/04/2005 00:41:41 (InfL1) CEGUI::System singleton created.
17/04/2005 00:41:41 (InfL1) ---- CEGUI System initialisation completed ----
17/04/2005 00:41:43 (InfL1) Attempting to load Scheme from file 'TaharezLook.scheme'.
17/04/2005 00:41:43 (InfL2) XercesParser::initialiseSchema - Attempting to load schema from file 'GUIScheme.xsd'.
17/04/2005 00:41:43 (InfL2) XercesParser::initialiseSchema - XML schema file 'GUIScheme.xsd' has been initialised.
17/04/2005 00:41:43 (InfL2) Started creation of Scheme 'TaharezLook' via XML file.
17/04/2005 00:41:43 (InfL2) Finished creation of Scheme 'TaharezLook' via XML file.
17/04/2005 00:41:43 (InfL2) Loaded GUI scheme 'TaharezLook' from data in file 'TaharezLook.scheme'.
17/04/2005 00:41:43 (InfL2) ---- Begining resource loading for GUI scheme 'TaharezLook' ----
17/04/2005 00:41:43 (InfL1) Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
17/04/2005 00:41:43 (InfL3) All images have been removed from Imageset ''.
17/04/2005 00:41:43 (InfL2) XercesParser::initialiseSchema - Attempting to load schema from file 'Imageset.xsd'.
17/04/2005 00:41:43 (InfL2) XercesParser::initialiseSchema - XML schema file 'Imageset.xsd' has been initialised.
17/04/2005 00:41:43 (InfL2) Started creation of Imageset 'TaharezLook' via XML file.
17/04/2005 00:41:43 (Error) Exception: Imageset::xmlHandler::startElement - An unexpected error occurred while creating a Texture object from file 'TaharezLook.tga'
Re: Trouble loading a scheme
Spudder: I had the same problem, I fixed it by building xerces-c from source (I used gentoos "emerge xerces-c" before, which didn't work). This fix was suggested on the Ogre forums (http://www.ogre3d.org/phpBB2/viewtopic. ... 8416#58416).
Re: Trouble loading a scheme
*bump* Long time no speak Spudder! Fancy bumping into you on the CEGUI forum!
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 12 guests