it's the first time I use cegui and I'm having problems creating a scheme from a file. The program throws an InvalidRequestException, I don't know why..
heres the log error:
Code: Select all
CEGUI::InvalidRequestException in function 'void __thiscall CEGUI::IrrlichtResourceProvider::loadRawDataContainer(const class CEGUI::String &,class CEGUI::RawDataContainer &,const class CEGUI::String &)' (C:\Users\sam\Desktop\cegui-0.8.7\cegui\src\RendererModules\Irrlicht\ResourceProvider.cpp:65) : Filename supplied for loading must be valid [TaharezLook.looknfeel]
Another problem I've noticed in this error is that he's looking for resourceProvider.cpp in the folder where i compiled cegui and not the one which is on my visualstudio project.
Here is my code where i create a resource group directory for images, schemes, fonts... and how do I load the scheme were the programme crashes
Code: Select all
CEGUI::DefaultResourceProvider* rp = static_cast<CEGUI::DefaultResourceProvider*>(CEGUI::System::getSingleton().getResourceProvider());
rp->setResourceGroupDirectory("imagesets", "libraries/cegui/GUI/imagesets/");
rp->setResourceGroupDirectory("schemes", "libraries/cegui/GUI/schemes/");
rp->setResourceGroupDirectory("fonts", "libraries/cegui/GUI/fonts/");
rp->setResourceGroupDirectory("layouts","libraries/cegui/GUI/layouts/");
rp->setResourceGroupDirectory("looknfeel", "libraries/cegui/GUI/looknfeel/");
rp->setResourceGroupDirectory("lua_scripts", "libraries/cegui/GUI/lua_scripts/");
CEGUI::ImageManager::setImagesetDefaultResourceGroup("imagesets");
CEGUI::Scheme::setDefaultResourceGroup("schemes");
CEGUI::Font::setDefaultResourceGroup("fonts");
CEGUI::WidgetLookManager::setDefaultResourceGroup("looknfeels");
CEGUI::WindowManager::setDefaultResourceGroup("layouts");
CEGUI::ScriptModule::setDefaultResourceGroup("lua_scripts");
Code: Select all
CEGUI::SchemeManager::getSingleton().createFromFile("TaharezLook.scheme");
CEGUI::FontManager::getSingleton().createFromFile("DejaVuSans-10.font");
m_context->setDefaultFont(fontFile);