Help for the newbiest of the noobs!

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
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Help for the newbiest of the noobs!

Post by afecelis »

Hi guys.

When I compile and run any of the sample projects from within Msvc6.0 everything is ok. The files in "media" folder show up ok but once I take the .exe out with the required dlls and the media folder out and try to run the program outside it says it can't find the files required located in "media". I've tried moving the folder 2 levels up since in main.cpp the route appears with 2 / / but nothing. It can't load anything, no md2, no pk3 no bmps...nothing.

What am I doing wrong?

cheers!
Image
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

change the route in driver->getTexture("faerie2.bmp"); (for example) and place faerie2.bmp in the same map as the exe.

Nicer is driver->getTexture("./data/faerie2.bmp"); and you make a folder called data in the same map as the exe and place the bmp in there.
(I think you forgot the "./") :D
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Thanx Venex for the reply. I'll give it a try and come back.

cheers!
Image
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Great! that did it! I thought I was gonna have problems trying to read from a pk3 file.

Now I can move on to learn something more.

cheers!
Image
Post Reply