Bug #892

wallpaper txt codec fix

Added by neorej16 5 months ago. Updated 5 months ago.

Status:Fixed Start date:12/30/2011
Priority:Normal Due date:
Assignee:tdev % Done:

100%

Category:RoR - GUI
Target version:0.39
Operating System:Cross-Platform Operating System Bits:32 Bit

Description

Error message:
14:44:11: Texture: wallpaper.jpg: Loading 1 faces(PF_R8G8B8,495x371x1) with 0 generated mipmaps from Image. Internal format is PF_X8R8G8B8,495x371x1.
14:44:11: OGRE EXCEPTION: Can not find codec for 'txt' image format.

Problem:
The game tries to load the info.txt file as wallpaper.

Possible fix:
In source/main/gui/gui_manager.cpp:186: change
FileInfoListPtr files = Ogre::ResourceGroupManager::getSingleton().findResourceFileInfo("Wallpapers", "*", false);
to
FileInfoListPtr files = Ogre::ResourceGroupManager::getSingleton().findResourceFileInfo("Wallpapers", "*.jpg", false);

Notes:
I didn't test this.

Associated revisions

Revision 2296
Added by tdev 5 months ago

fixes #892

History

#1 Updated by tdev 5 months ago

  • Status changed from requires testing to Fixed
  • % Done changed from 50 to 100

thanks for finding it, i experienced this as well, but was unaware of the actual problem.

Also available in: Atom PDF