tgis is my code
Code: Select all
m_pWorldManager = new WorldManager();
SWorld* pWorld = new SWorld();
m_pIrrDevice->getFileSystem()->addZipFileArchive("data/worlds/map-20kdm2.pk3");
IAnimatedMesh* pQuakeMesh = m_pSceneManager->getMesh("20kdm2.bsp");
pWorld->pName = "World";
pWorld->pWorldMesh = pQuakeMesh;
pWorld->pWorldNode = m_pSceneManager->addOctTreeSceneNode( pQuakeMesh->getMesh( 0 ), 0, -1, 128 );
pWorld->pWorldNode->setPosition( vector3df(-1300,-144,-1249) );
m_pWorldManager->AddWorld( pWorld );
I get a crash when it's time to load the .bsp file.
Code: Select all
m_pIrrDevice->getFileSystem()->addZipFileArchive("data/worlds/map-20kdm2.pk3");
IAnimatedMesh* pQuakeMesh = m_pSceneManager->getMesh("20kdm2.bsp"); <---Crash!!!