Demo problem..

mrbrdo

27-01-2007 15:26:59

Hello.

I installed the ogreSDK to:
C:\Programming\OgreSDK (\bin, \lib, \samples, \media ...)
and the addon SDK to
C:\Programming\paginglandscape (\PlugIns, \Samples, \Tools)

Everything compiled fine under Code::Blocks on Windows, i just had to copy the built exes\dll\cfgs to the OgreSDK\bin\Release directory.
I ran the MapSplitter i built previously (i had to edit resources.cfg a bit first) and it made C:\TsmTerrain and C:\Alpes directories and put some .png's in them. When i ran the demo after this, it said it cannot find the media\terrains\Alpes directory so i made one and copied the C:\Alpes directory there (to C:\Programming\paginglandscape\Samples\Media\paginglandscape2\terrains\alpes\*.png).
I didn't know what to do with the TsmTerrain directory.

Now i don't get any more errors and the RELEASE version of the demo works fine now.

The demo DEBUG application (i use the cfg's from the debug directory of the addon too, and i built a debug version of the dll and renamed it _d.dll) doesn't ask me for settings, like it does for other examples (like if i want to use DX or OGL) - it also does not create "plsm2_display.cfg" like the release version does. May be relevant, from the log:
Loading library .\RenderSystem_Direct3D9
D3D9 : Direct3D9 Rendering Subsystem created.
D3D9 : Driver Detection Starts
D3D9 : Driver Detection Ends

After this it loads OpenGL.
It crashes before showing any screen, with this output at the end in the console:
...
Added resource location '../../../paginglandscape/Samples/Media/paginglandscape2/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
Added resource location '../../../paginglandscape/Samples/Media/paginglandscape2/terrains' of type 'FileSystem' to resource group 'PLSM2'

Parts of plsm2.log (note that i never added .../ogreaddons/... to resources_plsm2.cfg, as far as i can see this is coming from the .cpp code):
16:46:24: Creating resource group PLSM2
16:46:24: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 8
Function: FileSystemArchive::changeDirectory
Description: Cannot open requested directory ../../../../../ogreaddons/paginglandscape/Samples/Media/paginglandscape2.
File: C:\SoftwareDevelopment\C++\MinGW\ogrenew_STABLE\OgreMain\src\OgreFileSystem.cpp
Line: 141
(added by me: NO CRASH YET)

... ( coming are the last lines of the log: )

16:46:24: Added resource location '../../../paginglandscape/Samples/Media/paginglandscape2/materials/programs' of type 'FileSystem' to resource group 'PLSM2'
16:46:24: Added resource location '../../../paginglandscape/Samples/Media/paginglandscape2/datasrcs' of type 'FileSystem' to resource group 'PLSM2'
16:46:24: Added resource location '../../../paginglandscape/Samples/Media/paginglandscape2/terrains' of type 'FileSystem' to resource group 'PLSM2'
END OF FILE (added by me so you know)

Btw the debug backtrace only shows system DLLs and not Ogre dlls, so i cannot determine where this error is coming from.
#0 77AB2086 ntdll!RtlUnhandledExceptionFilter() (ntdll.dll:??)
#1 00000000 ??() (??:??)
#2 002D0000 ??() (??:??)
#3 021B8910 ??() (??:??)
#4 0022FB7C ??() (??:??)
#5 000001FF ??() (??:??)
#6 0022F5BC ??() (??:??)
#7 0000004D ??() (??:??)
#8 0022F708 ??() (??:??)
#9 77A58BF2 ntdll!EtwSetMark() (ntdll.dll:??)
#10 77A92B54 ntdll!RtlRealPredecessor() (ntdll.dll:??)
#11 FFFFFFFE ??() (??:??)
#12 77AB2033 ntdll!RtlUnhandledExceptionFilter() (ntdll.dll:??)
#13 021B8908 ??() (??:??)
#14 0022F6B8 ??() (??:??)
#15 77AB18C3 ntdll!RtlFreeThreadActivationContextStack() (ntdll.dll:??)
#16 021B8910 ??() (??:??)
#17 00000000 ??() (??:??)
#18 FFFFFFFF ??() (??:??)
#19 0022F6CC ??() (??:??)
#20 77767A7E KERNEL32!HeapLock() (C:\Windows\system32\kernel32.dll:??)
#21 002D0000 ??() (??:??)
#22 00000000 ??() (??:??)
#23 021B8908 ??() (??:??)
#24 0022F718 ??() (??:??)
#25 772DA097 msvcrt!free() (C:\Windows\system32\msvcrt.dll:??)
#26 002D0000 ??() (??:??)
#27 00000000 ??() (??:??)
#28 021B8910 ??() (??:??)
#29 B4D04EA5 ??() (??:??)