Assert and resource error [solved]

Slicky

17-09-2013 22:34:18

Using Ogre 1.9

Right as I hit mGUI->initialise(); in my code I get a sharedptr assert and the myGui log has this in it:

14:30:27 | Platform | Error | Texture 'DejaVuSansFontGenerated_15.png' not found, set default texture | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreTexture.cpp

I do have the resource path set correctly.

Any idea what is going on?

Slicky

18-09-2013 00:04:52

I got past the assert problem. Now it seems that the resources are not being found - specifically the png files. It seems to parse the xml files but then not see the png files in the same directory.

15:50:30 | Core | Info | Load ini file 'MyGUI_BlueWhiteTheme.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 114
15:50:30 | Core | Info | Load ini file 'MyGUI_BlueWhiteImages.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 114
15:50:30 | Core | Info | Load ini file 'MyGUI_BlueWhiteSkins.xml' | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 114
15:50:30 | Core | Error | Texture 'MyGUI_BlueWhiteSkins.png' not found | ..\..\MyGUIEngine\src\MyGUI_TextureUtility.cpp | 41
15:50:30 | Core | Error | Texture 'MyGUI_BlueWhiteSkins.png' not found | ..\..\MyGUIEngine\src\MyGUI_TextureUtility.cpp | 41

Slicky

18-09-2013 00:11:08

ok solved it seems.

In the ogre resource.cfg file the mygui resources need to under the [General] category. I had added them under the [Popular] category.