load .bsp difference from irrlicht v.1.4 to v.1.41
Posted: Sun Jul 13, 2008 11:51 am
Hello. I jus updated to the newest version of irrlicht. Suddenly I couldn't load my Q3 map anymore. I use the map loaded in tutorial 2.
tgis is my code
Don't mind the SWorld, it's just a struct with pointers to the world.
I get a crash when it's time to load the .bsp file.
I found a .txt file to the .pk file wich i pasted ni the same folder but that didn't do anything. I searched the forum but didn't find anyone with the same problem. Hopefully I just made a nooby mistake
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!!!