loading .scheme file error

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

iversion
Just popping in
Just popping in
Posts: 18
Joined: Sat Jun 24, 2006 05:03

loading .scheme file error

Postby iversion » Thu Jul 20, 2006 02:42

I want to load the .scheme file in the OGRE_HOME/bin/datafiles/schemes/TaharezLookSkin.scheme.

And my code is as follows:

Code: Select all

CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"..\\datafiles\\schemes\\TaharezLookSkin.scheme");

(I use VC7.1.)
When the exe is executed, there goes the exception saying that can not locate resource ..\datafiles\schemes\TaharezLookSkin.scheme in resource group.Quite strange, if I put the scheme files in the OGRE_HOME/media/gui, there won't be anything wrong.
Can anybody tell my why? Thank you:)

Rackle
CEGUI Team (Retired)
Posts: 534
Joined: Mon Jan 16, 2006 11:59
Location: Montréal

Postby Rackle » Thu Jul 20, 2006 05:05

Check the contents of Ogre_Resources.cfg. If you have FileSystem=. then you could try loadScheme("datafiles/schemes/TaharezLookSkin.scheme"), assuming that the executable is run from the OGRE_HOME/bin directory.

Mine contains FileSystem=Game_Data/media/cegui_datafiles/schemes which allows me to call loadScheme("TaharezLook.scheme").

iversion
Just popping in
Just popping in
Posts: 18
Joined: Sat Jun 24, 2006 05:03

Postby iversion » Thu Jul 20, 2006 09:12

OK, I got it.
Thank you very much! :)


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests