Page 1 of 1

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

Posted: Sat Feb 28, 2009 12:39 am
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? :?

Posted: Sat Feb 28, 2009 12:47 am
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.

Posted: Sat Feb 28, 2009 2:05 pm
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... ;)

properties

Posted: Sat Feb 28, 2009 3:27 pm
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.