problem with GranTurismOgre demo

teocharos

22-12-2009 09:17:15

Hello guys, as you notice this is my first post!!!(And one of the few from Greece!!!!!)
At first I have to say that I am quite a noob, and my English are not the best
I have encountered a problem when trying to run the demos, I get the following runtime error:
"An unhandled exception occured in OgreOdeDemo_GranTurismo.exe....."(I'm having the same problem with the rest of the demos too )
I have VC++ 8 Express, Ogre 1.6.2, Ode 0.11.1and OgreOde from the SVN. I have them all built and ode demos are running.
I think there is a problem with the resource management, I just can't get it!
(I built OgreOde_Source linking with ode_doubled.lib)
My "resource code" is this (I only change the paths, hopefully right):
if (std::find(groups.begin(), groups.end(), String("OgreOde")) == groups.end())
{
FileInfoListPtr finfo = ResourceGroupManager::getSingleton().findResourceFileInfo (
"Bootstrap", "axes.mesh");

const bool isSDK = (!finfo->empty()) &&
StringUtil::startsWith (finfo->begin()->archive->getName(), "../../../../../OgreSDK/media/packs/ogrecore.zip", true);


rsm->createResourceGroup("OgreOde");
if (isSDK)
{
rsm->addResourceLocation("../../../../OgreOde SVN/demos/Media","FileSystem", "OgreOde");
}
else
{
rsm->addResourceLocation("../../../demos/Media","FileSystem", "OgreOde");
}
}

And this is my log file:
11:08:13: Creating resource group General
11:08:13: Creating resource group Internal
11:08:13: Creating resource group Autodetect
11:08:13: SceneManagerFactory for type 'DefaultSceneManager' registered.
11:08:13: Registering ResourceManager for type Material
11:08:13: Registering ResourceManager for type Mesh
11:08:13: Registering ResourceManager for type Skeleton
11:08:13: MovableObjectFactory for type 'ParticleSystem' registered.
11:08:13: OverlayElementFactory for type Panel registered.
11:08:13: OverlayElementFactory for type BorderPanel registered.
11:08:13: OverlayElementFactory for type TextArea registered.
11:08:13: Registering ResourceManager for type Font
11:08:13: ArchiveFactory for archive type FileSystem registered.
11:08:13: ArchiveFactory for archive type Zip registered.
11:08:13: FreeImage version: 3.10.0
11:08:13: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
11:08:13: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2
11:08:13: DDS codec registering
11:08:13: Registering ResourceManager for type HighLevelGpuProgram
11:08:13: Registering ResourceManager for type Compositor
11:08:13: MovableObjectFactory for type 'Entity' registered.
11:08:13: MovableObjectFactory for type 'Light' registered.
11:08:13: MovableObjectFactory for type 'BillboardSet' registered.
11:08:13: MovableObjectFactory for type 'ManualObject' registered.
11:08:13: MovableObjectFactory for type 'BillboardChain' registered.
11:08:13: MovableObjectFactory for type 'RibbonTrail' registered.
11:08:13: Loading library .\RenderSystem_Direct3D9

I just want to make a simple project with OgreOde for my thesis at the university (using the vehicle support).
Any help would be a deus ex machina, hehehe