Help plz: My IDE can't find mesh, textures, etc.

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
jaber
Posts: 3
Joined: Fri Feb 20, 2009 10:52 pm

Help plz: My IDE can't find mesh, textures, etc.

Post by jaber »

I'm using Codeblocks to code now and i have someweird file reading problems:
Note that i use irrlicht project template that already pre-installed with Codeblocks.

1. I've put my resources in a folder (say: called res/) with my executable,
2. Tried to run with Codeblocks by pressing the 'run' button, it looked resources in irrlicht's media/ folder instead, not at the res/ folder. Program crashes unless i put my resources at that media/ folder.
3. However, when running by clicking the .exe with Windows Explorer, it found the resources correctly at the res/ folder.

Well, how do i make codeblocks look for resources at that folder? :?
Brkopac
Posts: 88
Joined: Fri Sep 19, 2008 2:36 am

Post by Brkopac »

I'm not a codeblock user myself, but I know in Visual Studio there is a project option called "Working Directory" and you have to set it to the debug directory for the IDE to find the files your working with.
Image - The glory days.
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

Brkopac wrote:there is a project option called "Working Directory"
same for C::B, it's in the project properies menu...
output and working directory should be the same... ;)
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
3DModelerMan
Posts: 1691
Joined: Sun May 18, 2008 9:42 pm

properties

Post by 3DModelerMan »

It's under the properties tab "execution working directory". I like to just change it to the bin folder and have my media files in there because that's what the working directory is outside the IDE anyway.
That would be illogical captain...

My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Post Reply