Trouble loading a scheme

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Spudder
Just popping in
Just popping in
Posts: 4
Joined: Fri Apr 15, 2005 23:48
Contact:

Trouble loading a scheme

Postby Spudder » Sat Apr 16, 2005 00:00

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.

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Trouble loading a scheme

Postby spannerman » Sat Apr 16, 2005 01:08

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.

User avatar
Spudder
Just popping in
Just popping in
Posts: 4
Joined: Fri Apr 15, 2005 23:48
Contact:

Re: Trouble loading a scheme

Postby Spudder » Sat Apr 16, 2005 11:12

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.

Slicky
Quite a regular
Quite a regular
Posts: 63
Joined: Wed Jan 12, 2005 12:06

Re: Trouble loading a scheme

Postby Slicky » Sun Apr 17, 2005 00:45

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'



User avatar
BRAINLESS
Just popping in
Just popping in
Posts: 7
Joined: Wed Mar 30, 2005 19:18
Contact:

Re: Trouble loading a scheme

Postby BRAINLESS » Fri May 06, 2005 00:14

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).

User avatar
TheGilb
Just popping in
Just popping in
Posts: 4
Joined: Fri Jan 28, 2005 11:17

Re: Trouble loading a scheme

Postby TheGilb » Fri May 06, 2005 14:13

*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 11 guests