Demo01_TheBasics problem

pawka

04-05-2008 15:08:07

Hi,
I'm using vc9 and Ogre 1.4.7
Ogre examples run without any problems, but when I try to run OgreNewt the first demo example I get:


The program '[2824] Demo01_TheBasics.exe: Native' has exited with code 0 (0x0).


and the Ogre.log file looks like that:

15:43:41: Creating resource group General
15:43:41: Creating resource group Internal
15:43:41: Creating resource group Autodetect
15:43:41: SceneManagerFactory for type 'DefaultSceneManager' registered.
15:43:41: Registering ResourceManager for type Material
15:43:41: Registering ResourceManager for type Mesh
15:43:41: Registering ResourceManager for type Skeleton
15:43:41: MovableObjectFactory for type 'ParticleSystem' registered.
15:43:41: OverlayElementFactory for type Panel registered.
15:43:41: OverlayElementFactory for type BorderPanel registered.
15:43:41: OverlayElementFactory for type TextArea registered.
15:43:41: Registering ResourceManager for type Font
15:43:41: ArchiveFactory for archive type FileSystem registered.
15:43:41: ArchiveFactory for archive type Zip registered.
15:43:41: FreeImage version: 3.10.0
15:43:41: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
15:43:41: 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
15:43:41: DDS codec registering
15:43:41: Registering ResourceManager for type HighLevelGpuProgram
15:43:41: Registering ResourceManager for type Compositor
15:43:41: MovableObjectFactory for type 'Entity' registered.
15:43:41: MovableObjectFactory for type 'Light' registered.
15:43:41: MovableObjectFactory for type 'BillboardSet' registered.
15:43:41: MovableObjectFactory for type 'ManualObject' registered.
15:43:41: MovableObjectFactory for type 'BillboardChain' registered.
15:43:41: MovableObjectFactory for type 'RibbonTrail' registered.
15:43:41: OGRE EXCEPTION(6:FileNotFoundException): 'plugins.cfg' file not found! in ConfigFile::load at f:\ogre_cvs_vc9\ogrenew_146\ogremain\src\ogreconfigfile.cpp (line 84)
15:43:41: plugins.cfg not found, automatic plugin loading disabled.
15:43:41: *-*-* OGRE Initialising
15:43:41: *-*-* Version 1.4.7 (Eihort)
15:43:41: OGRE EXCEPTION(6:FileNotFoundException): 'resources.cfg' file not found! in ConfigFile::load at f:\ogre_cvs_vc9\ogrenew_146\ogremain\src\ogreconfigfile.cpp (line 84)
15:43:41: *-*-* OGRE Shutdown
15:43:41: Unregistering ResourceManager for type Compositor
15:43:41: Unregistering ResourceManager for type Font
15:43:41: Unregistering ResourceManager for type Skeleton
15:43:41: Unregistering ResourceManager for type Mesh
15:43:41: Unregistering ResourceManager for type HighLevelGpuProgram
15:43:41: Unregistering ResourceManager for type Material


and I don't know why it can't find resources.cfg and plugins.cfg (which are in bin (debug and release) catalog?

Can anyone help me?

Sorry for my english.

pra

04-05-2008 21:32:06

using visual studio?
check if the working directory is set right. in vc8, it's in project properties->configuration properties->debuging
i have Command=$(TargetDir)$(TargetFileName) and Working Directory=$(TargetDir)
Vc8 seems to randomly reset them from time to time, though...

edit: make sure you set it for both Debug and Release

pawka

09-05-2008 12:54:45

thanks. it helped me but only with the first demo. When i try run the second demo (and other) i have the same exception:(. Also, when i used my ogre project and changed it into ogrenewt project i had the same problem but not with resources.cfg etc but with "cilinder.mesh". The application searched it on the h:\ drive which even not exist:/.

pra

09-05-2008 13:38:49

yes, you would have to change it for all of them, i think :(

pawka

09-05-2008 13:58:48

ok, I think I've solved those problems, but now i have some new exceptions/warnings:


OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at f:\ogre_cvs_vc9\ogrenew_146\ogremain\src\ogregpuprogram.cpp (line 883)
11:27:39: Error at line 29 of deferred_post_minilight.hlsl.program: Invalid param_named_auto attribute - Parameter called lightSpecularColor does not exist.
...
Mesh: Loading cylinder.mesh.
11:27:46: WARNING: cylinder.mesh is an older format ([MeshSerializer_v1.30]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
11:27:46: Can't assign material Simple/BeachStones to SubEntity of Floor because this Material does not exist. Have you forgotten to define it in a .material script?


would it help if I use other models which are delivered with OGRE (not with OgreNewt)??