Exception: DefaultResourceProvider

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

angela4et
Just popping in
Just popping in
Posts: 7
Joined: Mon Jul 03, 2006 06:36
Contact:

Exception: DefaultResourceProvider

Postby angela4et » Mon Aug 07, 2006 10:37

em in my log file i keep getting this exception

pls anyone knows how to resovle this ?

thanks

07/08/2006 18:30:08 (Error) Exception: DefaultResourceProvider::load - Imageset.xsd does not exist
07/08/2006 18:30:08 (Error) Exception: DefaultResourceProvider::load - Font.xsd does not exist


:lol:

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon Aug 07, 2006 10:59

Hi,

when cegui loads an xml file, it looks for the corresponding xsd file to validate that xml file. Try to copy the xsd files from "datafiles/<resource>/resource.xsd" into your applications' startup folder. To avoid more errors, please copy these as well:

-Falagard.xsd
-Falagard.xsd
-GUILayout.xsd
-GUIScheme.xsd

Good luck! :-)

angela4et
Just popping in
Just popping in
Posts: 7
Joined: Mon Jul 03, 2006 06:36
Contact:

Postby angela4et » Tue Aug 15, 2006 06:10

:)
thanks it works!
but i notice i can only put it in the same derectory with the debug.exe
other than that it just give me the same error.
how can i solve that also?
i mean just dump everything there looks very messy..... :idea: :)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Aug 16, 2006 11:13

Assuming version 0.4.1.

It *should* function with the .xsd files in either the startup directory or the same directory as the XML file being loaded. However, in the latter case you will still get an error logged (once it fails the first time, it will look in the alternate location). Fatality only occurrs when you get the two errors.

For info, in 0.5.0 code DefaultResourceProvider has been improved, and it's possible to have the Xerces XML parser look in an arbitary location for the .xsd files. Having said this, of course you probably want to wait for 0.5.0 stable release before evaluating and deciding whether to upgrade - especially since there are quite some breaking changes in there for existing projects.

If you are already using the 0.5.0 Release Candidates, then please look at the following: http://www.cegui.org.uk/wiki/index.php/Overview_of_resource_system_enhancements_in_0.5.0

CE.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest