load .bsp difference from irrlicht v.1.4 to v.1.41

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
}{ermanssoN
Posts: 37
Joined: Mon May 26, 2008 7:39 pm

load .bsp difference from irrlicht v.1.4 to v.1.41

Post by }{ermanssoN »

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

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 );
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.

Code: Select all

m_pIrrDevice->getFileSystem()->addZipFileArchive("data/worlds/map-20kdm2.pk3");
	IAnimatedMesh* pQuakeMesh = m_pSceneManager->getMesh("20kdm2.bsp"); <---Crash!!!
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 :)
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Which version of Irrlicht did you change to?

Which version of Irrlicht did you change from?

What is the result of the call to addZipFileArchive()?

What is the value of m_pSceneManager when the crash occurs?

What kind of crash is it?
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
}{ermanssoN
Posts: 37
Joined: Mon May 26, 2008 7:39 pm

Post by }{ermanssoN »

I wnt from version 1.4 to 1.41

addZipFileArchive() returns true

m_pSceneManager is reference counted 1 and is valid.

the error message
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
FuzzYspo0N
Posts: 914
Joined: Fri Aug 03, 2007 12:43 pm
Location: South Africa
Contact:

Post by FuzzYspo0N »

Did you update the DLL in the folder?
}{ermanssoN
Posts: 37
Joined: Mon May 26, 2008 7:39 pm

Post by }{ermanssoN »

hhehe, just remembered that I didn't replace the old dll files, now it works.

Thanks anyway!
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Damn youuuuuu, I wanted to answer that. :P
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply