Cannot open requested directory

antichrist

18-02-2006 18:06:36

When i try the example the application quits after throwing this error :

Description: Cannot open requested directory ../../../../Samples/Media/paginglandscape2/terrains/ps_height_1k.

Now, i've checked it out. It is a directory and i've set permissions to 777 for fun. Anyone had similar error ?



Creating resource group General

An exception has occured: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: FileSystemArchive::changeDirectory
Description: Cannot open requested directory ../../../../Samples/Media/paginglandscape2/terrains/ps_height_1k.
File: OgreFileSystem.cpp
Line: 141
Stack unwinding: <<beginning of stack>>
*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unloading library /usr/lib/OGRE/Plugin_PagingLandScape2
Unloading library /usr/lib/OGRE/Plugin_OctreeSceneManager
Unregistering ResourceManager for type BspLevel
Unloading library /usr/lib/OGRE/Plugin_BSPSceneManager
Unloading library /usr/lib/OGRE/Plugin_ParticleFX
Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
Unregistering ResourceManager for type GpuProgram
******************************
*** Stopping SDL Subsystem ***
******************************
Unregistering ResourceManager for type Texture
Unloading library /usr/lib/OGRE/RenderSystem_GL
Unregistering ResourceManager for type Material
Unloading library libOgrePlatform.so

tuan kuranes

18-02-2006 19:14:44

try to replace it by "../../Samples/Media/paginglandscape2/terrains/ps_height_1k"
Linux folder configuration not being the same leads to problems...
Tell me if it's ok and i'll fix it in cvs.

Kentamanos

18-02-2006 19:41:10

tuan, even on Windows using CVS version, I still need to create some empty directories before I can run mapslitter etc. The one he mentions is the first one it whines about.

EDIT: If you've changed anything about this fairly recently (within the past 5 days or so) ignore my report.

antichrist

18-02-2006 19:54:41

try to replace it by "../../Samples/Media/paginglandscape2/terrains/ps_height_1k"
Linux folder configuration not being the same leads to problems...
Tell me if it's ok and i'll fix it in cvs.


And where do i do this? I thought it looked up the file/dir from the ResourceManager, and all the dir's there are correct. (no extra ../../ )

Kentamanos

18-02-2006 20:00:30

The "resource.cfg" files (the MapSplitter has a slightly different one) determine what paths are added to the resource manager. (which I think you realize).

I think the problem really is CVS doesn't have these initially empty directories (unless it's changed fairly recently). When I build with CVS, I end up creating a few empty directories (that the MapSplitter ends up writing stuff out to I think...).

antichrist

19-02-2006 14:26:20

The only solution for me was to make a symlink. Now that didn't work either, because it started whining about the splatting textures. They should have been PNG's, not JPG's. After converting the files, it still won't run. Now there are some problems with materials :

...
Parsing script colors.material
Parsing script DebugOverlay.overlay
Parsing script PagingLandScape.overlay
Parsing script PagingLandScape2.overlay
Finished parsing scripts for resource group PLSM2
Texture: flare.png: Loading 1 faces(PF_B8G8R8,256x256x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,256x256x1.
WARNING: Mesh instance 'grassblades' was defined as manually loaded, but no manual loader was provided. This Resource will be lost if it has to be reloaded.
Texture: cursor.png: Loading 1 faces(PF_A8B8G8R8,32x32x1) with 5 hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
An exception has occured: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 4
Function: Pass::getVertexProgramParameters
Description: This pass does not have a vertex program assigned!.
File: OgrePass.cpp
Line: 1007
Stack unwinding: <<beginning of stack>>
*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unloading library /usr/lib/OGRE/Plugin_PagingLandScape2
Unloading library /usr/lib/OGRE/Plugin_OctreeSceneManager
Unregistering ResourceManager for type BspLevel
Unloading library /usr/lib/OGRE/Plugin_BSPSceneManager
Unloading library /usr/lib/OGRE/Plugin_ParticleFX
Render Target 'OGRE Render Window' Average FPS: 0 Best FPS: 0 Worst FPS: 999
Unregistering ResourceManager for type GpuProgram
******************************
*** Stopping SDL Subsystem ***
******************************
Unregistering ResourceManager for type Texture
Unloading library /usr/lib/OGRE/RenderSystem_GL
Unregistering ResourceManager for type Material
Unloading library libOgrePlatform.so


I also get a lot of CG errors (i compiled without support for this). Maybe that is my problem?

tuan kuranes

20-02-2006 07:54:55

I also get a lot of CG errors (i compiled without support for this). Maybe that is my problem?
That's the problem.

You can try disable vertexCompression, vertexMorphing in and all texture mode using shaders (splatting5, splattingShader, instantbaseshadowed) in all terrain config files you intend to use.

or compile with CG support.

antichrist

20-02-2006 22:14:49

Now it's whinig about a texture that is missing from CVS (ps_texture_1k.1.1.png). Still got a few Cg errors, but i think those are OK.

anti-s@anti-stasjon /usr/src/ogreaddons/paginglandscape/Samples/Common/bin $ ./PagingLandScape2

An exception has occured: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource ps_texture_1k.1.1.png in resource group PLSM2 or any other group..
File: OgreResourceGroupManager.cpp
Line: 583
Stack unwinding: <<beginning of stack>>
*-*-* OGRE Shutdown
Unregistering ResourceManager for type Compositor
Unregistering ResourceManager for type Font
Unregistering ResourceManager for type Skeleton
Unregistering ResourceManager for type Mesh
Unregistering ResourceManager for type HighLevelGpuProgram
Unloading library /usr/lib/OGRE/Plugin_CgProgramManager
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

jacmoe

20-02-2006 22:50:28

Two small comments:

The 'hlsl' errors can be safely ignored: it is d3d9 shaders, which does not exsist on Linux.

Did you run the mapsplitter prior to running your app?

antichrist

20-02-2006 23:06:48

MapSplitter throws the same error. Missing texture.

tuan kuranes

21-02-2006 08:26:48

MapSplitter doesn't need this file, so it shouldn't throw the error.
Are you sure that you ran it ?

antichrist

21-02-2006 15:01:46

MapSplitter doesn't need this file, so it shouldn't throw the error.
Are you sure that you ran it ?


Yes. Look :
anti-s@anti-stasjon /usr/src/ogreaddons/paginglandscape/Samples/Common/bin $ ./MapSplitter

Termination handler: uncaught exception!
*-*-* OGRE Shutdown
*** ERROR: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: ResourceGroupManager::openResource
Description: Cannot locate resource ps_height_1k.png in resource group PLSM2 or any other group..
File: OgreResourceGroupManager.cpp
Line: 583
Stack unwinding: <<beginning of stack>>

tuan kuranes

21-02-2006 15:09:40

It's not the same message.

It's looking for the big heightmap "ps_height_1k.png" that will be splitted in small ones (with numbers "ps_height_1k.1.1.png") by mapsplitter.

It should be located in "../../Media/paginglandscape2/datasrcs"

If not, you may have missed the step where you get the downloadable datasrc pack as specified in PLSM2 Wiki page

antichrist

21-02-2006 16:35:39

Solved the texture problem. The zip file had directories, so the files were not at the right place. Now, when i run PagingLandscape2 i get this error :
anti-s@anti-stasjon /usr/src/ogreaddons/paginglandscape/Samples/Common/bin $ ./PagingLandScape2

PagingLandScape2: OgreSDLInput.cpp:353: virtual bool Ogre::SDLInput::isKeyDownImmediate(Ogre::KeyCode) const: Assertion `mKeyboardBuffer && "SDLInput::isKeyDownImmediate called before SDLInput::capture has initialized it"' failed.
Aborted

tuan kuranes

21-02-2006 17:03:35

had this before under linux. I tought I had fixed it strange.
Try comment the test in Samples/PagingLandscape2/include/FrameListener.h:433

if (!mInputTypeSwitchingOn)
//(!mUseBufferedInputKeys || ! mUseBufferedInputMouse)

to something that works... perhaps

if (
//!mInputTypeSwitchingOn)
(!mUseBufferedInputKeys || ! mUseBufferedInputMouse
)

problem is there.