Error when running 2nd tutorial program

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
Valkyr
Posts: 11
Joined: Tue Jun 29, 2004 11:11 pm

Error when running 2nd tutorial program

Post by Valkyr »

Hi, I'm a newomer here and I want to get started in 3d programming using IrrLicht.

Anyway, I did the second tutorial on loading a Quake 3 map. I get this error message in the console:
"Could not load texture because mesh could not be loaded: 20kdm2.bsp."

Here is my code:

Code: Select all

//Load Quake3 Map
    device->getFileSystem()->addZipFileArchive("C:\Testproj\media\map-20kdm2.pk3");
    
    scene::IAnimatedMesh* mesh = smgr->getMesh("20kdm2.bsp");
    scene::ISceneNode* node = 0;
Thanks for any help! :D
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

Try putting "C:\Testproj\media\map-20kdm2.pk3" into a windows explorer window and make sure that windows can access the file. It might be in the wrong place.

Also you might try using relitieve path names instead of exact ones so that you can move your code from one computer to another without have to recompile.
Valkyr
Posts: 11
Joined: Tue Jun 29, 2004 11:11 pm

Post by Valkyr »

I just tried this:

Code: Select all

C:/Testproj/media/...
and it worked...

Do you really have to use forward slashes as opposed to any type you want? No biggie, really, but it seems like a weird limitation to me.

Thanks for advice thesmileman!
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

I could be wrong but I think that you do have to use "/" slashes because on many systems "\" is the exacpe character. Linux and Unix do this.
Valkyr
Posts: 11
Joined: Tue Jun 29, 2004 11:11 pm

Post by Valkyr »

thesmileman wrote:I could be wrong but I think that you do have to use "/" slashes because on many systems "" is the exacpe character. Linux and Unix do this.
Oh, ok. Thanks for your help! On to tutorial 3! :)
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

If you whant to use backslashes, you have to use the escape sequence for them: "C:\\Testproj\\..."
Post Reply