Page 1 of 1

loading .scheme file error

Posted: Thu Jul 20, 2006 02:42
by iversion
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:)

Posted: Thu Jul 20, 2006 05:05
by Rackle
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").

Posted: Thu Jul 20, 2006 09:12
by iversion
OK, I got it.
Thank you very much! :)