dreadwulgaru
06-02-2008 20:01:09
I've been trying for the past few hours to solve an assertion failure with no success. This is the error that comes up:
Assertion failed!
Program: c:/SealedMinds/bin/Debug/SealedMinds.exe
File: ../src/OgrePagingLandScapeSceneManager.cpp
Line: 365
Expression: mPageManager
I went to the line in the file, and found:
I'm not entirely sure what is going on, all of my resources are in the proper places. I create the scene manager like so:
This is paginglandscape2.cfg
This is in Map_World_Large.cfg:
I've looked all over the forums, and though I did find someone with an assertion failure, they were not having the same problem. Any help would be appreciated. Thanks.
Assertion failed!
Program: c:/SealedMinds/bin/Debug/SealedMinds.exe
File: ../src/OgrePagingLandScapeSceneManager.cpp
Line: 365
Expression: mPageManager
I went to the line in the file, and found:
assert(mPageManager);
I'm not entirely sure what is going on, all of my resources are in the proper places. I create the scene manager like so:
// in createSceneManager
mSceneMgr=Root::getSingletonPtr()->createSceneManager("PagingLandScapeSceneManager","GameManager");
// in createScene
mSceneMgr->setWorldGeometry(Ogre::String("paginglandscape2.cfg"));
This is paginglandscape2.cfg
DefaultMap=WorldMap
#DefaultMap=none
#European_Alpes=Alpes
#Terrain_Scene_Manager_Terrain=TsmTerrain
#hf=hf_129_3
WorldMap=Map_World_Large
# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
#puget_sound=ps_height_1k
#grand_canyon=gcanyon_height_4k2k
#terragen_genrated=terragen16bits
#NewWorld2=NewWorld2
#alfons_1k=alfons_1k
#startingIsland=startingIsland
# resource group name where to find map definition
GroupName=PLSM2
# Try forbidden textureformat combinations
TextureFormatDebug=no
This is in Map_World_Large.cfg:
GroupName=PLSM2
Width=8
Height=8
FileSystem=LandScapeFileName
Data2DFormat=HeightField
LandScapeFileName=Map_World_Large_heightmap_128
LandScapeExtension=png
NumTextureFormatSupported=18
TextureFormatSupported0=ImagePaging
TextureFormatSupported1=Base
TextureFormatSupported2=Base2
TextureFormatSupported3=InstantBase
TextureFormatSupported4=Splatting
TextureFormatSupported5=Splatting2
TextureFormatSupported6=Splatting4
TextureFormatSupported7=Splatting6
TextureFormatSupported8=Splatting7
TextureFormatSupported9=Base
TextureFormatSupported10=Base2
TextureFormatSupported11=InstantBase
TextureFormatSupported12=Splatting3
TextureFormatSupported13=Splatting5
TextureFormatSupported14=SplattingShader
TextureFormatSupported15=InstantBaseShadowed
TextureFormat=ImagePaging
ImageFilename=ps_texture_1k
TextureExtension=png
VertexNormals=yes
PageSize=129
I've looked all over the forums, and though I did find someone with an assertion failure, they were not having the same problem. Any help would be appreciated. Thanks.